Skip to content

Commit

Permalink
Merge pull request #1417 from kivy/fix_pyjnius_setup
Browse files Browse the repository at this point in the history
Fix pyjnius setup.py patches
  • Loading branch information
AndreMiras committed Oct 20, 2018
2 parents e46674b + 8f904f7 commit 7aaeeae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ index 740510f..0c8e55f 100644
+++ b/setup.py
@@ -53,7 +53,7 @@ except ImportError:

if platform == 'android':
if PLATFORM == 'android':
# for android, we use SDL...
- libraries = ['sdl', 'log']
+ libraries = ['main', 'log']
library_dirs = ['libs/' + getenv('ARCH')]
elif platform == 'darwin':
- LIBRARIES = ['sdl', 'log']
+ LIBRARIES = ['main', 'log']
LIBRARY_DIRS = ['libs/' + getenv('ARCH')]
elif PLATFORM == 'darwin':
import subprocess
10 changes: 5 additions & 5 deletions pythonforandroid/recipes/pyjnius/sdl2_jnienv_getter.patch
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ index 740510f..0c8e55f 100644
+++ b/setup.py
@@ -53,7 +53,7 @@ except ImportError:

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

0 comments on commit 7aaeeae

Please sign in to comment.