How to use the python-for-android.pythonforandroid.recipes.openssl.__init__.OpenSSLRecipe function in python-for-android

To help you get started, we’ve selected a few python-for-android examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github codelv / enaml-native / python-for-android / pythonforandroid / recipes / openssl / __init__.py View on Github external
def get_recipe_env(self, arch=None):
        env = super(OpenSSLRecipe, self).get_recipe_env(arch)
        env['OPENSSL_VERSION'] = self.version
        env['CFLAGS'] += ' ' + env['LDFLAGS']
        env['CC'] += ' ' + env['LDFLAGS']
        return env
github codelv / enaml-native / python-for-android / pythonforandroid / recipes / openssl / __init__.py View on Github external
shprint(perl, 'Configure', 'shared', 'no-dso', 'no-krb5', buildarch, _env=env)
            self.apply_patch('disable-sover.patch', arch.arch)
            #self.apply_patch('rename-shared-lib.patch', arch.arch)

            # check_ssl = partial(self.check_symbol, env, 'libssl' + self.version + '.so')
            check_crypto = partial(self.check_symbol, env, 'libcrypto.so')# + self.version + '.so')
            while True:
                shprint(sh.make, 'build_libs', _env=env)
                if all(map(check_crypto, ('SSLeay', 'MD5_Transform', 'MD4_Init'))):
                    break
                shprint(sh.make, 'clean', _env=env)

            self.install_libs(arch, 'libssl.so',# + self.version + '.so',
                              'libcrypto.so')# + self.version + '.so')

recipe = OpenSSLRecipe()

python-for-android

A development tool that packages Python apps into binaries that can run on Android devices.

MIT
Latest version published 10 months ago

Package Health Score

76 / 100
Full package analysis

Similar packages