OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 |
11 defines = [ | 11 defines = [ |
12 "UNIT_TEST", | 12 "UNIT_TEST", |
13 | 13 |
14 # In order to allow regex matches in gtest to be shared between Windows | 14 # In order to allow regex matches in gtest to be shared between Windows |
15 # and other systems, we tell gtest to always use it's internal engine. | 15 # and other systems, we tell gtest to always use it's internal engine. |
16 "GTEST_HAS_POSIX_RE=0", | 16 "GTEST_HAS_POSIX_RE=0", |
| 17 # Chrome doesn't support / require C++11, yet. |
| 18 "GTEST_LANG_CXX11=0", |
17 ] | 19 ] |
18 | 20 |
19 # Gtest headers need to be able to find themselves. | 21 # Gtest headers need to be able to find themselves. |
20 include_dirs = [ "include" ] | 22 include_dirs = [ "include" ] |
21 | 23 |
22 if (is_win) { | 24 if (is_win) { |
23 cflags = [ "/wd4800" ] # Unused variable warning. | 25 cflags = [ "/wd4800" ] # Unused variable warning. |
24 } | 26 } |
25 | 27 |
26 if (is_posix) { | 28 if (is_posix) { |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 all_dependent_configs = [ ":gtest_config" ] | 102 all_dependent_configs = [ ":gtest_config" ] |
101 | 103 |
102 configs -= [ "//build/config/compiler:chromium_code" ] | 104 configs -= [ "//build/config/compiler:chromium_code" ] |
103 configs += [ "//build/config/compiler:no_chromium_code" ] | 105 configs += [ "//build/config/compiler:no_chromium_code" ] |
104 } | 106 } |
105 | 107 |
106 source_set("gtest_main") { | 108 source_set("gtest_main") { |
107 sources = [ "src/gtest_main.cc" ] | 109 sources = [ "src/gtest_main.cc" ] |
108 deps = [ ":gtest" ] | 110 deps = [ ":gtest" ] |
109 } | 111 } |
OLD | NEW |