diff options
author | glider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-03 08:26:51 +0000 |
---|---|---|
committer | glider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-03 08:26:51 +0000 |
commit | a22906d132a6a3358c13b461643d75b0e84030a6 (patch) | |
tree | 2eafa844f80271e47170c269322f85062e11a328 | |
parent | 6677b002dc247c2f03f46a939d2e680e8aa15701 (diff) | |
download | chromium_src-a22906d132a6a3358c13b461643d75b0e84030a6.zip chromium_src-a22906d132a6a3358c13b461643d75b0e84030a6.tar.gz chromium_src-a22906d132a6a3358c13b461643d75b0e84030a6.tar.bz2 |
Include the ASan runtime dylib into the test app bundles on iOS
BUG=228243
R=stuartmorgan@chromium.org, thakis@chromium.org
Review URL: https://codereview.chromium.org/18516005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209918 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | testing/gtest.gyp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/gtest.gyp b/testing/gtest.gyp index 42cf571..0598e9b 100644 --- a/testing/gtest.gyp +++ b/testing/gtest.gyp @@ -95,6 +95,30 @@ ], }, }], + ['OS=="ios" and asan==1', { + 'direct_dependent_settings': { + 'target_conditions': [ + # Package the ASan runtime dylib into the test app bundles. + ['_type=="executable"', { + 'postbuilds': [ + { + 'variables': { + # Define copy_asan_dylib_path in a variable ending in + # _path so that gyp understands it's a path and + # performs proper relativization during dict merging. + 'copy_asan_dylib_path': + '<(DEPTH)/build/mac/copy_asan_runtime_dylib.sh', + }, + 'postbuild_name': 'Copy ASan runtime dylib', + 'action': [ + '<(copy_asan_dylib_path)', + ], + }, + ], + }], + ], + }, + }], ['os_posix == 1', { 'defines': [ # gtest isn't able to figure out when RTTI is disabled for gcc |