Skip to content

Commit 2b0dfff

Browse files
committed
fix build recipes pyjnius. diff a/setup.py b/setup.py. patch sdl2_jnienv_getter.patch (@@ -41,7 +41,7 @@ to @@ -53,7 +53,7 @@ )
1 parent 90df704 commit 2b0dfff

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pythonforandroid/recipes/pyjnius/sdl2_jnienv_getter.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ index ac89fec..3ca9e0f 100644
1313
+ return <JNIEnv*>SDL_AndroidGetJNIEnv()
1414
+ # return SDL_ANDROID_GetJNIEnv()
1515
diff --git a/setup.py b/setup.py
16-
index c6beedd..3cc7c4e 100644
16+
index 740510f..0c8e55f 100644
1717
--- a/setup.py
1818
+++ b/setup.py
19-
@@ -41,7 +41,7 @@ except ImportError:
19+
@@ -53,7 +53,7 @@ except ImportError:
2020

2121
if platform == 'android':
2222
# for android, we use SDL...
2323
- libraries = ['sdl', 'log']
2424
+ libraries = ['SDL2', 'log']
25-
library_dirs = ['libs/' + environ['ARCH']]
25+
library_dirs = ['libs/' + getenv('ARCH')]
2626
elif platform == 'darwin':
2727
import subprocess

0 commit comments

Comments
 (0)