Skip to content

Commit 497c31c

Browse files
committed
Updated sdl2_jnienv_getter.patch for pyjnius master
1 parent 45003e0 commit 497c31c

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed
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)