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 // Build for PPC and Intel, 32- and 64-bit
13 // Zerolink prevents link warnings so turn it off
16 // Prebinding considered unhelpful in 10.3 and later
19 // Strictest warning policy
20 WARNING_CFLAGS = -Wall -Werror -Wendif-labels -Wnewline-eof -Wno-sign-compare -Wshadow
22 // Work around Xcode bugs by using external strip. See:
23 // http://lists.apple.com/archives/Xcode-users/2006/Feb/msg00050.html
27 GCC_C_LANGUAGE_STANDARD = c99
29 // not sure why apple defaults this on, but it's pretty risky
30 ALWAYS_SEARCH_USER_PATHS = NO
32 // Turn on position dependent code for most cases (overridden where appropriate)
33 GCC_DYNAMIC_NO_PIC = YES
35 REAL_PLATFORM_NAME = $(REAL_PLATFORM_NAME_$(PLATFORM_NAME));
36 REAL_PLATFORM_NAME_ = $(REAL_PLATFORM_NAME_macosx);
37 REAL_PLATFORM_NAME_iphoneos = iphoneos;
38 REAL_PLATFORM_NAME_iphonesimulator = iphonesimulator;
39 REAL_PLATFORM_NAME_macosx = macosx;
41 TARGET_MAC_OS_X_VERSION_MAJOR = $(MAC_OS_X_VERSION_MAJOR);
43 // Use GCC 4.2 with Xcode 3.1, which includes GCC 4.2 but defaults to GCC 4.0.
44 // Note that Xcode versions as new as 3.1.2 use XCODE_VERSION_ACTUAL for the minor version
45 // number. Newer versions of Xcode use XCODE_VERSION_MINOR for the minor version, and
46 // XCODE_VERSION_ACTUAL for the full version number.
47 TARGET_GCC_VERSION = $(TARGET_GCC_VERSION_$(REAL_PLATFORM_NAME));
48 TARGET_GCC_VERSION_iphoneos = LLVM_GCC_42;
49 TARGET_GCC_VERSION_iphonesimulator = GCC_42;
50 TARGET_GCC_VERSION_macosx = $(TARGET_GCC_VERSION_macosx_$(TARGET_MAC_OS_X_VERSION_MAJOR));
51 TARGET_GCC_VERSION_macosx_ = $(TARGET_GCC_VERSION_macosx_1040);
52 TARGET_GCC_VERSION_macosx_1040 = GCC_40;
53 TARGET_GCC_VERSION_macosx_1050 = $(TARGET_GCC_VERSION_macosx_1050_$(XCODE_VERSION_MINOR));
54 TARGET_GCC_VERSION_macosx_1050_ = $(TARGET_GCC_VERSION_macosx_1050_$(XCODE_VERSION_ACTUAL));
55 TARGET_GCC_VERSION_macosx_1050_0310 = GCC_42;
56 TARGET_GCC_VERSION_macosx_1050_0320 = GCC_42;
57 TARGET_GCC_VERSION_macosx_1060 = GCC_42;
58 TARGET_GCC_VERSION_macosx_1070 = $(TARGET_GCC_VERSION_macosx_1070_$(CONFIGURATION));
59 TARGET_GCC_VERSION_macosx_1070_Debug = LLVM_COMPILER;
60 TARGET_GCC_VERSION_macosx_1070_Release = LLVM_GCC_42;
61 TARGET_GCC_VERSION_macosx_1070_Production = LLVM_GCC_42;
63 GCC_VERSION = $(GCC_VERSION_$(TARGET_GCC_VERSION));
64 GCC_VERSION_GCC_40 = 4.0;
65 GCC_VERSION_GCC_42 = 4.2;
66 GCC_VERSION_LLVM_GCC_42 = com.apple.compilers.llvmgcc42;
67 GCC_VERSION_LLVM_COMPILER = com.apple.compilers.llvm.clang.1_0;
69 // If the target Mac OS X version does not match the current Mac OS X version,
70 // then we'll want to build using the target version's SDK.
71 SDKROOT = $(SDKROOT_$(MAC_OS_X_VERSION_MAJOR)_$(TARGET_MAC_OS_X_VERSION_MAJOR));
72 SDKROOT_1050_1040 = macosx10.4;
73 SDKROOT_1060_1040 = macosx10.4;
74 SDKROOT_1060_1050 = macosx10.5;
75 SDKROOT_1070_1040 = macosx10.4;
76 SDKROOT_1080_1040 = macosx10.4;
77 SDKROOT_1090_1040 = macosx10.4;
78 SDKROOT_1070_1050 = macosx10.5;
79 SDKROOT_1080_1050 = macosx10.5;
80 SDKROOT_1090_1050 = macosx10.5;
81 SDKROOT_1070_1060 = macosx10.6;
82 SDKROOT_1080_1060 = macosx10.6;
83 SDKROOT_1090_1060 = macosx10.6;
84 SDKROOT_1080_1070 = macosx10.7;
85 SDKROOT_1090_1070 = macosx10.7;
86 SDKROOT_1090_1080 = macosx10.8;
89 // VERSIONING BUILD SETTINGS (used in Info.plist)
90 GTEST_VERSIONINFO_ABOUT = © 2008 Google Inc.