mirror of https://github.com/kivy/pyjnius.git
Updated to support Mac OS X build support
This commit is contained in:
parent
383cdf5742
commit
4e6063ec82
7
setup.py
7
setup.py
|
@ -42,6 +42,13 @@ if platform == 'android':
|
|||
# for android, we use SDL...
|
||||
libraries = ['sdl', 'log']
|
||||
library_dirs = ['libs/' + environ['ARCH']]
|
||||
elif platform == 'darwin':
|
||||
import objc
|
||||
framework = objc.pathForFramework('JavaVM.framework')
|
||||
if not framework:
|
||||
raise Exception('You must install Java on your Mac OS X distro')
|
||||
extra_link_args = [ '-framework', 'JavaVM' ]
|
||||
include_dirs = [ join(framework, 'Versions/A/Headers') ]
|
||||
else:
|
||||
import subprocess
|
||||
# otherwise, we need to search the JDK_HOME
|
||||
|
|
Loading…
Reference in New Issue