forked from OpenHD/QOpenHD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platforms.pri
77 lines (73 loc) · 2.07 KB
/
platforms.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
linux {
linux-g++ | linux-g++-64 | linux-g++-32 | linux-clang {
message("LinuxBuild")
CONFIG += LinuxBuild
DEFINES += __desktoplinux__
DEFINES += __STDC_LIMIT_MACROS
CONFIG += ltcg
linux-clang {
message("Linux clang")
QMAKE_CXXFLAGS += -Qunused-arguments -fcolor-diagnostics
}
} else : linux-jetson-nano-g++ {
message("JetsonBuild")
CONFIG += JetsonBuild
DEFINES += __STDC_LIMIT_MACROS __jetson__
LIBS += -lrt
message($$LIBS)
} else : linux-rpi-g++ | linux-rpi-vc4-g++ | linux-rasp-pi-g++ {
message("RaspberryPiBuild")
CONFIG += RaspberryPiBuild
DEFINES += __STDC_LIMIT_MACROS __rasp_pi__
LIBS += -lrt
message($$LIBS)
} else : android-g++ | android-clang {
CONFIG += AndroidBuild MobileBuild
DEFINES += __mobile__
DEFINES += __android__
DEFINES += __STDC_LIMIT_MACROS
target.path = $$DESTDIR
equals(ANDROID_TARGET_ARCH, x86) {
CONFIG += Androidx86Build
DEFINES += __androidx86__
}
equals(ANDROID_TARGET_ARCH, arm64-v8a) {
message("AndroidARM64Build")
CONFIG += AndroidARM64Build
DEFINES += __androidarm64__
}
} else {
error("Compiler/platform not supported")
}
}
win32 {
CONFIG += WindowsBuild
DEFINES += __windows__
DEFINES += __STDC_LIMIT_MACROS
CONFIG += ltcg
}
macx {
message("MacBuild")
CONFIG += MacBuild
DEFINES += __macos__
DEFINES += __apple__
CONFIG += x86_64
CONFIG -= x86
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.12
QMAKE_CXXFLAGS += -fvisibility=hidden
QMAKE_CXXFLAGS += -Wno-address-of-packed-member
CONFIG += ltcg
}
ios {
message("iOSBuild")
CONFIG += iOSBuild MobileBuild app_bundle
DEFINES += __ios__
DEFINES += __apple__
DEFINES += __mobile__
QMAKE_IOS_DEPLOYMENT_TARGET = 12.1
QMAKE_APPLE_TARGETED_DEVICE_FAMILY = 1,2
QMAKE_LFLAGS += -Wl
}
MobileBuild {
DEFINES += __mobile__
}