blob: 890596b596d98618e25253667c06668df6a2692b (
plain)
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
CONFIG *= warn_on
win32 {
CONFIG(intelcpp) {
DEFINES *= RESTRICT=restrict
DEFINES *= VAR_ARRAYS
QMAKE_CC = icl
QMAKE_CXX = icl
QMAKE_LIB = xilib /nologo
QMAKE_LINK = xilink
QMAKE_CFLAGS *= -Qstd=c99 -Qrestrict -Qvc9
QMAKE_CXXFLAGS *= -Qstd=c++0x -Qrestrict -Qvc9
QMAKE_CFLAGS_RELEASE *= -O3 -QxK -Qip -Qipo
QMAKE_CXXFLAGS_RELEASE *= -O3 -QxK -Qip -Qipo
QMAKE_CFLAGS_DEBUG *= -O2 -QxK -Ob0
#-RTCs -RTCu -RTCc
QMAKE_CXXFLAGS_DEBUG *= -O2 -QxK -Ob0
#-RTCs -RTCu -RTCc
CONFIG(optgen) {
QMAKE_CFLAGS *= -Qprof-gen
QMAKE_CXXFLAGS *= -Qprof-gen
}
CONFIG(optimize) {
QMAKE_CFLAGS *= -Qprof-use
QMAKE_CXXFLAGS *= -Qprof-use
}
} else {
DEFINES *= RESTRICT=
}
CONFIG(symbols) {
QMAKE_CFLAGS_RELEASE *= -GR -Zi -Oy-
QMAKE_CXXFLAGS_RELEASE *= -GR -Zi -Oy-
QMAKE_LFLAGS *= -fixed:no -debug
}
} else {
DEFINES *= RESTRICT=__restrict__
CONFIG(opt-gcc) {
QMAKE_CC = /opt/gcc/bin/gcc
QMAKE_CXX = /opt/gcc/bin/g++
QMAKE_LINK = /opt/gcc/bin/g++
}
QMAKE_CFLAGS *= -Wshadow -Woverloaded-virtual -Wold-style-cast -Wconversion -Wsign-compare -fvisibility=hidden
QMAKE_CXXFLAGS *= -Wshadow -Woverloaded-virtual -Wold-style-cast -Wconversion -Wsign-compare -fvisibility=hidden
!macx {
QMAKE_LFLAGS *= -Wl,--as-needed
}
CONFIG(optgen) {
QMAKE_CFLAGS *= -O3 -march=native -ffast-math -ftree-vectorize -fprofile-generate
QMAKE_CXXFLAGS *= -O3 -march=native -ffast-math -ftree-vectorize -fprofile-generate
QMAKE_LFLAGS *= -fprofile-generate
}
CONFIG(optimize) {
QMAKE_CFLAGS *= -O3 -march=native -ffast-math -ftree-vectorize -fprofile-use
QMAKE_CXXFLAGS *= -O3 -march=native -ffast-math -ftree-vectorize -fprofile-use
}
CONFIG(symbols) {
QMAKE_CFLAGS *= -g
QMAKE_CXXFLAGS *= -g
}
}
macx {
ARCH=$$system(uname -m)
X86ARCH=$$find(ARCH, i[3456]86) $$find(ARCH, x86_64)
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.4
QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.4u.sdk
CONFIG(debug, debug|release) {
CONFIG += no-universal
}
CONFIG(no-universal) {
!isEmpty(X86ARCH) {
QMAKE_CFLAGS += -mmmx -msse
QMAKE_CXXFLAGS += -mmmx -msse
}
} else {
CONFIG += x86 ppc
# Precompiled headers are broken when using Makefiles.
!macx-xcode {
CONFIG += no-pch
}
}
}
CONFIG(no-pch) {
CONFIG -= precompile_header
} else {
CONFIG *= precompile_header
}
|