Skip to content

Commit

Permalink
Include local recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
akshayaurora committed Feb 25, 2025
1 parent 6b5a571 commit ca28dd7
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tools/build/p4a_recipes/cryptography/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from pythonforandroid.recipe import CompiledComponentsPythonRecipe, Recipe


class CryptographyRecipe(CompiledComponentsPythonRecipe):
name = 'cryptography'
version = '2.8'
url = 'https://github.com/pyca/cryptography/archive/{version}.tar.gz'
depends = ['openssl', 'six', 'setuptools', 'cffi']
call_hostpython_via_targetpython = False

def get_recipe_env(self, arch):
env = super().get_recipe_env(arch)

openssl_recipe = Recipe.get_recipe('openssl', self.ctx)
env['CFLAGS'] += openssl_recipe.include_flags(arch)
env['LDFLAGS'] += openssl_recipe.link_dirs_flags(arch)
env['LIBS'] = openssl_recipe.link_libs_flags()

return env


recipe = CryptographyRecipe()

0 comments on commit ca28dd7

Please sign in to comment.