Adds an Xcode project for building gtest. By Preston Jackson.
This commit is contained in:
		
							
								
								
									
										30
									
								
								xcode/Config/DebugProject.xcconfig
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								xcode/Config/DebugProject.xcconfig
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,30 @@
 | 
			
		||||
//
 | 
			
		||||
//  DebugProject.xcconfig
 | 
			
		||||
//
 | 
			
		||||
//  These are Debug Configuration project settings for the gtest framework and
 | 
			
		||||
//  examples. It is set in the "Based On:" dropdown in the "Project" info
 | 
			
		||||
//  dialog.
 | 
			
		||||
//  This file is based on the Xcode Configuration files in:
 | 
			
		||||
//  http://code.google.com/p/google-toolbox-for-mac/
 | 
			
		||||
// 
 | 
			
		||||
 | 
			
		||||
#include "General.xcconfig"
 | 
			
		||||
 | 
			
		||||
// No optimization
 | 
			
		||||
GCC_OPTIMIZATION_LEVEL = 0
 | 
			
		||||
 | 
			
		||||
// Deployment postprocessing is what triggers Xcode to strip, turn it off
 | 
			
		||||
DEPLOYMENT_POSTPROCESSING = NO
 | 
			
		||||
 | 
			
		||||
// Dead code stripping off
 | 
			
		||||
DEAD_CODE_STRIPPING = NO
 | 
			
		||||
 | 
			
		||||
// Debug symbols should be on obviously
 | 
			
		||||
GCC_GENERATE_DEBUGGING_SYMBOLS = YES
 | 
			
		||||
 | 
			
		||||
// Define the DEBUG macro in all debug builds
 | 
			
		||||
OTHER_CFLAGS = $(OTHER_CFLAGS) -DDEBUG=1
 | 
			
		||||
 | 
			
		||||
// These are turned off to avoid STL incompatibilities with client code
 | 
			
		||||
// // Turns on special C++ STL checks to "encourage" good STL use
 | 
			
		||||
// GCC_PREPROCESSOR_DEFINITIONS = $(GCC_PREPROCESSOR_DEFINITIONS) _GLIBCXX_DEBUG_PEDANTIC _GLIBCXX_DEBUG _GLIBCPP_CONCEPT_CHECKS
 | 
			
		||||
							
								
								
									
										17
									
								
								xcode/Config/FrameworkTarget.xcconfig
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								xcode/Config/FrameworkTarget.xcconfig
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
			
		||||
//
 | 
			
		||||
//  FrameworkTarget.xcconfig
 | 
			
		||||
//
 | 
			
		||||
//  These are Framework target settings for the gtest framework and examples. It
 | 
			
		||||
//  is set in the "Based On:" dropdown in the "Target" info dialog.
 | 
			
		||||
//  This file is based on the Xcode Configuration files in:
 | 
			
		||||
//  http://code.google.com/p/google-toolbox-for-mac/
 | 
			
		||||
// 
 | 
			
		||||
 | 
			
		||||
// Dynamic libs need to be position independent
 | 
			
		||||
GCC_DYNAMIC_NO_PIC = NO
 | 
			
		||||
 | 
			
		||||
// Dynamic libs should not have their external symbols stripped.
 | 
			
		||||
STRIP_STYLE = non-global
 | 
			
		||||
 | 
			
		||||
// Installation Directory
 | 
			
		||||
INSTALL_PATH = @loader_path/../Frameworks
 | 
			
		||||
							
								
								
									
										41
									
								
								xcode/Config/General.xcconfig
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								xcode/Config/General.xcconfig
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,41 @@
 | 
			
		||||
//
 | 
			
		||||
//  General.xcconfig
 | 
			
		||||
//
 | 
			
		||||
//  These are General configuration settings for the gtest framework and
 | 
			
		||||
//  examples.
 | 
			
		||||
//  This file is based on the Xcode Configuration files in:
 | 
			
		||||
//  http://code.google.com/p/google-toolbox-for-mac/
 | 
			
		||||
// 
 | 
			
		||||
 | 
			
		||||
// Build for PPC and Intel, 32- and 64-bit
 | 
			
		||||
ARCHS = i386 x86_64 ppc ppc64
 | 
			
		||||
 | 
			
		||||
// Zerolink prevents link warnings so turn it off
 | 
			
		||||
ZERO_LINK = NO
 | 
			
		||||
 | 
			
		||||
// Prebinding considered unhelpful in 10.3 and later
 | 
			
		||||
PREBINDING = NO
 | 
			
		||||
 | 
			
		||||
// Strictest warning policy
 | 
			
		||||
WARNING_CFLAGS = -Wall -Werror -Wendif-labels -Wnewline-eof -Wno-sign-compare
 | 
			
		||||
 | 
			
		||||
// Work around Xcode bugs by using external strip. See:
 | 
			
		||||
// http://lists.apple.com/archives/Xcode-users/2006/Feb/msg00050.html
 | 
			
		||||
SEPARATE_STRIP = YES
 | 
			
		||||
 | 
			
		||||
// Force C99 dialect
 | 
			
		||||
GCC_C_LANGUAGE_STANDARD = c99
 | 
			
		||||
 | 
			
		||||
// not sure why apple defaults this on, but it's pretty risky
 | 
			
		||||
ALWAYS_SEARCH_USER_PATHS = NO
 | 
			
		||||
 | 
			
		||||
// Turn on position dependent code for most cases (overridden where appropriate)
 | 
			
		||||
GCC_DYNAMIC_NO_PIC = YES
 | 
			
		||||
 | 
			
		||||
// Default SDK and minimum OS version is 10.4
 | 
			
		||||
SDKROOT = $(DEVELOPER_SDK_DIR)/MacOSX10.4u.sdk
 | 
			
		||||
MACOSX_DEPLOYMENT_TARGET = 10.4
 | 
			
		||||
GCC_VERSION = 4.0
 | 
			
		||||
 | 
			
		||||
// VERSIONING BUILD SETTINGS (used in Info.plist)
 | 
			
		||||
GTEST_VERSIONINFO_ABOUT =  © 2008 Google Inc.
 | 
			
		||||
							
								
								
									
										32
									
								
								xcode/Config/ReleaseProject.xcconfig
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								xcode/Config/ReleaseProject.xcconfig
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,32 @@
 | 
			
		||||
//
 | 
			
		||||
//  ReleaseProject.xcconfig
 | 
			
		||||
//
 | 
			
		||||
//  These are Release Configuration project settings for the gtest framework
 | 
			
		||||
//  and examples. It is set in the "Based On:" dropdown in the "Project" info
 | 
			
		||||
//  dialog.
 | 
			
		||||
//  This file is based on the Xcode Configuration files in:
 | 
			
		||||
//  http://code.google.com/p/google-toolbox-for-mac/
 | 
			
		||||
// 
 | 
			
		||||
 | 
			
		||||
#include "General.xcconfig"
 | 
			
		||||
 | 
			
		||||
// subconfig/Release.xcconfig
 | 
			
		||||
 | 
			
		||||
// Optimize for space and size (Apple recommendation)
 | 
			
		||||
GCC_OPTIMIZATION_LEVEL = s
 | 
			
		||||
 | 
			
		||||
// Deploment postprocessing is what triggers Xcode to strip
 | 
			
		||||
DEPLOYMENT_POSTPROCESSING = YES
 | 
			
		||||
 | 
			
		||||
// No symbols
 | 
			
		||||
GCC_GENERATE_DEBUGGING_SYMBOLS = NO
 | 
			
		||||
 | 
			
		||||
// Dead code strip does not affect ObjC code but can help for C
 | 
			
		||||
DEAD_CODE_STRIPPING = YES
 | 
			
		||||
 | 
			
		||||
// NDEBUG is used by things like assert.h, so define it for general compat.
 | 
			
		||||
// ASSERT going away in release tends to create unused vars.
 | 
			
		||||
OTHER_CFLAGS = $(OTHER_CFLAGS) -DNDEBUG=1 -Wno-unused-variable
 | 
			
		||||
 | 
			
		||||
// When we strip we want to strip all symbols in release, but save externals.
 | 
			
		||||
STRIP_STYLE = all
 | 
			
		||||
		Reference in New Issue
	
	Block a user