| 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 'third_party/googletest/googletest', | 18 'gtest', |
| 19 'third_party/googletest/googletest/include', | 19 'gtest/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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 'GTEST_HAS_TR1_TUPLE=1', | 151 'GTEST_HAS_TR1_TUPLE=1', |
| 152 ], | 152 ], |
| 153 }, | 153 }, |
| 154 }], | 154 }], |
| 155 ], | 155 ], |
| 156 'direct_dependent_settings': { | 156 'direct_dependent_settings': { |
| 157 'defines': [ | 157 'defines': [ |
| 158 'UNIT_TEST', | 158 'UNIT_TEST', |
| 159 ], | 159 ], |
| 160 'include_dirs': [ | 160 'include_dirs': [ |
| 161 'third_party/googletest/googletest/include', # So that gtest headers
can find themselves. | 161 'gtest/include', # So that gtest headers can find themselves. |
| 162 ], | 162 ], |
| 163 'target_conditions': [ | 163 'target_conditions': [ |
| 164 ['_type=="executable"', { | 164 ['_type=="executable"', { |
| 165 'test': 1, | 165 'test': 1, |
| 166 'conditions': [ | 166 'conditions': [ |
| 167 ['OS=="mac"', { | 167 ['OS=="mac"', { |
| 168 'run_as': { | 168 'run_as': { |
| 169 'action????': ['${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}'], | 169 'action????': ['${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}'], |
| 170 }, | 170 }, |
| 171 }], | 171 }], |
| (...skipping 19 matching lines...) Expand all Loading... |
| 191 'msvs_disabled_warnings': [4800], | 191 'msvs_disabled_warnings': [4800], |
| 192 }, | 192 }, |
| 193 }, | 193 }, |
| 194 { | 194 { |
| 195 'target_name': 'gtest_main', | 195 'target_name': 'gtest_main', |
| 196 'type': 'static_library', | 196 'type': 'static_library', |
| 197 'dependencies': [ | 197 'dependencies': [ |
| 198 'gtest', | 198 'gtest', |
| 199 ], | 199 ], |
| 200 'sources': [ | 200 'sources': [ |
| 201 'third_party/googletest/googletest/src/gtest_main.cc', | 201 'gtest/src/gtest_main.cc', |
| 202 ], | 202 ], |
| 203 }, | 203 }, |
| 204 { | 204 { |
| 205 'target_name': 'gtest_prod', | 205 'target_name': 'gtest_prod', |
| 206 'toolsets': ['host', 'target'], | 206 'toolsets': ['host', 'target'], |
| 207 'type': 'none', | 207 'type': 'none', |
| 208 'sources': [ | 208 'sources': [ |
| 209 'gtest/include/gtest/gtest_prod.h', | 209 'gtest/include/gtest/gtest_prod.h', |
| 210 'third_party/googletest/googletest/include/gtest/gtest_prod.h', | |
| 211 ], | 210 ], |
| 212 }, | 211 }, |
| 213 ], | 212 ], |
| 214 } | 213 } |
| OLD | NEW |