Skip to content

Commit 7aaeeae

Browse files
authored
Merge pull request #1417 from kivy/fix_pyjnius_setup
Fix pyjnius setup.py patches
2 parents e46674b + 8f904f7 commit 7aaeeae

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy