Skip to content

Commit cecdfc8

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

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
@@ -102,8 +102,8 @@ def get_env(self):
102102

103103
env['ARCH'] = self.arch
104104

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

108108
return env
109109

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)