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

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

Issue 766573003: gn format //build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years 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
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 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
13 # In order to allow regex matches in gtest to be shared between Windows 12 # In order to allow regex matches in gtest to be shared between Windows
14 # and other systems, we tell gtest to always use it's internal engine. 13 # and other systems, we tell gtest to always use it's internal engine.
15 "GTEST_HAS_POSIX_RE=0", 14 "GTEST_HAS_POSIX_RE=0",
15
16 # Chrome doesn't support / require C++11, yet. 16 # Chrome doesn't support / require C++11, yet.
17 "GTEST_LANG_CXX11=0", 17 "GTEST_LANG_CXX11=0",
18 ] 18 ]
19 19
20 # Gtest headers need to be able to find themselves. 20 # Gtest headers need to be able to find themselves.
21 include_dirs = [ "include" ] 21 include_dirs = [ "include" ]
22 22
23 if (is_win) { 23 if (is_win) {
24 cflags = [ "/wd4800" ] # Unused variable warning. 24 cflags = [ "/wd4800" ] # Unused variable warning.
25 } 25 }
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 "include/gtest/internal/gtest-death-test-internal.h", 74 "include/gtest/internal/gtest-death-test-internal.h",
75 "include/gtest/internal/gtest-filepath.h", 75 "include/gtest/internal/gtest-filepath.h",
76 "include/gtest/internal/gtest-internal.h", 76 "include/gtest/internal/gtest-internal.h",
77 "include/gtest/internal/gtest-linked_ptr.h", 77 "include/gtest/internal/gtest-linked_ptr.h",
78 "include/gtest/internal/gtest-param-util-generated.h", 78 "include/gtest/internal/gtest-param-util-generated.h",
79 "include/gtest/internal/gtest-param-util.h", 79 "include/gtest/internal/gtest-param-util.h",
80 "include/gtest/internal/gtest-port.h", 80 "include/gtest/internal/gtest-port.h",
81 "include/gtest/internal/gtest-string.h", 81 "include/gtest/internal/gtest-string.h",
82 "include/gtest/internal/gtest-tuple.h", 82 "include/gtest/internal/gtest-tuple.h",
83 "include/gtest/internal/gtest-type-util.h", 83 "include/gtest/internal/gtest-type-util.h",
84
84 #"gtest/src/gtest-all.cc", # Not needed by our build. 85 #"gtest/src/gtest-all.cc", # Not needed by our build.
85 "src/gtest-death-test.cc", 86 "src/gtest-death-test.cc",
86 "src/gtest-filepath.cc", 87 "src/gtest-filepath.cc",
87 "src/gtest-internal-inl.h", 88 "src/gtest-internal-inl.h",
88 "src/gtest-port.cc", 89 "src/gtest-port.cc",
89 "src/gtest-printers.cc", 90 "src/gtest-printers.cc",
90 "src/gtest-test-part.cc", 91 "src/gtest-test-part.cc",
91 "src/gtest-typed-test.cc", 92 "src/gtest-typed-test.cc",
92 "src/gtest.cc", 93 "src/gtest.cc",
93 "../multiprocess_func_list.cc", 94 "../multiprocess_func_list.cc",
(...skipping 14 matching lines...) Expand all
108 all_dependent_configs = [ ":gtest_config" ] 109 all_dependent_configs = [ ":gtest_config" ]
109 public_configs = [ ":gtest_direct_config" ] 110 public_configs = [ ":gtest_direct_config" ]
110 111
111 configs -= [ "//build/config/compiler:chromium_code" ] 112 configs -= [ "//build/config/compiler:chromium_code" ]
112 configs += [ "//build/config/compiler:no_chromium_code" ] 113 configs += [ "//build/config/compiler:no_chromium_code" ]
113 } 114 }
114 115
115 source_set("gtest_main") { 116 source_set("gtest_main") {
116 # TODO http://crbug.com/412064 enable this flag all the time. 117 # TODO http://crbug.com/412064 enable this flag all the time.
117 testonly = !is_component_build 118 testonly = !is_component_build
118 sources = [ "src/gtest_main.cc" ] 119 sources = [
119 deps = [ ":gtest" ] 120 "src/gtest_main.cc",
121 ]
122 deps = [
123 ":gtest",
124 ]
120 } 125 }
OLDNEW
« no previous file with comments | « build/secondary/testing/gmock/BUILD.gn ('k') | build/secondary/third_party/android_tools/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698