summaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorshiqian <shiqian@861a406c-534a-0410-8894-cb66d6ee9925>2008-07-25 00:54:56 (GMT)
committershiqian <shiqian@861a406c-534a-0410-8894-cb66d6ee9925>2008-07-25 00:54:56 (GMT)
commitdbc56bf84bfa3fe27146b56f468a736941892dcc (patch)
tree978b06bbab74de8d529107c38d25435ad1f674b9 /README
parent253d2bc5760533c136f5b1b34b8c6f03d79fc538 (diff)
downloadgoogletest-dbc56bf84bfa3fe27146b56f468a736941892dcc.zip
googletest-dbc56bf84bfa3fe27146b56f468a736941892dcc.tar.gz
googletest-dbc56bf84bfa3fe27146b56f468a736941892dcc.tar.bz2
Adds an Xcode project for building gtest. By Preston Jackson.
Diffstat (limited to 'README')
-rw-r--r--README26
1 files changed, 25 insertions, 1 deletions
diff --git a/README b/README
index 20b5e9a..5705bd1 100644
--- a/README
+++ b/README
@@ -46,6 +46,7 @@ described below), there are further requirements:
### Mac OS X Requirements ###
* Mac OS X 10.4 Tiger or newer
+ * Developer Tools Installed
Getting the Source
------------------
@@ -103,7 +104,7 @@ which contains all of the source code. Here are some examples in Linux:
Building the Source
-------------------
-### Linux, Mac OS X, and Cygwin ###
+### Linux, Mac OS X (without Xcode), and Cygwin ###
There are two primary options for building the source at this point: build it
inside the source code tree, or in a separate directory. We recommend building
in a separate directory as that tends to produce both more consistent results
@@ -148,4 +149,27 @@ Open the gtest.sln file in the msvc/ folder using Visual Studio, and
you are ready to build Google Test the same way you build any Visual
Studio project.
+### Mac OS X (universal-binary framework) ###
+Open the gtest.xcodeproj in the xcode/ folder using Xcode. Build the "gtest"
+target. The universal binary framework will end up in your selected build
+directory (selected in the Xcode "Preferences..." -> "Building" pane and
+defaults to xcode/build).
+
+Alternatively, run "xcodebuild" from the command line in Terminal.app. This
+will build the "Release" configuration of the gtest.framework, but you can
+select the "Debug" configuration with a command line option. See the
+xcodebuild man page for more information.
+
+To use the gtest.framework, add the framework to your own project.
+Create a new executable target and add the framework to the "Link Binary With
+Libraries" build phase. Select "Edit Active Executable" from the "Project"
+menu. In the "Arguments" tab, add
+
+ "DYLD_FRAMEWORK_PATH" : "/real/framework/path"
+
+in the "Variables to be set in the environment:" list, where you replace
+"/real/framework/path" with the actual location of the gtest.framework. Now
+when you run your executable, it will load the framework and your test will
+run as expected.
+
Happy testing!