summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorshiqian <shiqian@861a406c-534a-0410-8894-cb66d6ee9925>2008-07-25 00:54:56 +0000
committershiqian <shiqian@861a406c-534a-0410-8894-cb66d6ee9925>2008-07-25 00:54:56 +0000
commit54a5d37313dd00be48501f80c41b700eee11176c (patch)
tree978b06bbab74de8d529107c38d25435ad1f674b9 /README
parentadf85093a9659fc9bbfb7f4bb973be557c4849b9 (diff)
downloadgtest-54a5d37313dd00be48501f80c41b700eee11176c.tar.gz
gtest-54a5d37313dd00be48501f80c41b700eee11176c.tar.bz2
gtest-54a5d37313dd00be48501f80c41b700eee11176c.tar.xz
Adds an Xcode project for building gtest. By Preston Jackson.
git-svn-id: http://googletest.googlecode.com/svn/trunk@67 861a406c-534a-0410-8894-cb66d6ee9925
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!