blob: ef4fc80e8031efabed4bd4b83c9ca628a1867209 (
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
|
CONFIG *= warn_on
win32 {
INCLUDEPATH *= /dev/Boost/include/boost-1_42
LIBPATH *= /dev/OpenSSL/lib /dev/libsndfile
INCLUDEPATH *= /dev/OpenSSL/include /dev/libsndfile/include
CONFIG(intelcpp) {
DEFINES *= USE_INTEL_IPP
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_LTCG =
QMAKE_CXXFLAGS_LTCG =
QMAKE_LFLAGS_LTCG =
QMAKE_CFLAGS_RELEASE *= -O3 -Ot -QxSSE2 -Qprec-div-
QMAKE_CFLAGS_RELEASE -=-arch:SSE
QMAKE_CFLAGS_RELEASE -= -GL
QMAKE_CXXFLAGS_RELEASE *= -O3 -Ot -QxSSE2 -Qprec-div-
QMAKE_CXXFLAGS_RELEASE -=-arch:SSE
QMAKE_CXXFLAGS_RELEASE -= -GL
QMAKE_CFLAGS_DEBUG *= -O2 -Ob0
QMAKE_CXXFLAGS_DEBUG *= -O2 -Ob0
CONFIG(optgen) {
QMAKE_CFLAGS *= -Qprof-gen
QMAKE_CXXFLAGS *= -Qprof-gen
}
CONFIG(optimize) {
QMAKE_CFLAGS *= -Qprof-use
QMAKE_CXXFLAGS *= -Qprof-use
}
} else {
QMAKE_CFLAGS_RELEASE *= -Ox -Ot /fp:fast /Qfast_transcendentals -Ob2
QMAKE_CXXFLAGS_RELEASE *= -Ox -Ot /fp:fast /Qfast_transcendentals -Ob2
CONFIG(analyze) {
QMAKE_CFLAGS_DEBUG *= /analyze
QMAKE_CXXFLAGS_DEBUG *= /analyze
}
DEFINES *= RESTRICT=
}
CONFIG(symbols) {
QMAKE_CFLAGS_RELEASE *= -GR -Zi -Oy-
QMAKE_CXXFLAGS_RELEASE *= -GR -Zi -Oy-
QMAKE_CFLAGS_RELEASE -= -Oy
QMAKE_CXXFLAGS_RELEASE -= -Oy
QMAKE_LFLAGS *= /debug
QMAKE_LFLAGS *= /OPT:REF /OPT:ICF
}
CONFIG(debug, debug|release) {
exists($$(VLD_DIR)) {
VLD_DIR = $$(VLD_DIR)
}
else {
VLD_DIR = /dev/vld
}
INCLUDEPATH *= "$$VLD_DIR/include"
LIBPATH *= "$$VLD_DIR/lib"
}
}
unix {
DEFINES *= RESTRICT=__restrict__
QMAKE_CFLAGS *= -Wfatal-errors -Wshadow -Wconversion -Wsign-compare -fvisibility=hidden
QMAKE_CXXFLAGS *= -Wfatal-errors -Wshadow -Woverloaded-virtual -Wold-style-cast -Wconversion -Wsign-compare -fvisibility=hidden
CONFIG(opt-gcc) {
QMAKE_CC = /opt/gcc/bin/gcc
QMAKE_CXX = /opt/gcc/bin/g++
QMAKE_LINK = /opt/gcc/bin/g++
}
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
}
}
unix:!macx {
CONFIG(debug, debug|release) {
QMAKE_CFLAGS *= -fstack-protector -fPIE -pie
QMAKE_CXXFLAGS *= -fstack-protector -fPIE -pie
QMAKE_LFLAGS = -Wl,--no-add-needed
}
DEFINES *= _FORTIFY_SOURCE=2
QMAKE_LFLAGS *= -Wl,-z,relro -Wl,-z,now
CONFIG(symbols) {
QMAKE_CFLAGS *= -g
QMAKE_CXXFLAGS *= -g
}
}
macx {
INCLUDEPATH *= $$(MUMBLE_PREFIX)/boost-1_42_0/include
INCLUDEPATH *= $$(MUMBLE_PREFIX)/include
LIBPATH *= $$(MUMBLE_PREFIX)/lib
XCODE_PATH=$$system(xcode-select -print-path)
QMAKE_MAC_SDK = $${XCODE_PATH}/SDKs/MacOSX10.5.sdk
QMAKE_CC = $${XCODE_PATH}/usr/bin/gcc-4.2
QMAKE_CXX = $${XCODE_PATH}/usr/bin/g++-4.2
QMAKE_LINK = $${XCODE_PATH}/usr/bin/g++-4.2
!CONFIG(universal) {
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5
QMAKE_CFLAGS += -mmacosx-version-min=10.5 -Xarch_x86_64 -mmmx -Xarch_x86_64 -msse -Xarch_x86_64 -msse2
QMAKE_CXXFLAGS += -mmacosx-version-min=10.5 -Xarch_x86_64 -mmmx -Xarch_x86_64 -msse -Xarch_x86_64 -msse2
} else {
CONFIG += x86 ppc
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.4
QMAKE_CFLAGS += -mmacosx-version-min=10.4 -Xarch_i386 -mmmx -Xarch_i386 -msse -Xarch_i386 -msse2
QMAKE_CXXFLAGS += -mmacosx-version-min=10.4 -Xarch_i386 -mmmx -Xarch_i386 -msse -Xarch_i386 -msse2
}
QMAKE_LFLAGS += -Wl,-dead_strip -framework Cocoa -framework Carbon
CONFIG(symbols) {
QMAKE_CFLAGS *= -gfull -gdwarf-2
QMAKE_CXXFLAGS *= -gfull -gdwarf-2
}
}
CONFIG(no-pch) {
CONFIG -= precompile_header
} else {
CONFIG *= precompile_header
}
CONFIG(debug, debug|release) {
DEFINES *= SNAPSHOT_BUILD
}
|