From 8855583c5785c972d557a800684da81a1dcb6646 Mon Sep 17 00:00:00 2001 From: "thomasvl@chromium.org" Date: Fri, 17 Dec 2010 16:04:03 +0000 Subject: Use run_as to hang the action for the runners so GYP doesn't have to know about gtest. BUG=none TEST=none Review URL: http://codereview.chromium.org/5573006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69548 0039d316-1c4b-4281-b951-d872f2087c98 --- testing/gtest.gyp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'testing') diff --git a/testing/gtest.gyp b/testing/gtest.gyp index c0be091..1a91ac5 100644 --- a/testing/gtest.gyp +++ b/testing/gtest.gyp @@ -102,7 +102,21 @@ 'gtest/include', # So that gtest headers can find themselves. ], 'target_conditions': [ - ['_type=="executable"', {'test': 1}], + ['_type=="executable"', { + 'test': 1, + 'conditions': [ + ['OS=="mac"', { + 'run_as': { + 'action????': ['${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}'], + }, + }], + ['OS=="win"', { + 'run_as': { + 'action????': ['$(TargetPath)', '--gtest_print_time'], + }, + }], + ], + }], ], 'msvs_disabled_warnings': [4800], }, -- cgit v1.1