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 import("//build_overrides/gtest.gni") | 5 import("//build_overrides/gtest.gni") |
6 | 6 |
7 config("gtest_config") { | 7 config("gtest_config") { |
8 visibility = [ | 8 visibility = [ |
9 ":*", | 9 ":*", |
10 "//testing/gmock:*", # gmock also shares this config. | 10 "//testing/gmock:*", # gmock also shares this config. |
11 ] | 11 ] |
12 | 12 |
13 defines = [ | 13 defines = [ |
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 "GTEST_LANG_CXX11=1", |
17 ] | 18 ] |
18 | 19 |
19 # Gtest headers need to be able to find themselves. | 20 # Gtest headers need to be able to find themselves. |
20 include_dirs = [ "include" ] | 21 include_dirs = [ "include" ] |
21 | 22 |
22 if (is_win) { | 23 if (is_win) { |
23 cflags = [ "/wd4800" ] # Unused variable warning. | 24 cflags = [ "/wd4800" ] # Unused variable warning. |
24 } | 25 } |
25 } | 26 } |
26 | 27 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 121 |
121 source_set("gtest_main") { | 122 source_set("gtest_main") { |
122 testonly = true | 123 testonly = true |
123 sources = [ | 124 sources = [ |
124 "src/gtest_main.cc", | 125 "src/gtest_main.cc", |
125 ] | 126 ] |
126 deps = [ | 127 deps = [ |
127 ":gtest", | 128 ":gtest", |
128 ] | 129 ] |
129 } | 130 } |
OLD | NEW |