| 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 '../third_party/gtest/googletest', |
| 19 'gtest/include', | 19 '../third_party/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 ], | 28 ], |
| 29 'all_dependent_settings': { | 29 'all_dependent_settings': { |
| 30 'include_dirs': [ | 30 'include_dirs': [ |
| 31 'gtest/include', | 31 '.', # Include testing/testing for backward compatibility during roll
crbug/630705 |
| 32 '../third_party/gtest/googletest/include', |
| 32 ], | 33 ], |
| 33 'defines': [ | 34 'defines': [ |
| 34 'GTEST_HAS_POSIX_RE=0', | 35 'GTEST_HAS_POSIX_RE=0', |
| 35 'GTEST_LANG_CXX11=1', | 36 'GTEST_LANG_CXX11=1', |
| 36 ], | 37 ], |
| 37 }, | 38 }, |
| 38 'conditions': [ | 39 'conditions': [ |
| 39 ['OS == "mac" or OS == "ios"', { | 40 ['OS == "mac" or OS == "ios"', { |
| 40 'sources': [ | 41 'sources': [ |
| 41 'gtest_mac.h', | 42 'gtest_mac.h', |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 ], | 151 ], |
| 151 }], | 152 }], |
| 152 ], | 153 ], |
| 153 'msvs_disabled_warnings': [4800], | 154 'msvs_disabled_warnings': [4800], |
| 154 }, | 155 }, |
| 155 }, | 156 }, |
| 156 { | 157 { |
| 157 'target_name': 'gtest_main', | 158 'target_name': 'gtest_main', |
| 158 'type': 'static_library', | 159 'type': 'static_library', |
| 159 'dependencies': [ | 160 'dependencies': [ |
| 160 'gtest', | 161 '../third_party/gtest/googletest', |
| 161 ], | 162 ], |
| 162 'sources': [ | 163 'sources': [ |
| 163 'gtest/src/gtest_main.cc', | 164 '../third_party/gtest/googletest/src/gtest_main.cc', |
| 164 ], | 165 ], |
| 165 }, | 166 }, |
| 166 { | 167 { |
| 167 'target_name': 'gtest_prod', | 168 'target_name': 'gtest_prod', |
| 168 'toolsets': ['host', 'target'], | 169 'toolsets': ['host', 'target'], |
| 169 'type': 'none', | 170 'type': 'none', |
| 170 'sources': [ | 171 'sources': [ |
| 171 'gtest/include/gtest/gtest_prod.h', | 172 '../third_party/gtest/googletest/include/gtest/gtest_prod.h', |
| 172 ], | 173 ], |
| 173 }, | 174 }, |
| 174 ], | 175 ], |
| 175 } | 176 } |
| OLD | NEW |