|
1 # |
|
2 # qmake configuration for common gcc on Mac OS X |
|
3 # |
|
4 |
|
5 include(mac.conf) |
|
6 |
|
7 QMAKE_COMPILER_DEFINES += __APPLE__ __GNUC__ |
|
8 QMAKE_CFLAGS += -pipe |
|
9 QMAKE_CFLAGS_DEPS += -M |
|
10 QMAKE_CFLAGS_WARN_ON += -Wall -W |
|
11 QMAKE_CFLAGS_WARN_OFF += -w |
|
12 QMAKE_CFLAGS_RELEASE += -O2 |
|
13 QMAKE_CFLAGS_DEBUG += -g |
|
14 QMAKE_CFLAGS_SHLIB += -fPIC |
|
15 QMAKE_CFLAGS_STATIC_LIB += -fPIC |
|
16 QMAKE_CFLAGS_YACC += -Wno-unused -Wno-parentheses |
|
17 QMAKE_CFLAGS_HIDESYMS += -fvisibility=hidden |
|
18 QMAKE_CFLAGS_PRECOMPILE += -x c-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT} |
|
19 QMAKE_CFLAGS_USE_PRECOMPILE += -include ${QMAKE_PCH_OUTPUT_BASE} |
|
20 |
|
21 QMAKE_CFLAGS_PPC_64 += -arch ppc64 -Xarch_ppc64 -mmacosx-version-min=10.5 |
|
22 QMAKE_OBJECTIVE_CFLAGS_PPC_64 += -arch ppc64 -Xarch_ppc64 -mmacosx-version-min=10.5 |
|
23 QMAKE_CFLAGS_X86_64 += -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 |
|
24 QMAKE_OBJECTIVE_CFLAGS_X86_64 += -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 |
|
25 QMAKE_CFLAGS_PPC += -arch ppc |
|
26 QMAKE_OBJECTIVE_CFLAGS_PPC += -arch ppc |
|
27 QMAKE_CFLAGS_X86 += -arch i386 |
|
28 QMAKE_OBJECTIVE_CFLAGS_X86 += -arch i386 |
|
29 QMAKE_CFLAGS_DWARF2 += -gdwarf-2 |
|
30 |
|
31 QMAKE_CXXFLAGS += $$QMAKE_CFLAGS |
|
32 QMAKE_CXXFLAGS_DEPS += $$QMAKE_CFLAGS_DEPS |
|
33 QMAKE_CXXFLAGS_WARN_ON += $$QMAKE_CFLAGS_WARN_ON |
|
34 QMAKE_CXXFLAGS_WARN_OFF += $$QMAKE_CFLAGS_WARN_OFF |
|
35 QMAKE_CXXFLAGS_RELEASE += $$QMAKE_CFLAGS_RELEASE |
|
36 QMAKE_CXXFLAGS_DEBUG += $$QMAKE_CFLAGS_DEBUG |
|
37 QMAKE_CXXFLAGS_SHLIB += $$QMAKE_CFLAGS_SHLIB |
|
38 QMAKE_CXXFLAGS_STATIC_LIB += $$QMAKE_CFLAGS_STATIC_LIB |
|
39 QMAKE_CXXFLAGS_YACC += $$QMAKE_CFLAGS_YACC |
|
40 QMAKE_CXXFLAGS_HIDESYMS += $$QMAKE_CFLAGS_HIDESYMS -fvisibility-inlines-hidden |
|
41 QMAKE_CXXFLAGS_PPC_64 += -arch ppc64 -Xarch_ppc64 -mmacosx-version-min=10.5 |
|
42 QMAKE_CXXFLAGS_X86_64 += -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 |
|
43 QMAKE_CXXFLAGS_PPC += -arch ppc |
|
44 QMAKE_CXXFLAGS_X86 += -arch i386 |
|
45 QMAKE_CXXFLAGS_DWARF2 += $$QMAKE_CFLAGS_DWARF2 |
|
46 QMAKE_CXXFLAGS_PRECOMPILE += -x c++-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT} |
|
47 QMAKE_CXXFLAGS_USE_PRECOMPILE = $$QMAKE_CFLAGS_USE_PRECOMPILE |
|
48 |
|
49 QMAKE_LINK = $$QMAKE_CXX |
|
50 QMAKE_LINK_SHLIB = $$QMAKE_CXX |
|
51 QMAKE_LINK_C = $$QMAKE_CC |
|
52 QMAKE_LINK_C_SHLIB = $$QMAKE_CC |
|
53 QMAKE_LFLAGS += -headerpad_max_install_names |
|
54 QMAKE_LFLAGS_RELEASE += |
|
55 QMAKE_LFLAGS_DEBUG += |
|
56 QMAKE_LFLAGS_APP += |
|
57 QMAKE_LFLAGS_SHLIB += -single_module -dynamiclib |
|
58 QMAKE_LFLAGS_PLUGIN += $$QMAKE_LFLAGS_SHLIB |
|
59 QMAKE_LFLAGS_THREAD += |
|
60 QMAKE_LFLAGS_INCREMENTAL+= -undefined suppress -flat_namespace |
|
61 QMAKE_LFLAGS_SONAME += -install_name$${LITERAL_WHITESPACE} |
|
62 QMAKE_LFLAGS_PPC_64 += -arch ppc64 -Xarch_ppc64 -mmacosx-version-min=10.5 |
|
63 QMAKE_LFLAGS_X86_64 += -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 |
|
64 QMAKE_LFLAGS_PPC += -arch ppc |
|
65 QMAKE_LFLAGS_X86 += -arch i386 |
|
66 QMAKE_LFLAGS_VERSION += -current_version$${LITERAL_WHITESPACE} |
|
67 QMAKE_LFLAGS_COMPAT_VERSION += -compatibility_version$${LITERAL_WHITESPACE} |
|
68 # -all_load requred to make Objective-C categories work in static builds. |
|
69 QMAKE_LFLAGS_STATIC_LIB += -all_load |
|
70 QMAKE_RPATH += |
|
71 |
|
72 QMAKE_PCH_OUTPUT_EXT = .gch |
|
73 |
|
74 QMAKE_OBJCFLAGS_PRECOMPILE += -x objective-c-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT} |
|
75 QMAKE_OBJCFLAGS_USE_PRECOMPILE = $$QMAKE_CFLAGS_USE_PRECOMPILE |
|
76 |
|
77 QMAKE_OBJCXXFLAGS_PRECOMPILE += -x objective-c++-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT} |
|
78 QMAKE_OBJCXXFLAGS_USE_PRECOMPILE = $$QMAKE_CFLAGS_USE_PRECOMPILE |