Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (17 sloc) 814 Bytes
from os.path import join
from pythonforandroid.recipe import CompiledComponentsPythonRecipe
class PymunkRecipe(CompiledComponentsPythonRecipe):
name = "pymunk"
version = '5.5.0'
url = 'https://pypi.python.org/packages/source/p/pymunk/pymunk-{version}.zip'
depends = ['cffi', 'setuptools']
call_hostpython_via_targetpython = False
def get_recipe_env(self, arch):
env = super(PymunkRecipe, self).get_recipe_env(arch)
env['PYTHON_ROOT'] = self.ctx.get_python_install_dir()
env['LDFLAGS'] += " -shared -llog"
env['LDFLAGS'] += ' -L{}'.format(join(self.ctx.ndk_platform, 'usr', 'lib'))
env['LDFLAGS'] += " --sysroot={}".format(self.ctx.ndk_platform)
env['LIBS'] = env.get('LIBS', '') + ' -landroid'
return env
recipe = PymunkRecipe()
You can’t perform that action at this time.