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

Side by Side Diff: third_party/googletest/BUILD.gn

Issue 2875143003: Roll googletest to 1.8.0+. (Closed)
Patch Set: Addressed feedback rebased. Created 3 years, 7 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 | « net/socket/sequenced_socket_data_unittest.cc ('k') | third_party/googletest/README.chromium » ('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 config("gtest_config") { 5 config("gtest_config") {
6 visibility = [ ":*" ] # gmock also shares this config. 6 visibility = [ ":*" ] # gmock also shares this config.
7 7
8 defines = [ 8 defines = [
9 # Chromium always links googletest statically, so no API qualifier is
10 # necessary. The definition in gtest-port.h at the time of this writing
11 # causes crashes in content_browsertests.
12 "GTEST_API_=",
13
9 # 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
10 # and other systems, we tell gtest to always use its internal engine. 15 # and other systems, we tell gtest to always use its internal engine.
11 "GTEST_HAS_POSIX_RE=0", 16 "GTEST_HAS_POSIX_RE=0",
12 "GTEST_LANG_CXX11=1", 17 "GTEST_LANG_CXX11=1",
13 ] 18 ]
14 19
15 # Gtest headers need to be able to find themselves. 20 # Gtest headers need to be able to find themselves.
16 include_dirs = [ "src/googletest/include" ] 21 include_dirs = [ "src/googletest/include" ]
17 22
18 if (is_win) { 23 if (is_win) {
19 cflags = [ "/wd4800" ] # Unused variable warning. 24 cflags = [ "/wd4800" ] # Unused variable warning.
20 } 25 }
21 } 26 }
22 27
23 config("gmock_config") { 28 config("gmock_config") {
24 # Gmock headers need to be able to find themselves. 29 # Gmock headers need to be able to find themselves.
25 include_dirs = [ 30 include_dirs = [
26 "gmock_custom", 31 "custom",
27 "src/googlemock/include", 32 "src/googlemock/include",
28 ] 33 ]
29 } 34 }
30 35
31 # Do NOT depend on this directly. Use //testing/gtest instead. 36 # Do NOT depend on this directly. Use //testing/gtest instead.
32 # See README.chromium for details. 37 # See README.chromium for details.
33 source_set("gtest") { 38 source_set("gtest") {
34 testonly = true 39 testonly = true
35 sources = [ 40 sources = [
36 "src/googletest/include/gtest/gtest-death-test.h", 41 "src/googletest/include/gtest/gtest-death-test.h",
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 "src/googlemock/include/gmock/gmock-generated-matchers.h", 102 "src/googlemock/include/gmock/gmock-generated-matchers.h",
98 "src/googlemock/include/gmock/gmock-generated-nice-strict.h", 103 "src/googlemock/include/gmock/gmock-generated-nice-strict.h",
99 "src/googlemock/include/gmock/gmock-matchers.h", 104 "src/googlemock/include/gmock/gmock-matchers.h",
100 "src/googlemock/include/gmock/gmock-spec-builders.h", 105 "src/googlemock/include/gmock/gmock-spec-builders.h",
101 "src/googlemock/include/gmock/gmock.h", 106 "src/googlemock/include/gmock/gmock.h",
102 "src/googlemock/include/gmock/internal/gmock-generated-internal-utils.h", 107 "src/googlemock/include/gmock/internal/gmock-generated-internal-utils.h",
103 "src/googlemock/include/gmock/internal/gmock-internal-utils.h", 108 "src/googlemock/include/gmock/internal/gmock-internal-utils.h",
104 "src/googlemock/include/gmock/internal/gmock-port.h", 109 "src/googlemock/include/gmock/internal/gmock-port.h",
105 110
106 # gmock helpers. 111 # gmock helpers.
107 "gmock_custom/gmock/internal/custom/gmock-port.h", 112 "custom/gmock/internal/custom/gmock-port.h",
108 113
109 #"src/googlemock/src/gmock-all.cc", # Not needed by our build. 114 #"src/googlemock/src/gmock-all.cc", # Not needed by our build.
110 "src/googlemock/src/gmock-cardinalities.cc", 115 "src/googlemock/src/gmock-cardinalities.cc",
111 "src/googlemock/src/gmock-internal-utils.cc", 116 "src/googlemock/src/gmock-internal-utils.cc",
112 "src/googlemock/src/gmock-matchers.cc", 117 "src/googlemock/src/gmock-matchers.cc",
113 "src/googlemock/src/gmock-spec-builders.cc", 118 "src/googlemock/src/gmock-spec-builders.cc",
114 "src/googlemock/src/gmock.cc", 119 "src/googlemock/src/gmock.cc",
115 ] 120 ]
116 121
117 # This project includes some stuff form gtest's guts.
118 include_dirs = [ "src/googletest/include" ]
119
120 public_configs = [ 122 public_configs = [
121 ":gmock_config", 123 ":gmock_config",
122 ":gtest_config", 124 ":gtest_config",
123 ] 125 ]
124 } 126 }
125 127
126 # Do NOT depend on this directly. Use //testing/gmock:gmock_main instead. 128 # Do NOT depend on this directly. Use //testing/gmock:gmock_main instead.
127 # See README.chromium for details. 129 # See README.chromium for details.
128 static_library("gmock_main") { 130 static_library("gmock_main") {
129 testonly = true 131 testonly = true
130 sources = [ 132 sources = [
131 "src/googlemock/src/gmock_main.cc", 133 "src/googlemock/src/gmock_main.cc",
132 ] 134 ]
133 deps = [ 135 deps = [
134 ":gmock", 136 ":gmock",
135 ] 137 ]
136 } 138 }
OLDNEW
« no previous file with comments | « net/socket/sequenced_socket_data_unittest.cc ('k') | third_party/googletest/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698