Skip to content

Commit 406b236

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 8ae6758 + 583ce54 commit 406b236

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

pythonforandroid/recipes/pyjnius/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class PyjniusRecipe(CythonRecipe):
99
version = 'master'
1010
url = 'https://github.com/kivy/pyjnius/archive/{version}.zip'
1111
name = 'pyjnius'
12-
depends = ['python2', ('sdl2', 'sdl')]
12+
depends = ['python2', ('sdl2', 'sdl'), 'six']
1313
site_packages_name = 'jnius'
1414
def prebuild_arch(self, arch):
1515
super(PyjniusRecipe, self).prebuild_arch(arch)
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
11
diff --git a/jnius/jnius_jvm_android.pxi b/jnius/jnius_jvm_android.pxi
2-
index ac89fec..3ca9e0f 100644
2+
index ac89fec..71daa43 100644
33
--- a/jnius/jnius_jvm_android.pxi
44
+++ b/jnius/jnius_jvm_android.pxi
5-
@@ -1,5 +1,7 @@
5+
@@ -1,5 +1,5 @@
66
# on android, rely on SDL to get the JNI env
77
-cdef extern JNIEnv *SDL_ANDROID_GetJNIEnv()
8-
+# cdef extern JNIEnv *SDL_ANDROID_GetJNIEnv()
98
+cdef extern JNIEnv *SDL_AndroidGetJNIEnv()
109

1110
cdef JNIEnv *get_platform_jnienv():
1211
- return SDL_ANDROID_GetJNIEnv()
1312
+ return <JNIEnv*>SDL_AndroidGetJNIEnv()
14-
+ # return SDL_ANDROID_GetJNIEnv()
1513
diff --git a/setup.py b/setup.py
16-
index c6beedd..3cc7c4e 100644
14+
index 740510f..0c8e55f 100644
1715
--- a/setup.py
1816
+++ b/setup.py
19-
@@ -41,7 +41,7 @@ except ImportError:
17+
@@ -53,7 +53,7 @@ except ImportError:
2018

2119
if platform == 'android':
2220
# for android, we use SDL...
2321
- libraries = ['sdl', 'log']
2422
+ libraries = ['SDL2', 'log']
25-
library_dirs = ['libs/' + environ['ARCH']]
23+
library_dirs = ['libs/' + getenv('ARCH')]
2624
elif platform == 'darwin':
2725
import subprocess

0 commit comments

Comments
 (0)