OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 config("gtest_config") { | 5 config("gtest_config") { |
6 visibility = [ | 6 visibility = [ |
7 ":*", | 7 ":*", |
8 "//testing/gmock:*", # gmock also shares this config. | 8 "//testing/gmock:*", # gmock also shares this config. |
9 ] | 9 ] |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 ] | 36 ] |
37 } | 37 } |
38 | 38 |
39 if (is_android) { | 39 if (is_android) { |
40 defines += [ | 40 defines += [ |
41 # We want gtest features that use tr1::tuple, but we currently | 41 # We want gtest features that use tr1::tuple, but we currently |
42 # don't support the variadic templates used by libstdc++'s | 42 # don't support the variadic templates used by libstdc++'s |
43 # implementation. gtest supports this scenario by providing its | 43 # implementation. gtest supports this scenario by providing its |
44 # own implementation but we must opt in to it. | 44 # own implementation but we must opt in to it. |
45 "GTEST_USE_OWN_TR1_TUPLE=1", | 45 "GTEST_USE_OWN_TR1_TUPLE=1", |
46 | 46 |
47 # GTEST_USE_OWN_TR1_TUPLE only works if GTEST_HAS_TR1_TUPLE is set. | 47 # GTEST_USE_OWN_TR1_TUPLE only works if GTEST_HAS_TR1_TUPLE is set. |
48 # gtest r625 made it so that GTEST_HAS_TR1_TUPLE is set to 0 | 48 # gtest r625 made it so that GTEST_HAS_TR1_TUPLE is set to 0 |
49 # automatically on android, so it has to be set explicitly here. | 49 # automatically on android, so it has to be set explicitly here. |
50 "GTEST_HAS_TR1_TUPLE=1", | 50 "GTEST_HAS_TR1_TUPLE=1", |
51 ] | 51 ] |
52 } | 52 } |
53 } | 53 } |
54 | 54 |
55 static_library("gtest") { | 55 static_library("gtest") { |
56 sources = [ | 56 sources = [ |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 ] | 95 ] |
96 } | 96 } |
97 | 97 |
98 include_dirs = [ "." ] | 98 include_dirs = [ "." ] |
99 | 99 |
100 all_dependent_configs = [ ":gtest_config" ] | 100 all_dependent_configs = [ ":gtest_config" ] |
101 | 101 |
102 configs -= [ "//build/config/compiler:chromium_code" ] | 102 configs -= [ "//build/config/compiler:chromium_code" ] |
103 configs += [ "//build/config/compiler:no_chromium_code" ] | 103 configs += [ "//build/config/compiler:no_chromium_code" ] |
104 } | 104 } |
OLD | NEW |