8000 Added python3crystax alternative dep for sdl2 · latin1593/python-for-android@c4e2b89 · GitHub
[go: up one dir, main page]

Skip to content

Commit c4e2b89

Browse files
committed
Added python3crystax alternative dep for sdl2
1 parent 226e3cb commit c4e2b89

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

pythonforandroid/recipe.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -887,8 +887,10 @@ def get_recipe_env(self, arch):
887887
env['LDFLAGS'] = env['LDFLAGS'] + ' -L{} '.format(
888888
self.ctx.get_libs_dir(arch.arch) +
889889
' -L{} '.format(self.ctx.libs_dir)) + ' -L/home/asandy/.local/share/python-for-android/build/bootstrap_builds/sdl2python3crystax/libs/armeabi '
890-
# env['LDSHARED'] = join(self.ctx.root_dir, 'tools', 'liblink-jb')
891-
env['LDSHARED'] = env['CC'] + ' -shared'
890+
if self.ctx.ndk_is_crystax:
891+
env['LDSHARED'] = env['CC'] + ' -shared'
892+
else:
893+
env['LDSHARED'] = join(self.ctx.root_dir, 'tools', 'liblink-jb')
892894
shprint(sh.whereis, env['LDSHARED'], _env=env)
893895
env['LIBLINK'] = 'NOTNONE'
894896
env['NDKPLATFORM'] = self.ctx.ndk_platform

pythonforandroid/recipes/sdl2/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class LibSDL2Recipe(BootstrapNDKRecipe):
99

1010
dir_name = 'SDL'
1111

12-
depends = ['python2', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf']
12+
depends = [('python2', 'python3crystax'), 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf']
1313
conflicts = ['sdl', 'pygame', 'pygame_bootstrap_components']
1414

1515
patches = ['add_nativeSetEnv.patch']

0 commit comments

Comments
 (0)
0