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

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

Issue 2856383002: Roll googletest to 1.7.0+. (Closed)
Patch Set: Rebase to get past http://crrev.com/2789433004 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 | « third_party/.gitignore ('k') | third_party/googletest/OWNERS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 config("gtest_config") {
6 visibility = [ ":*" ] # gmock also shares this config.
7
8 defines = [
9 # 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.
11 "GTEST_HAS_POSIX_RE=0",
12 "GTEST_LANG_CXX11=1",
13 ]
14
15 # Gtest headers need to be able to find themselves.
16 include_dirs = [ "src/googletest/include" ]
17
18 if (is_win) {
19 cflags = [ "/wd4800" ] # Unused variable warning.
20 }
21 }
22
23 config("gmock_config") {
24 # Gmock headers need to be able to find themselves.
25 include_dirs = [
26 "gmock_custom",
27 "src/googlemock/include",
28 ]
29 }
30
31 # Do NOT depend on this directly. Use //testing/gtest instead.
32 # See README.chromium for details.
33 source_set("gtest") {
34 testonly = true
35 sources = [
36 "src/googletest/include/gtest/gtest-death-test.h",
37 "src/googletest/include/gtest/gtest-message.h",
38 "src/googletest/include/gtest/gtest-param-test.h",
39 "src/googletest/include/gtest/gtest-printers.h",
40 "src/googletest/include/gtest/gtest-spi.h",
41 "src/googletest/include/gtest/gtest-test-part.h",
42 "src/googletest/include/gtest/gtest-typed-test.h",
43 "src/googletest/include/gtest/gtest.h",
44 "src/googletest/include/gtest/gtest_pred_impl.h",
45 "src/googletest/include/gtest/internal/gtest-death-test-internal.h",
46 "src/googletest/include/gtest/internal/gtest-filepath.h",
47 "src/googletest/include/gtest/internal/gtest-internal.h",
48 "src/googletest/include/gtest/internal/gtest-linked_ptr.h",
49 "src/googletest/include/gtest/internal/gtest-param-util-generated.h",
50 "src/googletest/include/gtest/internal/gtest-param-util.h",
51 "src/googletest/include/gtest/internal/gtest-port.h",
52 "src/googletest/include/gtest/internal/gtest-string.h",
53 "src/googletest/include/gtest/internal/gtest-tuple.h",
54 "src/googletest/include/gtest/internal/gtest-type-util.h",
55
56 #"src/googletest/src/gtest-all.cc", # Not needed by our build.
57 "src/googletest/src/gtest-death-test.cc",
58 "src/googletest/src/gtest-filepath.cc",
59 "src/googletest/src/gtest-internal-inl.h",
60 "src/googletest/src/gtest-port.cc",
61 "src/googletest/src/gtest-printers.cc",
62 "src/googletest/src/gtest-test-part.cc",
63 "src/googletest/src/gtest-typed-test.cc",
64 "src/googletest/src/gtest.cc",
65 ]
66
67 # Some files include "src/gtest-internal-inl.h".
68 include_dirs = [ "src/googletest" ]
69
70 all_dependent_configs = [ ":gtest_config" ]
71
72 configs -= [ "//build/config/compiler:chromium_code" ]
73 configs += [ "//build/config/compiler:no_chromium_code" ]
74 }
75
76 # Do NOT depend on this directly. Use //testing/gtest:gtest_main instead.
77 # See README.chromium for details.
78 source_set("gtest_main") {
79 testonly = true
80 sources = [
81 "src/googletest/src/gtest_main.cc",
82 ]
83 deps = [
84 ":gtest",
85 ]
86 }
87
88 # Do NOT depend on this directly. Use //testing/gmock:gmock_main instead.
89 # See README.chromium for details.
90 source_set("gmock") {
91 testonly = true
92 sources = [
93 "src/googlemock/include/gmock/gmock-actions.h",
94 "src/googlemock/include/gmock/gmock-cardinalities.h",
95 "src/googlemock/include/gmock/gmock-generated-actions.h",
96 "src/googlemock/include/gmock/gmock-generated-function-mockers.h",
97 "src/googlemock/include/gmock/gmock-generated-matchers.h",
98 "src/googlemock/include/gmock/gmock-generated-nice-strict.h",
99 "src/googlemock/include/gmock/gmock-matchers.h",
100 "src/googlemock/include/gmock/gmock-spec-builders.h",
101 "src/googlemock/include/gmock/gmock.h",
102 "src/googlemock/include/gmock/internal/gmock-generated-internal-utils.h",
103 "src/googlemock/include/gmock/internal/gmock-internal-utils.h",
104 "src/googlemock/include/gmock/internal/gmock-port.h",
105
106 # gmock helpers.
107 "gmock_custom/gmock/internal/custom/gmock-port.h",
108
109 #"src/googlemock/src/gmock-all.cc", # Not needed by our build.
110 "src/googlemock/src/gmock-cardinalities.cc",
111 "src/googlemock/src/gmock-internal-utils.cc",
112 "src/googlemock/src/gmock-matchers.cc",
113 "src/googlemock/src/gmock-spec-builders.cc",
114 "src/googlemock/src/gmock.cc",
115 ]
116
117 # This project includes some stuff form gtest's guts.
118 include_dirs = [ "src/googletest/include" ]
119
120 public_configs = [
121 ":gmock_config",
122 ":gtest_config",
123 ]
124 }
125
126 # Do NOT depend on this directly. Use //testing/gmock:gmock_main instead.
127 # See README.chromium for details.
128 static_library("gmock_main") {
129 testonly = true
130 sources = [
131 "src/googlemock/src/gmock_main.cc",
132 ]
133 deps = [
134 ":gmock",
135 ]
136 }
OLDNEW
« no previous file with comments | « third_party/.gitignore ('k') | third_party/googletest/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698