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