From: Adam Dickmeiss Date: Tue, 16 Apr 2013 11:17:43 +0000 (+0200) Subject: Bumdle yaz4j.{jar,dll} with YAZ X-Git-Tag: v4.2.54~6 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=66603ce32e815e5b7970db4cceec5d03ebc26f9c;p=yaz-moved-to-github.git Bumdle yaz4j.{jar,dll} with YAZ --- diff --git a/win/makefile b/win/makefile index ec1ea46..6204044 100644 --- a/win/makefile +++ b/win/makefile @@ -48,8 +48,13 @@ all: dirs generate dll sc_test client ztest yazicu zoomsh utilprog \ NSIS="c:\program files\nsis\makensis.exe" HHC="c:\program files\html help workshop\hhc.exe" +YAZ4J_DIR="..\..\yaz4j" + +YAZPATH="$(MAKEDIR)\.." + + dist: yaz.win32.nsi yaz.nsi distclean - nmake DEBUG=0 + nmake DEBUG=0 all yaz4j $(NSIS) yaz.win32.nsi dist64: yaz.win64.nsi yaz.nsi distclean @@ -57,13 +62,14 @@ dist64: yaz.win64.nsi yaz.nsi distclean $(NSIS) yaz.win64.nsi make64: - nmake DEBUG=0 HAVE_LIBXSLT=1 HAVE_LIBXML2=1 HAVE_ICONV=0 HAVE_ICU=1 LIBXML2_DIR=c:\libxml2-2.7.8.win64 LIBXSLT_DIR=c:\libxslt-1.1.26.win64 ICU_LIB=\icu64\lib64 ICU_INCLUDE=\icu64\include ICU_BIN=\icu64\bin64 + nmake DEBUG=0 HAVE_LIBXSLT=1 HAVE_LIBXML2=1 HAVE_ICONV=0 HAVE_ICU=1 LIBXML2_DIR=c:\libxml2-2.7.8.win64 LIBXSLT_DIR=c:\libxslt-1.1.26.win64 ICU_LIB=\icu64\lib64 ICU_INCLUDE=\icu64\include ICU_BIN=\icu64\bin64 YAZ4J_DIR=..\..\..\yaz4j all yaz4j + distclean: nmake DEBUG=1 clean nmake DEBUG=0 clean -nsis: all yaz32.nsi +nsis: all yaz.win32.nsi $(NSIS) yaz.win32.nsi nsis64: yaz.win64.nsi @@ -83,6 +89,7 @@ BINDIR=$(ROOTDIR)\bin # We produce exes and dlls there WINDIR=$(ROOTDIR)\win # all these Win make things SRCDIR=$(ROOTDIR)\src # for the case we move them under src DOCDIR=$(ROOTDIR)\doc # where the doc is +JAVADIR=$(ROOTDIR)\java # where we store intermediate files !if $(DEBUG) @@ -97,8 +104,8 @@ ZOOMDIR=$(ROOTDIR)\ZOOM UTILDIR=$(ROOTDIR)\UTIL TESTDIR=$(ROOTDIR)\TEST -TMPDIR=$(ROOTDIR)\win\tmp -TMP=$(TMPDIR) +# TMPDIR=$(ROOTDIR)\win\tmp +# TMP=$(TMPDIR) # Targets - what to make @@ -276,21 +283,14 @@ RELEASE_C_OPTIONS= \ /D "NDEBUG" \ /MD /O2 -# /W3 = warning level -# /GX = Enable exception handling -# /FD = Generate file dependencies (what ever they are) -# /c = compile without linking -# /FR = Generate browse info (.sbr file that gets combined into .bsc) -# /Fo = object file name (or at least path) -# /Fd = debug database name (or path) -# /MD = Runtime library: Multithread DLL -# /MDd = Runtime library: Multithread DLL (debug) -# /Od = Disable optimising (debug) -# /O2 = Optimize for speed -# /Gm = Minimal rebuild (some cpp class stuff) -# /Zi = Program database for debuggers -# /ZI = Pgm database with special "edit&continue" stuff - not available in C5 - +MVN_ARGS=-Dyaz.path=$(YAZPATH) +# without >log below, mvn install does NOT work +yaz4j: $(JAVADIR) + cd $(YAZ4J_DIR) + mvn clean + mvn $(MVN_ARGS) -DskipTests install >log + copy /Y win32\target\yaz4j.dll "$(MAKEDIR)\..\bin" + copy /Y any\target\yaz4j.jar "$(MAKEDIR)\..\java" ### Linker options LINK=link.exe @@ -1051,7 +1051,7 @@ realclean: clean # check directories and create if needed dirs: $(OBJDIR) $(WINDIR) $(LIBDIR) $(BINDIR) $(TMPDIR) -$(OBJDIR) $(WINDIR) $(LIBDIR) $(BINDIR) $(TMPDIR): +$(OBJDIR) $(WINDIR) $(LIBDIR) $(BINDIR) $(TMPDIR) $(JAVADIR): if not exist "$@/$(NUL)" mkdir "$@" diff --git a/win/yaz.nsi b/win/yaz.nsi index c96aa80..aaa342a 100644 --- a/win/yaz.nsi +++ b/win/yaz.nsi @@ -164,6 +164,14 @@ Section "YAZ Source" YAZ_Source File *.rc SectionEnd +Section "YAZ4J" YAZ4J + SectionIn 1 2 + SetOutPath $INSTDIR\bin + File ..\bin\yaz4j.dll + SetOutPath $INSTDIR\java + File ..\java\yaz4j.jar +SectionEnd + ; begin uninstall settings/section UninstallText "This will uninstall YAZ ${VERSION} from your system" @@ -189,6 +197,7 @@ LangString DESC_YAZ_Runtime ${LANG_ENGLISH} "YAZ runtime files needed in order f LangString DESC_YAZ_Development ${LANG_ENGLISH} "Header files and import libraries required for developing software using YAZ." LangString DESC_YAZ_Documentation ${LANG_ENGLISH} "YAZ Users' guide and reference in HTML. Describes both YAZ applications and the API." LangString DESC_YAZ_Source ${LANG_ENGLISH} "Source code of YAZ. Required if you need to rebuild YAZ (for debugging purposes)." +LangString DESC_YAZ4J ${LANG_ENGLISH} "Source code of YAZ. Required if you need to rebuild YAZ (for debugging purposes)." ;Assign language strings to sections !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN @@ -196,6 +205,7 @@ LangString DESC_YAZ_Source ${LANG_ENGLISH} "Source code of YAZ. Required if you !insertmacro MUI_DESCRIPTION_TEXT ${YAZ_Development} $(DESC_YAZ_Development) !insertmacro MUI_DESCRIPTION_TEXT ${YAZ_Documentation} $(DESC_YAZ_Documentation) !insertmacro MUI_DESCRIPTION_TEXT ${YAZ_Source} $(DESC_YAZ_Source) +!insertmacro MUI_DESCRIPTION_TEXT ${YAZ4J} $(DESC_YAZ4J) !insertmacro MUI_FUNCTION_DESCRIPTION_END ; eof