-
Notifications
You must be signed in to change notification settings - Fork 10
/
global.pri
121 lines (98 loc) · 3.42 KB
/
global.pri
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
CONFIG(debug, debug|release) {
CONF=debug
}
CONFIG(release, debug|release) {
CONF=release
QMAKE_CXXFLAGS_RELEASE -= -O1
QMAKE_CXXFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS_RELEASE *= -O3
DEFINES += QT_NO_DEBUG_OUTPUT
DEFINES += QT_NO_WARNING_OUTPUT
CONFIG += optimize_full
}
win32-msvc* {
contains(QMAKE_TARGET.arch, x86_64) {
QMAKE_CXXFLAGS_WARN_ON -= -w34267
QMAKE_CXXFLAGS += -wd4267
QMAKE_CXXFLAGS_WARN_ON -= wd4577
COMPILER = msvc
BOOST=../external/boost
PREFIXSHARED=
PREFIX_COMPILER=msvcx64_
CORELIBPATH =msvcx64_ilwiscore
LIB_EXTENSION =$$QMAKE_EXTENSION_SHLIB
EXTERNAL=../external
}
}
linux{
BOOST=/usr/include
PREFIXSHARED=lib
LIBS += -L/usr/lib -lgsl \
-L/usr/lib -lgslcblas
QMAKE_CFLAGS_ISYSTEM=-I
QMAKE_CXXFLAGS += -Wno-unused-parameter
QMAKE_CXXFLAGS += -Wno-sign-compare
QMAKE_CXXFLAGS += -Wno-unused-local-typedefs
QMAKE_CXXFLAGS += -Wno-deprecated-declarations
PREFIX_COMPILER=gccx64_
CORELIBPATH =gccx64_ilwiscore
LIB_EXTENSION = so.1.0.0
DEFINES +=COMPILER_GCC
EXTERNAL= . #dummy
}
linux-g++{
!contains(QT_ARCH, x86_64){
LINUXLIB=/usr/lib/i386-linux-gnu/
} else {
LINUXLIB=/usr/lib/x86_64-linux-gnu/
}
}
QT += sql network concurrent
INCLUDEPATH += ./core/ \
./core/ilwisobjects \
./core/ilwisobjects/geometry \
./core/util \
./core/ilwisobjects/geometry/geodeticdatum \
./core/ilwisobjects/geometry/projection \
./core/ilwisobjects/geometry/coordinatesystem \
./core/ilwisobjects/geometry/georeference \
./core/ilwisobjects/coverage \
./core/ilwisobjects/table \
./core/ilwisobjects/operation/model \
./core/ilwisobjects/operation \
./core/ilwisobjects/operation/modeller \
./core/ilwisobjects/workflow \
./core/ilwisobjects/representation \
./core/catalog \
./core/ilwisobjects/domain \
./core/geos/include \
$$BOOST \
$$EXTERNAL
OUTPUTPATH=$$clean_path($$PWD/../output/$$PREFIX_COMPILER/$$CONF/bin)
LIBPATH=$$clean_path($$PWD/../temp/generated/objectfiles/$$PREFIX_COMPILER$$TARGET/$$CONF)
LIBPATH=$$replace(LIBPATH,/,$$DIR_SEPARATOR)
SOURCEDIR=$$clean_path($$PWD/$$TARGET/source)
INLIBPATH=$$LIBPATH/*.$$LIB_EXTENSION
INLIBPATH = $$replace(INLIBPATH,/,$$DIR_SEPARATOR)
OBJECTS_DIR = $$LIBPATH
OUTLIBPATH=dummy $$TARGET
MOC_DIR=$$LIBPATH
equals(TARGET, ilwiscore){
FOLDER=core
OUTLIBPATH= $$OUTPUTPATH
}else {
FOLDER=$$TARGET
OUTLIBPATH= $$OUTPUTPATH/extensions/$$TARGET
}
exists($$PWD/$$FOLDER/resources){
SOURCE_RESOURCE = $$clean_path($$PWD/$$FOLDER/resources)
TARGET_RESOURCE_DIR=$$OUTLIBPATH
SOURCE_RESOURCE = $$replace(SOURCE_RESOURCE,/,$$DIR_SEPARATOR)
TARGET_RESOURCE_DIR = $$replace(TARGET_RESOURCE_DIR,/,$$DIR_SEPARATOR)
!exists($${TARGET_RESOURCE_DIR}) {
QMAKE_PRE_LINK += $$QMAKE_MKDIR $$TARGET_RESOURCE_DIR $$escape_expand(\n\t)
}
QMAKE_PRE_LINK += $$QMAKE_COPY_DIR $$SOURCE_RESOURCE $$TARGET_RESOURCE_DIR $$escape_expand(\n\t)
}
OUTLIBPATH=$$replace(OUTLIBPATH,/,$$DIR_SEPARATOR)
DESTDIR=$$OUTLIBPATH