Last active
January 1, 2021 20:36
-
-
Save viblo/befb56e5415fc509c25f1ba0fd6c020c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from os.path import join | |
from pythonforandroid.recipe import CompiledComponentsPythonRecipe | |
class PymunkRecipe(CompiledComponentsPythonRecipe): | |
name = "pymunk" | |
version = "6.0.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().get_recipe_env(arch) | |
# env["PYTHON_ROOT"] = self.ctx.get_python_install_dir() | |
# env["LDFLAGS"] += " -shared -llog" | |
env["LDFLAGS"] += " -lm -llog" | |
# env["LDFLAGS"] += " -L{}".format(join(self.ctx.ndk_platform, "usr", "lib")) | |
# env["LIBS"] = env.get("LIBS", "") + " -landroid" | |
return env | |
recipe = PymunkRecipe() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment