Compile in Windows successfully

Fixed jvm.lib reference
This commit is contained in:
Len Boyette 2013-11-24 21:54:07 -05:00
parent cf93f7afc8
commit f88f3ed170
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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']