libjvlc changes for win32 cross compile
authorFilippo Carone <littlejohn@videolan.org>
Thu, 8 Mar 2007 22:00:15 +0000 (22:00 +0000)
committerFilippo Carone <littlejohn@videolan.org>
Thu, 8 Mar 2007 22:00:15 +0000 (22:00 +0000)
Makefile.am
src/Makefile.am

index d9afa2f..ce6bf54 100644 (file)
@@ -39,7 +39,7 @@ PROCESSOR_FAMILY = `uname -m | sed -e 's/^i.86/i386/' | sed -e 's/^x86_64/amd64/
 
 if HAVE_WIN32
 JINCLUDES = -I${JAVA_HOME}/include -I${JAVA_HOME}/include/win32
-LIBJINCLUDES = -L${JAVA_HOME}/lib -ljawt
+LIBJINCLUDES = -L${JAVA_HOME}/jre/bin -lawt
 JCH = javah
 else
 JINCLUDES = -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux
index 50c8946..2a2d254 100644 (file)
@@ -11,19 +11,28 @@ libjvlc_la_SOURCES = \
 libjvlc_la_CPPFLAGS = `$(VLC_CONFIG) --cflags pic` $(JINCLUDES)
 libjvlc_la_LIBADD = ../../../src/libvlc-control.la $(LIBJINCLUDES)
 
+libjvlc_a_SOURCES=$(libjvlc_la_SOURCES)
+libjvlc_a_CPPFLAGS = `$(VLC_CONFIG) --cflags pic` $(JINCLUDES)
+libjvlc_a_LIBADD = ../../../src/libvlc.a
+
+
 if BUILD_JAVA
 
 if USE_LIBTOOL
 lib_LTLIBRARIES = libjvlc.la
 else
+lib_LIBRARIES = libjvlc.a
+endif 
 
-COBJECTS = utils.o video-jni.o audio-jni.o input-jni.o playlist-jni.o vlm-jni.o core-jni.o graphics-jni.o
+if HAVE_WIN32
+DATA_noinst_libjvlc = libjvlc$(LIBEXT) libjvlc$(LIBEXT).a
 
-JAVACXXFLAGS = -I. -Isrc -I../../ -I ../../include -I../../../include  $(JINCLUDES) `top_builddir=../../.. ../../../vlc-config --cflags pic` -c
-AM_CXXFLAGS = $(JAVACXXFLAGS)
+libjvlc.dll.a libjvlc.def: libjvlc$(LIBEXT)
+       $(DLLTOOL) -z libjvlc.def -l libjvlc.dll.a -D $< $(libjvlc_a_OBJECTS)
 
-all-am: $(COBJECTS)
+libjvlc$(LIBEXT): $(libjvlc_a_OBJECTS)
 
+all: libjvlc.dll.a
 endif
 
 .PHONY: clean-local