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 { |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 'postbuild_name': 'Copy ASan runtime dylib', | 99 'postbuild_name': 'Copy ASan runtime dylib', |
100 'action': [ | 100 'action': [ |
101 '>(copy_asan_dylib_path)', | 101 '>(copy_asan_dylib_path)', |
102 ], | 102 ], |
103 }, | 103 }, |
104 ], | 104 ], |
105 }], | 105 }], |
106 ], | 106 ], |
107 }, | 107 }, |
108 }], | 108 }], |
109 ['os_posix == 1', { | |
110 'defines': [ | |
111 # gtest isn't able to figure out when RTTI is disabled for gcc | |
112 # versions older than 4.3.2, and assumes it's enabled. Our Mac | |
113 # and Linux builds disable RTTI, and cannot guarantee that the | |
114 # compiler will be 4.3.2. or newer. The Mac, for example, uses | |
115 # 4.2.1 as that is the latest available on that platform. gtest | |
116 # must be instructed that RTTI is disabled here, and for any | |
117 # direct dependents that might include gtest headers. | |
118 'GTEST_HAS_RTTI=0', | |
119 ], | |
120 'direct_dependent_settings': { | |
121 'defines': [ | |
122 'GTEST_HAS_RTTI=0', | |
123 ], | |
124 }, | |
125 }], | |
126 ['OS=="android" and android_app_abi=="x86"', { | 109 ['OS=="android" and android_app_abi=="x86"', { |
127 'defines': [ | 110 'defines': [ |
128 'GTEST_HAS_CLONE=0', | 111 'GTEST_HAS_CLONE=0', |
129 ], | 112 ], |
130 'direct_dependent_settings': { | 113 'direct_dependent_settings': { |
131 'defines': [ | 114 'defines': [ |
132 'GTEST_HAS_CLONE=0', | 115 'GTEST_HAS_CLONE=0', |
133 ], | 116 ], |
134 }, | 117 }, |
135 }], | 118 }], |
136 ['OS=="android"', { | |
137 # We want gtest features that use tr1::tuple, but we currently | |
138 # don't support the variadic templates used by libstdc++'s | |
139 # implementation. gtest supports this scenario by providing its | |
140 # own implementation but we must opt in to it. | |
141 'defines': [ | |
142 'GTEST_USE_OWN_TR1_TUPLE=1', | |
143 # GTEST_USE_OWN_TR1_TUPLE only works if GTEST_HAS_TR1_TUPLE is set. | |
144 # gtest r625 made it so that GTEST_HAS_TR1_TUPLE is set to 0 | |
145 # automatically on android, so it has to be set explicitly here. | |
146 'GTEST_HAS_TR1_TUPLE=1', | |
147 ], | |
148 'direct_dependent_settings': { | |
149 'defines': [ | |
150 'GTEST_USE_OWN_TR1_TUPLE=1', | |
151 'GTEST_HAS_TR1_TUPLE=1', | |
152 ], | |
153 }, | |
154 }], | |
155 ], | 119 ], |
156 'direct_dependent_settings': { | 120 'direct_dependent_settings': { |
157 'defines': [ | 121 'defines': [ |
158 'UNIT_TEST', | 122 'UNIT_TEST', |
159 ], | 123 ], |
160 'include_dirs': [ | 124 'include_dirs': [ |
161 'gtest/include', # So that gtest headers can find themselves. | 125 'gtest/include', # So that gtest headers can find themselves. |
162 ], | 126 ], |
163 'target_conditions': [ | 127 'target_conditions': [ |
164 ['_type=="executable"', { | 128 ['_type=="executable"', { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 { | 168 { |
205 'target_name': 'gtest_prod', | 169 'target_name': 'gtest_prod', |
206 'toolsets': ['host', 'target'], | 170 'toolsets': ['host', 'target'], |
207 'type': 'none', | 171 'type': 'none', |
208 'sources': [ | 172 'sources': [ |
209 'gtest/include/gtest/gtest_prod.h', | 173 'gtest/include/gtest/gtest_prod.h', |
210 ], | 174 ], |
211 }, | 175 }, |
212 ], | 176 ], |
213 } | 177 } |
OLD | NEW |