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 'type': 'static_library', | 9 'type': 'static_library', |
10 'sources': [ | 10 'sources': [ |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 'sources!': [ | 43 'sources!': [ |
44 'gtest/src/gtest-all.cc', # Not needed by our build. | 44 'gtest/src/gtest-all.cc', # Not needed by our build. |
45 ], | 45 ], |
46 'include_dirs': [ | 46 'include_dirs': [ |
47 'gtest', | 47 'gtest', |
48 'gtest/include', | 48 'gtest/include', |
49 ], | 49 ], |
50 'dependencies': [ | 50 'dependencies': [ |
51 'gtest_prod', | 51 'gtest_prod', |
52 ], | 52 ], |
| 53 'defines': [ |
| 54 # In order to allow regex matches in gtest to be shared between Windows |
| 55 # and other systems, we tell gtest to always use it's internal engine. |
| 56 'GTEST_HAS_POSIX_RE=0', |
| 57 ], |
| 58 'all_dependent_settings': { |
| 59 'defines': [ |
| 60 'GTEST_HAS_POSIX_RE=0', |
| 61 ], |
| 62 }, |
53 'conditions': [ | 63 'conditions': [ |
54 ['OS == "mac" or OS == "ios"', { | 64 ['OS == "mac" or OS == "ios"', { |
55 'sources': [ | 65 'sources': [ |
56 'gtest_mac.h', | 66 'gtest_mac.h', |
57 'gtest_mac.mm', | 67 'gtest_mac.mm', |
58 'platform_test_mac.mm' | 68 'platform_test_mac.mm' |
59 ], | 69 ], |
60 'link_settings': { | 70 'link_settings': { |
61 'libraries': [ | 71 'libraries': [ |
62 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | 72 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 { | 237 { |
228 'target_name': 'gtest_prod', | 238 'target_name': 'gtest_prod', |
229 'toolsets': ['host', 'target'], | 239 'toolsets': ['host', 'target'], |
230 'type': 'none', | 240 'type': 'none', |
231 'sources': [ | 241 'sources': [ |
232 'gtest/include/gtest/gtest_prod.h', | 242 'gtest/include/gtest/gtest_prod.h', |
233 ], | 243 ], |
234 }, | 244 }, |
235 ], | 245 ], |
236 } | 246 } |
OLD | NEW |