-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.pri
50 lines (41 loc) · 1.42 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
# Avoid SDK version warning
CONFIG += sdk_no_version_check
CONFIG += unversioned_soname
# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
# Release with debug info
#QMAKE_CFLAGS_RELEASE -= $$QMAKE_CFLAGS_RELEASE
#QMAKE_CFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO
#QMAKE_CXXFLAGS_RELEASE -= $$QMAKE_CXXFLAGS_RELEASE
#QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO
#QMAKE_LFLAGS_RELEASE -= $$QMAKE_LFLAGS_RELEASE
#QMAKE_LFLAGS_RELEASE = $$QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO
win32:CONFIG += skip_target_version_ext
!win32:CONFIG += unversioned_libname
# Qt 5.12 supports macOS: 10.12 10.13 10.14
# macos:QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.12
# Platform Settings
macos:CONFIG -= app_bundle
win32:DEFINES += WIN32
CONFIG(debug, debug|release) {
isEmpty(CUSTOMDESTDIR){
TOP_OUTDIR=$$shadowed($$PWD)/debug
} else {
TOP_OUTDIR=$$CUSTOMDESTDIR
}
} else {
isEmpty(CUSTOMDESTDIR){
TOP_OUTDIR=$$shadowed($$PWD)/release
} else {
TOP_OUTDIR=$$CUSTOMDESTDIR
}
DEFINES += QT_NO_DEBUG_OUTPUT
}
DESTDIR=$$TOP_OUTDIR
LIBRARIES_OUTDIR=$$TOP_OUTDIR
MODULES_OUTDIR=$$TOP_OUTDIR
LIBS += -L$$LIBRARIES_OUTDIR
INCLUDEPATH += $$TOP_BUILDDIR