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 { |
11 'target_name': 'gtest', | 11 'target_name': 'gtest', |
12 'toolsets': ['host', 'target'], | 12 'toolsets': ['host', 'target'], |
13 'type': 'static_library', | 13 'type': 'static_library', |
14 'sources': [ | 14 'sources': [ |
15 '<@(gtest_sources)', | 15 '<@(gtest_sources)', |
16 ], | 16 ], |
17 'include_dirs': [ | 17 'include_dirs': [ |
18 'gtest', | 18 'gtest/googletest', |
19 'gtest/include', | 19 'gtest/googletest/include', |
20 ], | 20 ], |
21 'dependencies': [ | 21 'dependencies': [ |
22 'gtest_prod', | 22 'gtest_prod', |
23 ], | 23 ], |
24 'defines': [ | 24 'defines': [ |
25 # In order to allow regex matches in gtest to be shared between Windows | 25 # In order to allow regex matches in gtest to be shared between Windows |
26 # and other systems, we tell gtest to always use it's internal engine. | 26 # and other systems, we tell gtest to always use it's internal engine. |
27 'GTEST_HAS_POSIX_RE=0', | 27 'GTEST_HAS_POSIX_RE=0', |
28 # Chrome doesn't support / require C++11, yet. | 28 # Chrome doesn't support / require C++11, yet. |
29 'GTEST_LANG_CXX11=0', | 29 'GTEST_LANG_CXX11=0', |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 'GTEST_HAS_TR1_TUPLE=1', | 152 'GTEST_HAS_TR1_TUPLE=1', |
153 ], | 153 ], |
154 }, | 154 }, |
155 }], | 155 }], |
156 ], | 156 ], |
157 'direct_dependent_settings': { | 157 'direct_dependent_settings': { |
158 'defines': [ | 158 'defines': [ |
159 'UNIT_TEST', | 159 'UNIT_TEST', |
160 ], | 160 ], |
161 'include_dirs': [ | 161 'include_dirs': [ |
162 'gtest/include', # So that gtest headers can find themselves. | 162 'gtest/googletest/include', # So that gtest headers can find themselv
es. |
163 ], | 163 ], |
164 'target_conditions': [ | 164 'target_conditions': [ |
165 ['_type=="executable"', { | 165 ['_type=="executable"', { |
166 'test': 1, | 166 'test': 1, |
167 'conditions': [ | 167 'conditions': [ |
168 ['OS=="mac"', { | 168 ['OS=="mac"', { |
169 'run_as': { | 169 'run_as': { |
170 'action????': ['${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}'], | 170 'action????': ['${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}'], |
171 }, | 171 }, |
172 }], | 172 }], |
(...skipping 27 matching lines...) Expand all Loading... |
200 ] | 200 ] |
201 }, | 201 }, |
202 }, | 202 }, |
203 { | 203 { |
204 'target_name': 'gtest_main', | 204 'target_name': 'gtest_main', |
205 'type': 'static_library', | 205 'type': 'static_library', |
206 'dependencies': [ | 206 'dependencies': [ |
207 'gtest', | 207 'gtest', |
208 ], | 208 ], |
209 'sources': [ | 209 'sources': [ |
210 'gtest/src/gtest_main.cc', | 210 'gtest/googletest/src/gtest_main.cc', |
211 ], | 211 ], |
212 }, | 212 }, |
213 { | 213 { |
214 'target_name': 'gtest_prod', | 214 'target_name': 'gtest_prod', |
215 'toolsets': ['host', 'target'], | 215 'toolsets': ['host', 'target'], |
216 'type': 'none', | 216 'type': 'none', |
217 'sources': [ | 217 'sources': [ |
218 'gtest/include/gtest/gtest_prod.h', | 218 'gtest/googletest/include/gtest/googletest/gtest_prod.h', |
219 ], | 219 ], |
220 }, | 220 }, |
221 ], | 221 ], |
222 } | 222 } |
OLD | NEW |