aboutsummaryrefslogtreecommitdiff
path: root/cpp/README
diff options
context:
space:
mode:
authorFredrik Roubert <roubert@google.com>2013-10-24 18:39:25 +0000
committerFredrik Roubert <roubert@google.com>2014-09-01 19:20:39 +0200
commit5b904a153c1799252d2e7e3c83ee459e6f0c964b (patch)
tree7d910b24e1fd5969e636496dc3ece063fb29f623 /cpp/README
parenta8169865920ea1f74a733ac5b35192cff8779418 (diff)
downloadsrc-5b904a153c1799252d2e7e3c83ee459e6f0c964b.tar.gz
Update README information about specifying file system paths.
Diffstat (limited to 'cpp/README')
-rw-r--r--cpp/README12
1 files changed, 11 insertions, 1 deletions
diff --git a/cpp/README b/cpp/README
index 32c3cd9..53bf176 100644
--- a/cpp/README
+++ b/cpp/README
@@ -54,13 +54,23 @@ Build
Building the library involves generating an out/Default/build.ninja file and
running ninja:
-$ export GYP_GENERATORS=ninja
+$ export GYP_GENERATORS='ninja'
$ gyp --depth .
$ ninja -C out/Default
+Overriding paths defined in the *.gyp files can be done by setting the
+GYP_DEFINES environment variable before running gyp:
+
+$ export GYP_DEFINES="gtest_dir='/xxx/include' gtest_src_dir='/xxx'"
+
Test
====
This command will execute the unit tests for the library:
$ out/Default/unit_tests
+
+When running on Mac OS X, it's necessary to explicitly specify the path to the
+dynamically linked libraries, to run the tests out of the build directory:
+
+$ DYLD_LIBRARY_PATH='out/Default' out/Default/unit_tests