Skip to content

Commit bd19087

Browse files
committed
Changed Android.mk for sdl2 to work with crystax
1 parent e328608 commit bd19087

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pythonforandroid/archs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ def get_env(self):
8989

9090
env['ARCH'] = self.arch
9191

92-
if self.ctx.ndk_is_crystax: # AND: should use the right python version from the python recipe
93-
env['CRYSTAX_PYTHON_VERSION'] = '3.5'
92+
if self.ctx.python_recipe.from_crystax:
93+
env['CRYSTAX_PYTHON_VERSION'] = self.ctx.python_recipe.version
9494

9595
return env
9696

pythonforandroid/bootstraps/sdl2/build/jni/src/Android.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ LOCAL_CFLAGS += -I$(LOCAL_PATH)/../../../../other_builds/$(PYTHON2_NAME)/$(ARCH)
1616

1717
LOCAL_SHARED_LIBRARIES := SDL2 python_shared
1818

19-
LOCAL_LDLIBS := -lGLESv1_CM -lGLESv2 -llog $(EXTRA_LDLIBS) #-lpython2.7
19+
LOCAL_LDLIBS := -lGLESv1_CM -lGLESv2 -llog $(EXTRA_LDLIBS)
2020

2121
LOCAL_LDFLAGS += -L$(LOCAL_PATH)/../../../../other_builds/$(PYTHON2_NAME)/$(ARCH)/python2/python-install/lib $(APPLICATION_ADDITIONAL_LDFLAGS)
2222

2323
include $(BUILD_SHARED_LIBRARY)
2424

2525
ifdef CRYSTAX_PYTHON_VERSION
26-
$(call import-module,python/$(CRYSTAX_PYTHON_VERSION))
26+
$(call import-module,python/$(CRYSTAX_PYTHON_VERSION))
2727
endif

0 commit comments

Comments
 (0)