1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
|
######################################################################
# Automatically generated by qmake (2.01a) Fri Dec 21 12:05:07 2007
######################################################################
include(../_Builds/eidcommon.mak)
TEMPLATE = lib
TARGET = $${JAVALIB}
VERSION = $${JAVALIB_MAJ}.$${JAVALIB_MIN}.$${JAVALIB_REV}
message("Compile $$TARGET")
###
### Installation setup
###
target.path = $${INSTALL_DIR_LIB}
INSTALLS += target
CONFIG -= warn_on qt
QMAKE_CXXFLAGS += -fno-strict-aliasing -g
QMAKE_CFLAGS += -fno-strict-aliasing -g
###
### special instructions to preprocess the eidlib.h file by swig
### swig will generate the java files and a cpp wrapper file that has to be compiled
### with the other files
### on mac, swig does not work yet, therefore, the file 'eidlibJava_wrapper.cpp' is taken
### as it is retrieved from SVN
###
unix:!macx: {
PREPROCESS_FILES=../eidlib/eidlib.i
preprocess.name = execute swig to generate java and c++ wrapper
preprocess.input = PREPROCESS_FILES
preprocess.output = ./GeneratedFiles/eidlibJava_Wrapper.cpp
preprocess.commands = swig -c++ -java -package be.belgium.eid -o ./GeneratedFiles/eidlibJava_Wrapper.cpp -outdir ./GeneratedFiles ../eidlib/eidlib.i
QMAKE_EXTRA_COMPILERS += preprocess
preprocess.variable_out+=SOURCES
}
###
### As a postbuild step, compile the generated .java files and jar them to a jar file
###
unix:!macx: QMAKE_POST_LINK = javac -verbose -d ../eidlibJava/class ./GeneratedFiles/*.java; jar cvf ../jar/$${EIDLIBJAR} -C ../eidlibJava/class be/belgium/eid/
## destination directory
DESTDIR = ../lib
LIBS += -L../lib \
-l$${COMMONLIB} \
-l$${DLGLIB} \
-l$${CARDLAYERLIB} \
-l$${APPLAYERLIB} \
-l$${EIDLIB}
macx: INCLUDEPATH += /System/Library/Frameworks/JavaVM.framework/Headers/
macx: LIB += -Wl,-framework -Wl,Java
DEPENDPATH += .
INCLUDEPATH += . ../applayer ../common ../cardlayer ../eidlib
INCLUDEPATH += $${PCSC_INCLUDE_DIR}
#INCLUDEPATH += $${JDK_INCLUDE_DIR}
# Input
macx: SOURCES += GeneratedFiles/eidlibJava_Wrapper.cpp
SOURCES += ../eidlib/eidlibCard.cpp
SOURCES += ../eidlib/eidlibCrypto.cpp
SOURCES += ../eidlib/eidlibDoc.cpp
SOURCES += ../eidlib/eidlibException.cpp
SOURCES += ../eidlib/eidlibReader.cpp
SOURCES += ../eidlib/InternalUtil.cpp
|