OLD | NEW |
---|---|
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
71 # must be instructed that RTTI is disabled here, and for any | 71 # must be instructed that RTTI is disabled here, and for any |
72 # direct dependents that might include gtest headers. | 72 # direct dependents that might include gtest headers. |
73 'GTEST_HAS_RTTI=0', | 73 'GTEST_HAS_RTTI=0', |
74 ], | 74 ], |
75 'direct_dependent_settings': { | 75 'direct_dependent_settings': { |
76 'defines': [ | 76 'defines': [ |
77 'GTEST_HAS_RTTI=0', | 77 'GTEST_HAS_RTTI=0', |
78 ], | 78 ], |
79 }, | 79 }, |
80 }], | 80 }], |
81 ['clang==1', { | 81 ['clang==1 or OS=="android"', { |
82 # We want gtest features that use tr1::tuple, but clang currently | 82 # We want gtest features that use tr1::tuple, but we currently |
83 # doesn't support the variadic templates used by libstdc++'s | 83 # doesn't support the variadic templates used by libstdc++'s |
Peter Beverloo
2011/09/01 12:34:08
doesn't -> don't
| |
84 # implementation. gtest supports this scenario by providing its | 84 # implementation. gtest supports this scenario by providing its |
85 # own implementation but we must opt in to it. | 85 # own implementation but we must opt in to it. |
86 'defines': [ | 86 'defines': [ |
87 'GTEST_USE_OWN_TR1_TUPLE=1', | 87 'GTEST_USE_OWN_TR1_TUPLE=1', |
88 ], | 88 ], |
89 'direct_dependent_settings': { | 89 'direct_dependent_settings': { |
90 'defines': [ | 90 'defines': [ |
91 'GTEST_USE_OWN_TR1_TUPLE=1', | 91 'GTEST_USE_OWN_TR1_TUPLE=1', |
92 ], | 92 ], |
93 }, | 93 }, |
94 }], | 94 }], |
(...skipping 30 matching lines...) Expand all Loading... | |
125 'type': 'static_library', | 125 'type': 'static_library', |
126 'dependencies': [ | 126 'dependencies': [ |
127 'gtest', | 127 'gtest', |
128 ], | 128 ], |
129 'sources': [ | 129 'sources': [ |
130 'gtest/src/gtest_main.cc', | 130 'gtest/src/gtest_main.cc', |
131 ], | 131 ], |
132 }, | 132 }, |
133 ], | 133 ], |
134 } | 134 } |
OLD | NEW |