2017-08-13 03:24:00 +02:00
|
|
|
diff --git a/jnius/jnius_jvm_android.pxi b/jnius/jnius_jvm_android.pxi
|
|
|
|
index ac89fec..71daa43 100644
|
|
|
|
--- a/jnius/jnius_jvm_android.pxi
|
|
|
|
+++ b/jnius/jnius_jvm_android.pxi
|
|
|
|
@@ -1,5 +1,5 @@
|
|
|
|
# on android, rely on SDL to get the JNI env
|
|
|
|
-cdef extern JNIEnv *SDL_ANDROID_GetJNIEnv()
|
2022-12-02 21:15:34 +01:00
|
|
|
+cdef extern JNIEnv *WebView_AndroidGetJNIEnv()
|
2017-08-13 03:24:00 +02:00
|
|
|
|
|
|
|
cdef JNIEnv *get_platform_jnienv():
|
|
|
|
- return SDL_ANDROID_GetJNIEnv()
|
2022-12-02 21:15:34 +01:00
|
|
|
+ return <JNIEnv*>WebView_AndroidGetJNIEnv()
|
2017-08-13 03:24:00 +02:00
|
|
|
diff --git a/setup.py b/setup.py
|
|
|
|
index 740510f..0c8e55f 100644
|
|
|
|
--- a/setup.py
|
|
|
|
+++ b/setup.py
|
|
|
|
@@ -53,7 +53,7 @@ except ImportError:
|
|
|
|
|
2019-03-30 21:58:45 +01:00
|
|
|
if PLATFORM == 'android':
|
2017-08-13 03:24:00 +02:00
|
|
|
# for android, we use SDL...
|
2019-03-30 21:58:45 +01:00
|
|
|
- LIBRARIES = ['sdl', 'log']
|
2022-12-02 21:15:34 +01:00
|
|
|
+ LIBRARIES = ['main', 'log']
|
2019-03-30 21:58:45 +01:00
|
|
|
LIBRARY_DIRS = ['libs/' + getenv('ARCH')]
|
|
|
|
elif PLATFORM == 'darwin':
|
2017-08-13 03:24:00 +02:00
|
|
|
import subprocess
|