diff options
-rw-r--r-- | testing/gtest.gyp | 16 |
1 files changed, 15 insertions, 1 deletions
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], }, |