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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 ], | 121 ], |
122 }, | 122 }, |
123 }], | 123 }], |
124 ['OS=="android"', { | 124 ['OS=="android"', { |
125 # We want gtest features that use tr1::tuple, but we currently | 125 # We want gtest features that use tr1::tuple, but we currently |
126 # don't support the variadic templates used by libstdc++'s | 126 # don't support the variadic templates used by libstdc++'s |
127 # implementation. gtest supports this scenario by providing its | 127 # implementation. gtest supports this scenario by providing its |
128 # own implementation but we must opt in to it. | 128 # own implementation but we must opt in to it. |
129 'defines': [ | 129 'defines': [ |
130 'GTEST_USE_OWN_TR1_TUPLE=1', | 130 'GTEST_USE_OWN_TR1_TUPLE=1', |
| 131 # GTEST_USE_OWN_TR1_TUPLE only works if GTEST_HAS_TR1_TUPLE is set. |
| 132 # gtest r625 made it so that GTEST_HAS_TR1_TUPLE is set to 0 |
| 133 # automatically on android, so it has to be set explicitly here. |
| 134 'GTEST_HAS_TR1_TUPLE=1', |
131 ], | 135 ], |
132 'direct_dependent_settings': { | 136 'direct_dependent_settings': { |
133 'defines': [ | 137 'defines': [ |
134 'GTEST_USE_OWN_TR1_TUPLE=1', | 138 'GTEST_USE_OWN_TR1_TUPLE=1', |
| 139 'GTEST_HAS_TR1_TUPLE=1', |
135 ], | 140 ], |
136 }, | 141 }, |
137 }], | 142 }], |
138 ['OS=="win" and MSVS_VERSION=="2012"', { | 143 ['OS=="win" and MSVS_VERSION=="2012"', { |
139 'defines': [ | 144 'defines': [ |
140 '_VARIADIC_MAX=10', | 145 '_VARIADIC_MAX=10', |
141 ], | 146 ], |
142 'direct_dependent_settings': { | 147 'direct_dependent_settings': { |
143 'defines': [ | 148 'defines': [ |
144 '_VARIADIC_MAX=10', | 149 '_VARIADIC_MAX=10', |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 { | 202 { |
198 'target_name': 'gtest_prod', | 203 'target_name': 'gtest_prod', |
199 'toolsets': ['host', 'target'], | 204 'toolsets': ['host', 'target'], |
200 'type': 'none', | 205 'type': 'none', |
201 'sources': [ | 206 'sources': [ |
202 'gtest/include/gtest/gtest_prod.h', | 207 'gtest/include/gtest/gtest_prod.h', |
203 ], | 208 ], |
204 }, | 209 }, |
205 ], | 210 ], |
206 } | 211 } |
OLD | NEW |