4 // These are General configuration settings for the gtest framework and
6 // This file is based on the Xcode Configuration files in:
7 // http://code.google.com/p/google-toolbox-for-mac/
10 #include "CompilerVersion.xcconfig"
12 // Not building PowerPC any more
15 // Zerolink prevents link warnings so turn it off
18 // Prebinding considered unhelpful in 10.3 and later
21 // Strictest warning policy
22 WARNING_CFLAGS = -Wall -Werror -Wendif-labels -Wnewline-eof -Wno-sign-compare -Wshadow
24 // Work around Xcode bugs by using external strip. See:
25 // http://lists.apple.com/archives/Xcode-users/2006/Feb/msg00050.html
29 GCC_C_LANGUAGE_STANDARD = c99
31 // not sure why apple defaults this on, but it's pretty risky
32 ALWAYS_SEARCH_USER_PATHS = NO
34 // Turn on position dependent code for most cases (overridden where appropriate)
35 GCC_DYNAMIC_NO_PIC = YES
37 REAL_PLATFORM_NAME = $(REAL_PLATFORM_NAME_$(PLATFORM_NAME));
38 REAL_PLATFORM_NAME_ = $(REAL_PLATFORM_NAME_macosx);
39 REAL_PLATFORM_NAME_iphoneos = iphoneos;
40 REAL_PLATFORM_NAME_iphonesimulator = iphonesimulator;
41 REAL_PLATFORM_NAME_macosx = macosx;
43 TARGET_MAC_OS_X_VERSION_MAJOR = $(MAC_OS_X_VERSION_MAJOR);
45 // If the target Mac OS X version does not match the current Mac OS X version,
46 // then we'll want to build using the target version's SDK.
47 SDKROOT = $(SDKROOT_$(MAC_OS_X_VERSION_MAJOR)_$(TARGET_MAC_OS_X_VERSION_MAJOR));
48 SDKROOT_1050_1040 = macosx10.4;
49 SDKROOT_1060_1040 = macosx10.4;
50 SDKROOT_1060_1050 = macosx10.5;
51 SDKROOT_1070_1040 = macosx10.4;
52 SDKROOT_1080_1040 = macosx10.4;
53 SDKROOT_1090_1040 = macosx10.4;
54 SDKROOT_1070_1050 = macosx10.5;
55 SDKROOT_1080_1050 = macosx10.5;
56 SDKROOT_1090_1050 = macosx10.5;
57 SDKROOT_1070_1060 = macosx10.6;
58 SDKROOT_1080_1060 = macosx10.6;
59 SDKROOT_1090_1060 = macosx10.6;
60 SDKROOT_1080_1070 = macosx10.7;
61 SDKROOT_1090_1070 = macosx10.7;
62 SDKROOT_1090_1080 = macosx10.8;
65 // VERSIONING BUILD SETTINGS (used in Info.plist)
66 GTEST_VERSIONINFO_ABOUT = © 2008 Google Inc.