-
Notifications
You must be signed in to change notification settings - Fork 27
/
vars.pri
54 lines (46 loc) · 1.07 KB
/
vars.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
DEFINES += RAT_TEST_PAD
CONFIG(release, debug|release): BUILD=release
CONFIG(debug, debug|release): BUILD=debug
windows:{
PLATFORM_OS="windows"
PLATFORM_OS_U="WINDOWS"
PLATFORM_OS_W="Windows"
contains(QMAKE_TARGET.arch, x86_64):{
PLATFORM_ARCH = "64"
}else{
PLATFORM_ARCH = "32"
}
}else{
linux: {
PLATFORM_OS = "linux"
PLATFORM_OS_U="LINUX"
PLATFORM_OS_W="Linux"
}
macx: {
PLATFORM_OS = "mac"
PLATFORM_OS_U="MAC"
PLATFORM_OS_W="Mac"
}
BITSIZE = $$system(getconf LONG_BIT)
if (contains(BITSIZE, 64)) {
PLATFORM_ARCH = "64"
}
if (contains(BITSIZE, 32)) {
PLATFORM_ARCH = "32"
}
android: {
PLATFORM_OS = "android"
PLATFORM = "android"
PLATFORM_OS_U="ANDROID"
PLATFORM_OS_W="Android"
}
}
DEFINES += "RAT_OS_$${PLATFORM}"
export(PLATFORM)
export(PLATFORM_OS)
export(PLATFORM_ARCH)
isEmpty(PLATFORM) {
PLATFORM = "$$PLATFORM_OS-$$PLATFORM_ARCH"
}
message(======================)
message(Generating for $$PLATFORM)