mirror of https://github.com/kivy/pyjnius.git
parent
cf93f7afc8
commit
f88f3ed170
|
@ -1,7 +1,7 @@
|
|||
# on desktop, we need to create an env :)
|
||||
# example taken from http://www.inonit.com/cygwin/jni/invocationApi/c.html
|
||||
|
||||
cdef extern jint JNI_CreateJavaVM(JavaVM **pvm, void **penv, void *args)
|
||||
cdef extern jint __stdcall JNI_CreateJavaVM(JavaVM **pvm, void **penv, void *args)
|
||||
cdef extern from "jni.h":
|
||||
int JNI_VERSION_1_4
|
||||
jboolean JNI_FALSE
|
||||
|
|
8
setup.py
8
setup.py
|
@ -68,10 +68,16 @@ else:
|
|||
if not jre_home:
|
||||
raise Exception('Unable to determine JRE_HOME')
|
||||
cpu = 'i386' if sys.maxint == 2147483647 else 'amd64'
|
||||
|
||||
include_dirs = [
|
||||
join(jdk_home, 'include'),
|
||||
join(jdk_home, 'include', platform)]
|
||||
library_dirs = [join(jre_home, 'lib', cpu, 'server')]
|
||||
if platform == 'win32':
|
||||
library_dirs = [
|
||||
join(jdk_home, 'lib'),
|
||||
join(jre_home, 'bin', 'server')]
|
||||
else:
|
||||
library_dirs = [join(jre_home, 'lib', cpu, 'server')]
|
||||
extra_link_args = ['-Wl,-rpath', library_dirs[0]]
|
||||
libraries = ['jvm']
|
||||
|
||||
|
|
Loading…
Reference in New Issue