|
1 # |
|
2 # qmake configuration for common gcc |
|
3 # |
|
4 |
|
5 QMAKE_CC = llvm-gcc |
|
6 QMAKE_CFLAGS += -pipe |
|
7 QMAKE_CFLAGS_DEPS += -M |
|
8 QMAKE_CFLAGS_WARN_ON += -Wall -W |
|
9 QMAKE_CFLAGS_WARN_OFF += -w |
|
10 QMAKE_CFLAGS_RELEASE += -O2 |
|
11 QMAKE_CFLAGS_DEBUG += -g |
|
12 QMAKE_CFLAGS_SHLIB += -fPIC |
|
13 QMAKE_CFLAGS_STATIC_LIB += -fPIC |
|
14 QMAKE_CFLAGS_YACC += -Wno-unused -Wno-parentheses |
|
15 QMAKE_CFLAGS_HIDESYMS += -fvisibility=hidden |
|
16 QMAKE_CFLAGS_PRECOMPILE += -x c-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT} |
|
17 QMAKE_CFLAGS_USE_PRECOMPILE += -include ${QMAKE_PCH_OUTPUT_BASE} |
|
18 |
|
19 QMAKE_CXX = llvm-g++ |
|
20 QMAKE_CXXFLAGS += $$QMAKE_CFLAGS |
|
21 QMAKE_CXXFLAGS_DEPS += $$QMAKE_CFLAGS_DEPS |
|
22 QMAKE_CXXFLAGS_WARN_ON += $$QMAKE_CFLAGS_WARN_ON |
|
23 QMAKE_CXXFLAGS_WARN_OFF += $$QMAKE_CFLAGS_WARN_OFF |
|
24 QMAKE_CXXFLAGS_RELEASE += $$QMAKE_CFLAGS_RELEASE |
|
25 QMAKE_CXXFLAGS_DEBUG += $$QMAKE_CFLAGS_DEBUG |
|
26 QMAKE_CXXFLAGS_SHLIB += $$QMAKE_CFLAGS_SHLIB |
|
27 QMAKE_CXXFLAGS_STATIC_LIB += $$QMAKE_CFLAGS_STATIC_LIB |
|
28 QMAKE_CXXFLAGS_YACC += $$QMAKE_CFLAGS_YACC |
|
29 QMAKE_CXXFLAGS_HIDESYMS += $$QMAKE_CFLAGS_HIDESYMS -fvisibility-inlines-hidden |
|
30 QMAKE_CXXFLAGS_PRECOMPILE += -x c++-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT} |
|
31 QMAKE_CXXFLAGS_USE_PRECOMPILE = $$QMAKE_CFLAGS_USE_PRECOMPILE |
|
32 |
|
33 QMAKE_LINK = llvm-g++ |
|
34 QMAKE_LINK_SHLIB = llvm-g++ |
|
35 QMAKE_LFLAGS += |
|
36 QMAKE_LFLAGS_RELEASE += |
|
37 QMAKE_LFLAGS_DEBUG += |
|
38 QMAKE_LFLAGS_APP += |
|
39 QMAKE_LFLAGS_SHLIB += -shared |
|
40 QMAKE_LFLAGS_PLUGIN += $$QMAKE_LFLAGS_SHLIB |
|
41 QMAKE_LFLAGS_SONAME += -Wl,-soname, |
|
42 QMAKE_LFLAGS_THREAD += |
|
43 QMAKE_RPATH = -Wl,-rpath, |
|
44 |
|
45 QMAKE_PCH_OUTPUT_EXT = .gch |
|
46 |
|
47 # -Bsymbolic-functions (ld) support |
|
48 QMAKE_LFLAGS_BSYMBOLIC_FUNC = -Wl,-Bsymbolic-functions |
|
49 QMAKE_LFLAGS_DYNAMIC_LIST = -Wl,--dynamic-list, |