diff options
author | Fredrik Roubert <roubert@google.com> | 2013-10-24 18:39:25 +0000 |
---|---|---|
committer | Fredrik Roubert <roubert@google.com> | 2014-09-01 19:20:39 +0200 |
commit | 5b904a153c1799252d2e7e3c83ee459e6f0c964b (patch) | |
tree | 7d910b24e1fd5969e636496dc3ece063fb29f623 /cpp/README | |
parent | a8169865920ea1f74a733ac5b35192cff8779418 (diff) | |
download | src-5b904a153c1799252d2e7e3c83ee459e6f0c964b.tar.gz |
Update README information about specifying file system paths.
Diffstat (limited to 'cpp/README')
-rw-r--r-- | cpp/README | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 |