Build against the Xcode default toolchain when targeting OS X 10.8.
[WebKit-https.git] / Source / ThirdParty / gtest / xcode / Config / General.xcconfig
1 //
2 //  General.xcconfig
3 //
4 //  These are General configuration settings for the gtest framework and
5 //  examples.
6 //  This file is based on the Xcode Configuration files in:
7 //  http://code.google.com/p/google-toolbox-for-mac/
8 // 
9
10 GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
11
12 ARCHS = $(ARCHS_STANDARD_32_64_BIT);
13
14 HEADER_SEARCH_PATHS = $(BUILT_PRODUCTS_DIR)/usr/local/include $(WEBCORE_PRIVATE_HEADERS_DIR)/ForwardingHeaders ../ ../include/
15
16 // Zerolink prevents link warnings so turn it off
17 ZERO_LINK = NO
18
19 // Prebinding considered unhelpful in 10.3 and later
20 PREBINDING = NO
21
22 // Strictest warning policy
23 WARNING_CFLAGS = -Wall -Werror -Wendif-labels -Wnewline-eof -Wno-sign-compare -Wshadow
24 CLANG_WARN_CONSTANT_CONVERSION = YES;
25 CLANG_WARN_EMPTY_BODY = YES;
26 CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
27 GCC_WARN_ABOUT_RETURN_TYPE = YES;
28 GCC_WARN_UNDECLARED_SELECTOR = YES;
29 GCC_WARN_UNINITIALIZED_AUTOS = YES;
30 GCC_WARN_UNUSED_FUNCTION = YES;
31 GCC_WARN_UNUSED_VARIABLE = YES;
32
33 // Work around Xcode bugs by using external strip. See:
34 // http://lists.apple.com/archives/Xcode-users/2006/Feb/msg00050.html
35 SEPARATE_STRIP = YES
36
37 // Force C99 dialect
38 GCC_C_LANGUAGE_STANDARD = c99
39
40 // Force C++11
41 CLANG_CXX_LANGUAGE_STANDARD = gnu++0x;
42
43 // not sure why apple defaults this on, but it's pretty risky
44 ALWAYS_SEARCH_USER_PATHS = NO
45
46 // Turn on position dependent code for most cases (overridden where appropriate)
47 GCC_DYNAMIC_NO_PIC = YES
48
49 GCC_PREPROCESSOR_DEFINITIONS = $(GCC_PREPROCESSOR_DEFINITIONS) GTEST_HAS_TR1_TUPLE=0 GTEST_HAS_RTTI=0;
50
51 CLANG_CXX_LIBRARY = libc++;
52
53 TARGET_MAC_OS_X_VERSION_MAJOR = $(MAC_OS_X_VERSION_MAJOR);
54
55 TARGETING_SAME_OS_X_VERSION = $(TARGETING_SAME_OS_X_VERSION_$(MAC_OS_X_VERSION_MAJOR)_$(TARGET_MAC_OS_X_VERSION_MAJOR));
56 TARGETING_SAME_OS_X_VERSION_1070_1070 = YES;
57 TARGETING_SAME_OS_X_VERSION_1080_1080 = YES;
58 TARGETING_SAME_OS_X_VERSION_1090_1090 = YES;
59
60 // Don't build against an SDK unless we're targeting an older OS version.
61 SDKROOT = $(SDKROOT_TARGETING_SAME_OS_X_VERSION_$(TARGETING_SAME_OS_X_VERSION));
62 SDKROOT_TARGETING_SAME_OS_X_VERSION_ = macosx;
63
64 // VERSIONING BUILD SETTINGS (used in Info.plist)
65 GTEST_VERSIONINFO_ABOUT =  © 2008 Google Inc.
66 OTHER_CFLAGS = $(ASAN_OTHER_CFLAGS);
67 OTHER_CPLUSPLUSFLAGS = $(ASAN_OTHER_CPLUSPLUSFLAGS);
68 OTHER_LDFLAGS = $(ASAN_OTHER_LDFLAGS);
69
70 TOOLCHAINS = $(TOOLCHAINS_$(MAC_OS_X_VERSION_MAJOR));
71 TOOLCHAINS_1070 = $(TOOLCHAINS);
72 TOOLCHAINS_1080 = default;
73 TOOLCHAINS_1090 = $(TOOLCHAINS);