Skip to content

Commit 8f904f7

Browse files
committed
Fix pyjnius setup.py patches
1 parent e46674b commit 8f904f7

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

pythonforandroid/recipes/pyjnius/genericndkbuild_jnienv_getter.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ index 740510f..0c8e55f 100644
1616
+++ b/setup.py
1717
@@ -53,7 +53,7 @@ except ImportError:
1818

19-
if platform == 'android':
19+
if PLATFORM == 'android':
2020
# for android, we use SDL...
21-
- libraries = ['sdl', 'log']
22-
+ libraries = ['main', 'log']
23-
library_dirs = ['libs/' + getenv('ARCH')]
24-
elif platform == 'darwin':
21+
- LIBRARIES = ['sdl', 'log']
22+
+ LIBRARIES = ['main', 'log']
23+
LIBRARY_DIRS = ['libs/' + getenv('ARCH')]
24+
elif PLATFORM == 'darwin':
2525
import subprocess

pythonforandroid/recipes/pyjnius/sdl2_jnienv_getter.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ index 740510f..0c8e55f 100644
1616
+++ b/setup.py
1717
@@ -53,7 +53,7 @@ except ImportError:
1818

19-
if platform == 'android':
19+
if PLATFORM == 'android':
2020
# for android, we use SDL...
21-
- libraries = ['sdl', 'log']
22-
+ libraries = ['SDL2', 'log']
23-
library_dirs = ['libs/' + getenv('ARCH')]
24-
elif platform == 'darwin':
21+
- LIBRARIES = ['sdl', 'log']
22+
+ LIBRARIES = ['SDL2', 'log']
23+
LIBRARY_DIRS = ['libs/' + getenv('ARCH')]
24+
elif PLATFORM == 'darwin':
2525
import subprocess

0 commit comments

Comments
 (0)