Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Side by Side Diff: build/secondary/testing/gtest/BUILD.gn

Issue 2174213002: Specify GTEST_LANG_CXX11 to 1 explicitly rather than let gtest detect it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | testing/gtest.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | testing/gtest.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698