JavaScriptCore:
[WebKit-https.git] / WebCore / Configurations / Base.xcconfig
1 DEBUG_INFORMATION_FORMAT = dwarf;
2 GCC_C_LANGUAGE_STANDARD = gnu99;
3 GCC_DEBUGGING_SYMBOLS = default;
4 GCC_DYNAMIC_NO_PIC = NO;
5 GCC_ENABLE_CPP_EXCEPTIONS = NO;
6 GCC_ENABLE_CPP_RTTI = NO;
7 GCC_ENABLE_OBJC_EXCEPTIONS = YES;
8 GCC_ENABLE_OBJC_GC = supported;
9 GCC_ENABLE_SYMBOL_SEPARATION = NO;
10 GCC_FAST_OBJC_DISPATCH = YES;
11 GCC_MODEL_TUNING = G5;
12 GCC_OBJC_CALL_CXX_CDTORS = YES;
13 GCC_PRECOMPILE_PREFIX_HEADER = YES;
14 GCC_THREADSAFE_STATICS = NO;
15 GCC_TREAT_WARNINGS_AS_ERRORS = YES;
16 GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = NO;
17 GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
18 GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
19 GCC_WARN_NON_VIRTUAL_DESTRUCTOR = YES;
20 LINKER_DISPLAYS_MANGLED_NAMES = YES;
21 PREBINDING = NO;
22 VALID_ARCHS = i386 ppc x86_64 ppc64;
23 WARNING_CFLAGS = $(WARNING_CFLAGS_$(CURRENT_ARCH));
24 WARNING_CFLAGS_BASE = -Wall -Wextra -Wcast-align -Wcast-qual -Wchar-subscripts -Wextra-tokens -Wformat=2 -Winit-self -Wmissing-format-attribute -Wmissing-noreturn -Wpacked -Wpointer-arith -Wredundant-decls -Wundef -Wwrite-strings;
25 WARNING_CFLAGS_ = $(WARNING_CFLAGS_BASE) -Wshorten-64-to-32;
26 WARNING_CFLAGS_i386 = $(WARNING_CFLAGS_BASE) -Wshorten-64-to-32;
27 WARNING_CFLAGS_ppc = $(WARNING_CFLAGS_BASE) -Wshorten-64-to-32;
28 // FIXME: WebCore 64-bit builds should build with -Wshorten-64-to-32
29 WARNING_CFLAGS_ppc64 = $(WARNING_CFLAGS_BASE);
30 WARNING_CFLAGS_x86_64 = $(WARNING_CFLAGS_BASE);
31
32
33 // DEBUG_DEFINES, GCC_OPTIMIZATION_LEVEL, STRIP_INSTALLED_PRODUCT and DEAD_CODE_STRIPPING vary between the debug and normal variants.
34 // We set up the values for each variant here, and have the Debug configuration in the Xcode project use the _debug variant.
35 DEBUG_DEFINES_debug = DISABLE_THREAD_CHECK;
36 DEBUG_DEFINES_normal = NDEBUG;
37 DEBUG_DEFINES = $(DEBUG_DEFINES_$(CURRENT_VARIANT));
38
39 GCC_OPTIMIZATION_LEVEL = $(GCC_OPTIMIZATION_LEVEL_$(CURRENT_VARIANT));
40 GCC_OPTIMIZATION_LEVEL_normal = 2;
41 GCC_OPTIMIZATION_LEVEL_debug = 0;
42
43 STRIP_INSTALLED_PRODUCT = $(STRIP_INSTALLED_PRODUCT_$(CURRENT_VARIANT));
44 STRIP_INSTALLED_PRODUCT_normal = YES;
45 STRIP_INSTALLED_PRODUCT_debug = NO;
46
47 DEAD_CODE_STRIPPING_debug = NO;
48 DEAD_CODE_STRIPPING_normal = YES;
49 DEAD_CODE_STRIPPING = $(DEAD_CODE_STRIPPING_$(CURRENT_VARIANT));
50
51
52 WEBCORE_SQLITE3_HEADER_SEARCH_PATHS = $(NEXT_ROOT)/usr/local/include/WebCoreSQLite3;
53 SQLITE3_HEADER_SEARCH_PATHS = $(SQLITE3_HEADER_SEARCH_PATHS_$(MAC_OS_X_VERSION_MAJOR));
54 SQLITE3_HEADER_SEARCH_PATHS_ = $(SQLITE3_HEADER_SEARCH_PATHS_1040);
55 SQLITE3_HEADER_SEARCH_PATHS_1040 = $(WEBCORE_SQLITE3_HEADER_SEARCH_PATHS);
56 SQLITE3_HEADER_SEARCH_PATHS_1050 = $(WEBCORE_SQLITE3_HEADER_SEARCH_PATHS);
57 SQLITE3_HEADER_SEARCH_PATHS_1060 = ;
58
59 GCC_VERSION = $(GCC_VERSION_$(XCODE_VERSION_ACTUAL));
60 GCC_VERSION_0310 = 4.2;
61
62
63 // <rdar://problem/5488678>: Production builds on 10.4 PowerPC need to have debugging symbols disabled to prevent a huge STABS section being generated.
64 //                           Xcode on 10.4 does not define MAC_OS_X_VERSION_MAJOR, so the default Mac OS X version is treated as 10.4.
65 GCC_GENERATE_DEBUGGING_SYMBOLS = $(GCC_GENERATE_DEBUGGING_SYMBOLS_$(CURRENT_ARCH));
66 GCC_GENERATE_DEBUGGING_SYMBOLS_i386 = YES;
67 GCC_GENERATE_DEBUGGING_SYMBOLS_x86_64 = YES;
68 GCC_GENERATE_DEBUGGING_SYMBOLS_ppc64 = YES;
69 GCC_GENERATE_DEBUGGING_SYMBOLS_ppc = $(GCC_GENERATE_DEBUGGING_SYMBOLS_$(CURRENT_ARCH)_$(CONFIGURATION));
70 GCC_GENERATE_DEBUGGING_SYMBOLS_ppc_Debug = YES;
71 GCC_GENERATE_DEBUGGING_SYMBOLS_ppc_Release = YES;
72 GCC_GENERATE_DEBUGGING_SYMBOLS_ppc_Production = $(GCC_GENERATE_DEBUGGING_SYMBOLS_$(CURRENT_ARCH)_$(CONFIGURATION)_$(MAC_OS_X_VERSION_MAJOR));
73 GCC_GENERATE_DEBUGGING_SYMBOLS_ppc_Production_ = NO;
74 GCC_GENERATE_DEBUGGING_SYMBOLS_ppc_Production_1040 = NO;
75 GCC_GENERATE_DEBUGGING_SYMBOLS_ppc_Production_1050 = YES;
76 GCC_GENERATE_DEBUGGING_SYMBOLS_ppc_Production_1060 = YES;