-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.pri
55 lines (47 loc) · 1.52 KB
/
config.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
QTDREAM_ROOT=$$PWD
exists($${QTDREAM_ROOT}/local.pri) {
include($${QTDREAM_ROOT}/local.pri)
}
CONFIG(debug, debug|release)|CONFIG(DebugBuild) {
CONFIG -= debug release
CONFIG += debug
DEBUG_OR_RELEASE = debug
} else {
CONFIG -= debug release
CONFIG += release
DEBUG_OR_RELEASE = release
DEFINES += NDEBUG
}
CONFIG -= warn_off
CONFIG += warn_on
OBJECTS_DIR = build/$${DEBUG_OR_RELEASE}
MOC_DIR = build/gen/moc
UI_DIR = build/gen/ui
BIN_DIR = $${QTDREAM_ROOT}/bin/$${DEBUG_OR_RELEASE}
DESTDIR = $${BIN_DIR}
INCLUDEPATH += $${EXT_INCLUDES} $${QTDREAM_ROOT} build/gen . $${QTDREAM_ROOT}/src
DEPENDPATH += $${QTDREAM_ROOT}
win32 {
QMAKE_CXXFLAGS += /Gy /GR /nologo
QMAKE_CXXFLAGS += /wd4275 /wd4251 /wd4996 # disable several warnings globally
QMAKE_CXXFLAGS += /Fdqmake.pdb
# The UNICODE uses multi-byte characters functions. We cannot use this!
DEFINES -= UNICODE
DEFINES += _WIN32_WINNT=0x0501 WIN32 NOMINMAX
} else {
QMAKE_CXXFLAGS += -Wall -Wno-non-virtual-dtor
}
QMAKE_LIBDIR += $${LIB_DIR} $${EXT_LIB_DIR}
win32 {
EXT_LIBS += -ladvapi32 -lwsock32 -lwinspool -lcomdlg32
QMAKE_LFLAGS += /NODEFAULTLIB:"libcmt"
QMAKE_LFLAGS += /MACHINE:X86 # disable vc8 warning
} else {
CONFIG(debug) {
QMAKE_LFLAGS += -rdynamic
}
}
QMAKE_DISTCLEAN += $${QTDREAM_ROOT}/libs/debug/*
QMAKE_DISTCLEAN += $${QTDREAM_ROOT}/libs/release/*
QMAKE_DISTCLEAN += $${QTDREAM_ROOT}/bin/debug/*
QMAKE_DISTCLEAN += $${QTDREAM_ROOT}/bin/release/*