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
|
CONFIG += dll
TARGET = te_oracle
include (../config.pri)
# Path definitions
# ----------------------------------------------------------
ORSRCPATH = $${TERRALIBPATH}/src/terralib/drivers/Oracle
ORDEP = $${TERRALIBPATH}/dependencies
win32:ORDEP = $${ORDEP}/win32
unix:ORDEP = $${ORDEP}/linux
ORDEP = $${ORDEP}/Oracle
# ----------------------------------------------------------
DEFINES += TLORACLE_AS_DLL
LIBS += -lterralib
win32 {
!win32-g++:QMAKE_LIBDIR += $${ORDEP}/lib
else:LIBS += -L$${ORDEP}/lib
LIBS += -loci
}
unix:LIBS += -L$${ORDEP}/lib \
-lclntsh -lnnz10 -lociei
INCLUDEPATH += $${ORSRCPATH} \
$${ORSRCPATH}/OCI/include
HEADERS += $${ORSRCPATH}/TeOracleSpatial.h \
$${ORSRCPATH}/TeOCIOracle.h \
$${ORSRCPATH}/TeOCIConnect.h \
$${ORSRCPATH}/TeOCICursor.h \
$${ORSRCPATH}/TeOCISDO.h \
$${ORSRCPATH}/TeOracleDefines.h
SOURCES += $${ORSRCPATH}/TeOracleSpatial.cpp \
$${ORSRCPATH}/TeOCIOracle.cpp \
$${ORSRCPATH}/TeOCIConnect.cpp \
$${ORSRCPATH}/TeOCICursor.cpp \
$${ORSRCPATH}/TeOCISDO.cpp
unix {
create_link.commands = cd $${ORDEP}/lib/ && ln -sf libclntsh.so.10.1 libclntsh.so
QMAKE_EXTRA_TARGETS += create_link
PRE_TARGETDEPS += create_link
}
include (../install_cfg.pri)
CONFIG(copy_dir_files) {
ora.path = $${DEPLOY_DIR}/include/Oracle/OCI/include
ora.files = $${ORSRCPATH}/OCI/include/*.h
include.path = $${DEPLOY_DIR}/include/Oracle
include.files = $${ORSRCPATH}/*.h
INSTALLS += ora include
}
#Oracle dependencies install
unix {
cop_dps.commands = cp -f $${ORDEP}/lib/* $${target.path}
QMAKE_EXTRA_TARGETS += cop_dps
POST_TARGETDEPS += cop_dps
}
win32 {
bin.files = $${ORDEP}/bin/*.dll
bin.path = $${DEPLOY_DIR}/bin
INSTALLS += bin
}
|