-
Notifications
You must be signed in to change notification settings - Fork 2
/
qmake-target-platform.pri
50 lines (44 loc) · 993 Bytes
/
qmake-target-platform.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
win32 {
CONFIG += PLATFORM_WIN
!build_pass:message(PLATFORM_WIN)
win32-g++ {
CONFIG += COMPILER_GCC
!build_pass:message(COMPILER_GCC)
}
win32-msvc2019 {
CONFIG += COMPILER_MSVC2019
!build_pass:message(COMPILER_MSVC2019)
win32-msvc2019:QMAKE_TARGET.arch = x86_64
}
}
linux {
CONFIG += PLATFORM_LINUX
!build_pass:message(PLATFORM_LINUX)
# Make QMAKE_TARGET arch available for linux
!contains(QT_ARCH, x86_64) {
QMAKE_TARGET.arch = x86
}
else {
QMAKE_TARGET.arch = x86_64
}
linux-clang {
CONFIG += COMPILER_CLANG
!build_pass:message(COMPILER_CLANG)
}
}
contains(QMAKE_TARGET.arch, x86_64) {
CONFIG += PROCESSOR_x64
!build_pass:message(PROCESSOR_x64)
}
else {
CONFIG += PROCESSOR_x86
!build_pass:message(PROCESSOR_x86)
}
CONFIG(debug, release|debug) {
CONFIG += BUILD_DEBUG
!build_pass:message(BUILD_DEBUG)
}
else {
CONFIG += BUILD_RELEASE
!build_pass:message(BUILD_RELEASE)
}