-
Notifications
You must be signed in to change notification settings - Fork 1
/
common.pri
55 lines (44 loc) · 1.14 KB
/
common.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
#-----------------------------------------------
# environment management
#-----------------------------------------------
unix {
# QMAKE_CXX = /usr/bin/colorgcc
QMAKE_CXX = /usr/bin/clang++
QMAKE_CXXFLAGS += -ferror-limit=1
QMAKE_CXXFLAGS += -Wno-invalid-source-encoding
}
# release only on win32
win32 {
CONFIG += release
}
#-----------------------------------------------
# output file management
#-----------------------------------------------
# start at pwd
TARGET_PREFIX = $$PWD
# separate unix and windows builds
unix {
TARGET_PREFIX = $$TARGET_PREFIX/unix
}
win32 {
TARGET_PREFIX = $$TARGET_PREFIX/win32
}
debug {
DEFINES += DEBUG
}
CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT
#debug_and_release:build_pass {
# separate debug from release
CONFIG(debug, debug|release) {
TARGET_PREFIX = $$TARGET_PREFIX/debug
} else {
TARGET_PREFIX = $$TARGET_PREFIX/release
}
#}
OUT_PREFIX = $$TARGET_PREFIX/$$TARGET
# define all significant output directories
DESTDIR = $$OUT_PREFIX/bin
MOC_DIR = $$OUT_PREFIX/moc
OBJECTS_DIR = $$OUT_PREFIX/obj
RCC_DIR = $$OUT_PREFIX/rcc
UI_DIR = $$OUT_PREFIX/ui