-
Notifications
You must be signed in to change notification settings - Fork 20
/
common_options.qmake
70 lines (54 loc) · 1.49 KB
/
common_options.qmake
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
# -----------------------------
# Mac build of Qt 5 ships without pkg-config support.
QT_CONFIG -= no-pkg-config
DUNNARTBASE = $$PWD
DESTDIR = $$DUNNARTBASE/build
# Source common options from a parent project if this exists
# in a directory one level up.
lessThan(QT_MAJOR_VERSION, 5) {
error("Dunnart requires Qt 5.0 or greater.")
}
include("$$DUNNARTBASE/../common_options.qmake", "", true)
# -----------------------------
win32 {
CONFIG += embed_manifest_dll embed_manifest_exe
}
CONFIG(nightlybuild) {
CONFIG += displaygithash release
}
# If both release and debug are set, debug overrides release,
# which is the normal behaviour for qmake.
#
CONFIG(debug, release|debug) {
message("CONFIG set for debug")
} else {
message("CONFIG set for release")
DEFINES *= NDEBUG
macx {
# QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.5.sdk
# CONFIG += x86_64 x86
}
}
CONFIG(noassertions) {
DEFINES *= NDEBUG QT_NO_DEBUG
}
QMAKE_CXXFLAGS_RELEASE -= -Os -O2
QMAKE_CXXFLAGS_RELEASE += -O3
QMAKE_CXXFLAGS_DEBUG += -O0
contains(TEMPLATE, lib) {
macx {
arcadia {
QMAKE_LFLAGS_SONAME = -Wl,-install_name,@executable_path/dunnart/build/
} else {
QMAKE_LFLAGS_SONAME = -Wl,-install_name,@executable_path/../Frameworks/
DESTDIR = $$DUNNARTBASE/Dunnart.app/Contents/Frameworks
}
}
}
# subdirs where qmake should place it's generated files
UI_DIR = gen-ui
MOC_DIR = gen-moc
OBJECTS_DIR = gen-obj
RCC_DIR = gen-rcc
DEPENDPATH += $$OUT_PWD/gen-moc
INCLUDEPATH += $$OUT_PWD/gen-moc