| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'targets': [ | 6 'targets': [ |
| 7 { | 7 { |
| 8 'target_name': 'gtest', | 8 'target_name': 'gtest', |
| 9 'toolsets': ['host', 'target'], | 9 'toolsets': ['host', 'target'], |
| 10 'type': 'static_library', | 10 'type': 'static_library', |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 'all_dependent_settings': { | 59 'all_dependent_settings': { |
| 60 'defines': [ | 60 'defines': [ |
| 61 'GTEST_HAS_POSIX_RE=0', | 61 'GTEST_HAS_POSIX_RE=0', |
| 62 ], | 62 ], |
| 63 }, | 63 }, |
| 64 'conditions': [ | 64 'conditions': [ |
| 65 ['OS == "mac" or OS == "ios"', { | 65 ['OS == "mac" or OS == "ios"', { |
| 66 'sources': [ | 66 'sources': [ |
| 67 'gtest_mac.h', | 67 'gtest_mac.h', |
| 68 'gtest_mac.mm', | 68 'gtest_mac.mm', |
| 69 'platform_test_mac.mm' | |
| 70 ], | 69 ], |
| 71 'link_settings': { | 70 'link_settings': { |
| 72 'libraries': [ | 71 'libraries': [ |
| 73 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | 72 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
| 74 ], | 73 ], |
| 75 }, | 74 }, |
| 76 }], | 75 }], |
| 76 ['OS == "mac"', { |
| 77 'sources': [ |
| 78 'platform_test_mac.mm', |
| 79 ], |
| 80 }], |
| 77 ['OS == "ios"', { | 81 ['OS == "ios"', { |
| 78 'dependencies' : [ | 82 'dependencies' : [ |
| 79 '<(DEPTH)/testing/iossim/iossim.gyp:iossim#host', | 83 '<(DEPTH)/testing/iossim/iossim.gyp:iossim#host', |
| 80 ], | 84 ], |
| 81 'direct_dependent_settings': { | 85 'direct_dependent_settings': { |
| 82 'target_conditions': [ | 86 'target_conditions': [ |
| 83 # Turn all tests into bundles on iOS because that's the only | 87 # Turn all tests into bundles on iOS because that's the only |
| 84 # type of executable supported for iOS. | 88 # type of executable supported for iOS. |
| 85 ['_type=="executable"', { | 89 ['_type=="executable"', { |
| 86 'variables': { | 90 'variables': { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 98 'mac_bundle_resources': [ | 102 'mac_bundle_resources': [ |
| 99 '<(ios_unittest_info_plist_path)', | 103 '<(ios_unittest_info_plist_path)', |
| 100 '<(DEPTH)/testing/gtest_ios/Default-568h@2x.png', | 104 '<(DEPTH)/testing/gtest_ios/Default-568h@2x.png', |
| 101 ], | 105 ], |
| 102 'mac_bundle_resources!': [ | 106 'mac_bundle_resources!': [ |
| 103 '<(ios_unittest_info_plist_path)', | 107 '<(ios_unittest_info_plist_path)', |
| 104 ], | 108 ], |
| 105 }], | 109 }], |
| 106 ], | 110 ], |
| 107 }, | 111 }, |
| 112 'sources': [ |
| 113 'coverage_util_ios.cc', |
| 114 'coverage_util_ios.h', |
| 115 'platform_test_ios.mm', |
| 116 ], |
| 108 }], | 117 }], |
| 109 ['OS=="ios" and asan==1', { | 118 ['OS=="ios" and asan==1', { |
| 110 'direct_dependent_settings': { | 119 'direct_dependent_settings': { |
| 111 'target_conditions': [ | 120 'target_conditions': [ |
| 112 # Package the ASan runtime dylib into the test app bundles. | 121 # Package the ASan runtime dylib into the test app bundles. |
| 113 ['_type=="executable"', { | 122 ['_type=="executable"', { |
| 114 'postbuilds': [ | 123 'postbuilds': [ |
| 115 { | 124 { |
| 116 'variables': { | 125 'variables': { |
| 117 # Define copy_asan_dylib_path in a variable ending in | 126 # Define copy_asan_dylib_path in a variable ending in |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 { | 237 { |
| 229 'target_name': 'gtest_prod', | 238 'target_name': 'gtest_prod', |
| 230 'toolsets': ['host', 'target'], | 239 'toolsets': ['host', 'target'], |
| 231 'type': 'none', | 240 'type': 'none', |
| 232 'sources': [ | 241 'sources': [ |
| 233 'gtest/include/gtest/gtest_prod.h', | 242 'gtest/include/gtest/gtest_prod.h', |
| 234 ], | 243 ], |
| 235 }, | 244 }, |
| 236 ], | 245 ], |
| 237 } | 246 } |
| OLD | NEW |