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 'includes': [ | 6 'includes': [ |
7 'gtest.gypi', | 7 'gtest.gypi', |
8 ], | 8 ], |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
(...skipping 21 matching lines...) Expand all Loading... |
32 'defines': [ | 32 'defines': [ |
33 'GTEST_HAS_POSIX_RE=0', | 33 'GTEST_HAS_POSIX_RE=0', |
34 'GTEST_LANG_CXX11=0', | 34 'GTEST_LANG_CXX11=0', |
35 ], | 35 ], |
36 }, | 36 }, |
37 'conditions': [ | 37 'conditions': [ |
38 ['OS == "mac" or OS == "ios"', { | 38 ['OS == "mac" or OS == "ios"', { |
39 'sources': [ | 39 'sources': [ |
40 'gtest_mac.h', | 40 'gtest_mac.h', |
41 'gtest_mac.mm', | 41 'gtest_mac.mm', |
| 42 'platform_test_mac.mm', |
42 ], | 43 ], |
43 'link_settings': { | 44 'link_settings': { |
44 'libraries': [ | 45 'libraries': [ |
45 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | 46 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
46 ], | 47 ], |
47 }, | 48 }, |
48 }], | 49 }], |
49 ['OS == "mac"', { | |
50 'sources': [ | |
51 'platform_test_mac.mm', | |
52 ], | |
53 }], | |
54 ['OS == "ios"', { | 50 ['OS == "ios"', { |
55 'dependencies' : [ | 51 'dependencies' : [ |
56 '<(DEPTH)/testing/iossim/iossim.gyp:iossim#host', | 52 '<(DEPTH)/testing/iossim/iossim.gyp:iossim#host', |
57 ], | 53 ], |
58 'direct_dependent_settings': { | 54 'direct_dependent_settings': { |
59 'target_conditions': [ | 55 'target_conditions': [ |
60 # Turn all tests into bundles on iOS because that's the only | 56 # Turn all tests into bundles on iOS because that's the only |
61 # type of executable supported for iOS. | 57 # type of executable supported for iOS. |
62 ['_type=="executable"', { | 58 ['_type=="executable"', { |
63 'variables': { | 59 'variables': { |
(...skipping 14 matching lines...) Expand all Loading... |
78 ], | 74 ], |
79 'mac_bundle_resources!': [ | 75 'mac_bundle_resources!': [ |
80 '<(ios_unittest_info_plist_path)', | 76 '<(ios_unittest_info_plist_path)', |
81 ], | 77 ], |
82 }], | 78 }], |
83 ], | 79 ], |
84 }, | 80 }, |
85 'sources': [ | 81 'sources': [ |
86 'coverage_util_ios.cc', | 82 'coverage_util_ios.cc', |
87 'coverage_util_ios.h', | 83 'coverage_util_ios.h', |
88 'platform_test_ios.mm', | |
89 ], | 84 ], |
90 }], | 85 }], |
91 ['OS=="ios" and asan==1', { | 86 ['OS=="ios" and asan==1', { |
92 'direct_dependent_settings': { | 87 'direct_dependent_settings': { |
93 'target_conditions': [ | 88 'target_conditions': [ |
94 # Package the ASan runtime dylib into the test app bundles. | 89 # Package the ASan runtime dylib into the test app bundles. |
95 ['_type=="executable"', { | 90 ['_type=="executable"', { |
96 'postbuilds': [ | 91 'postbuilds': [ |
97 { | 92 { |
98 'variables': { | 93 'variables': { |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 { | 205 { |
211 'target_name': 'gtest_prod', | 206 'target_name': 'gtest_prod', |
212 'toolsets': ['host', 'target'], | 207 'toolsets': ['host', 'target'], |
213 'type': 'none', | 208 'type': 'none', |
214 'sources': [ | 209 'sources': [ |
215 'gtest/include/gtest/gtest_prod.h', | 210 'gtest/include/gtest/gtest_prod.h', |
216 ], | 211 ], |
217 }, | 212 }, |
218 ], | 213 ], |
219 } | 214 } |
OLD | NEW |