forked from qcad/qcad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shared.pri
234 lines (203 loc) · 5.04 KB
/
shared.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
linux-g++:QMAKE_TARGET.arch = $$QMAKE_HOST.arch
linux-g++-32:QMAKE_TARGET.arch = x86
linux-g++-64:QMAKE_TARGET.arch = x86_64
macx {
arch = $$system("uname -m")
equals(arch, "arm64") {
QMAKE_APPLE_DEVICE_ARCHS=arm64
QMAKE_LFLAGS+=-L/usr/lib -lstdc++
}
}
linux-* {
arch = $$system("uname -m")
equals(arch, "x86_64") {
QMAKE_TARGET.arch=x86_64
}
}
greaterThan(QT_MAJOR_VERSION, 4) {
cache()
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x000000
QT += printsupport
lessThan(QT_MAJOR_VERSION, 6) {
macx {
QT += macextras
}
}
}
else {
QT += webkit
}
greaterThan(QT_MAJOR_VERSION, 5) {
QT += qml
}
DEFINES += QCAD_DLL
# output directory:
CONFIG(debug, debug|release) {
ROUTDIR = debug
} else {
ROUTDIR = release
}
CONFIG(plugin, plugin) {
build_pass:CONFIG(debug, debug|release) {
TARGET = $$join(TARGET,,,_debug)
# Qt uses '_debug' for unix and 'd' for Windows
# which is not reliably detectable (e.g.: abcd.dll)
# unix: TARGET = $$join(TARGET,,,_debug)
# else: TARGET = $$join(TARGET,,,d)
}
}
r_no_opennurbs {
DEFINES += R_NO_OPENNURBS
}
android-* {
CONFIG += r_static_libs
CONFIG += r_mobile
}
macx-ios-* {
CONFIG += r_static_libs
CONFIG += r_mobile
}
# QCAD does not depend on WebKit / WebEngine anymore and uses QTextBrowser instead:
#!r_mobile {
# greaterThan(QT_MAJOR_VERSION, 4) {
# greaterThan(QT_MINOR_VERSION, 5) {
# # Qt >= 5.6
# QT += webenginewidgets
# }
# else {
# QT += webkitwidgets
# }
# }
#}
win32-msvc2010 {
CONFIG+=win32-msvc
}
win32-msvc2015 {
contains(QMAKE_TARGET.arch, x86_64) {
# fix wrong library path under MSVC 2015 64bit:
LIBS += -L"C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64"
}
}
# building for Mac OS X on the PowerPC platform:
macx {
rppc {
CONFIG += ppc
CONFIG -= x86
QMAKE_CFLAGS_X86 =
QMAKE_CXXFLAGS_X86 =
QMAKE_OBJECTIVE_CFLAGS_X86 =
QMAKE_LFLAGS_X86 =
}
}
# settings for all macOS builds:
macx {
QMAKE_CXXFLAGS_X86 += -Werror=return-type
#macx-clang* {
#QMAKE_CXXFLAGS += -mmacosx-version-min=10.7
#exists(/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX) {
# # nothing
# #message("SDK")
# #QMAKE_MAC_SDK = macosx
#}
#else:exists(/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk) {
# #QMAKE_MAC_SDK = macosx10.12
#}
#else:exists(/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk) {
# #QMAKE_MAC_SDK = macosx10.11
#}
#else:exists(/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk) {
# #QMAKE_MAC_SDK = macosx10.9
#}
#exists(/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1) {
# INCLUDEPATH += /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1
#}
#}
greaterThan(QT_MAJOR_VERSION, 4) {
QMAKE_LFLAGS += -F/System/Library/Frameworks
}
}
linux-* {
QMAKE_LFLAGS += -Wl,-rpath,"'\$$ORIGIN'"
}
win32 {
RLIBPRE =
RLIBPOST = .lib
RLIBPOSTDLL = .dll
}
else {
RLIBPRE = lib
RLIBPOST = .a
macx {
RLIBPOSTDLL = .dylib
}
else {
RLIBPOSTDLL = .so
}
}
!isEmpty(r_libname) {
RLIBNAME = $$r_libname
}
else {
RLIBNAME = "qcad"
}
TARGET = $$join(TARGET,,$$RLIBNAME,)
QT += core \
sql \
svg \
opengl \
network \
xml
lessThan(QT_MAJOR_VERSION, 6) {
QT += core \
script \
scripttools \
xmlpatterns
}
# make sure that the QtHelp framework is included in the app bundle under macOS:
greaterThan(QT_MAJOR_VERSION, 4) {
QT += help \
uitools
!r_mobile {
QT += designer
}
}
else {
CONFIG += help \
designer \
uitools
}
CONFIG -= warn_off
CONFIG += warn_on
CONFIG += debug_and_release ordered embed_manifest_dll embed_manifest_exe
win32-msvc2010 {
DEFINES += _CRT_SECURE_NO_WARNINGS
}
QMAKE_TARGET_COMPANY = QCAD.org
QMAKE_TARGET_DESCRIPTION = QCAD Application Framework
QMAKE_TARGET_COPYRIGHT =
QMAKE_TARGET_PRODUCT = QCAD Application Framework
DESTDIR = $$PWD/$$ROUTDIR
UI_DIR = .ui
LIBS += -L$$PWD/$$ROUTDIR
CONFIG(debug, debug|release) {
!win32 {
QMAKE_LFLAGS += -rdynamic
}
}
INCLUDEPATH += \
$$PWD/src/core \
$$PWD/src/core/math \
$$PWD/src/grid \
$$PWD/src/snap \
$$PWD/src/gui \
$$PWD/src/entity \
$$PWD/src/operations \
$$PWD/src/scripting \
$$PWD/src/stemmer \
$$PWD/src/scripting/ecmaapi \
$$PWD/src/scripting/ecmaapi/generated \
$$PWD/src/scripting/ecmaapi/adapters \
$$PWD/src/io/dxf \
$$PWD/src/spatialindex \
$$PWD/src/3rdparty \
$$PWD/src/zip