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") |
| 6 |
5 config("gtest_config") { | 7 config("gtest_config") { |
6 visibility = [ | 8 visibility = [ |
7 ":*", | 9 ":*", |
8 "//testing/gmock:*", # gmock also shares this config. | 10 "//testing/gmock:*", # gmock also shares this config. |
9 ] | 11 ] |
10 | 12 |
11 defines = [ | 13 defines = [ |
12 # 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 |
13 # 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. |
14 "GTEST_HAS_POSIX_RE=0", | 16 "GTEST_HAS_POSIX_RE=0", |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 "include/gtest/internal/gtest-internal.h", | 86 "include/gtest/internal/gtest-internal.h", |
85 "include/gtest/internal/gtest-linked_ptr.h", | 87 "include/gtest/internal/gtest-linked_ptr.h", |
86 "include/gtest/internal/gtest-param-util-generated.h", | 88 "include/gtest/internal/gtest-param-util-generated.h", |
87 "include/gtest/internal/gtest-param-util.h", | 89 "include/gtest/internal/gtest-param-util.h", |
88 "include/gtest/internal/gtest-port.h", | 90 "include/gtest/internal/gtest-port.h", |
89 "include/gtest/internal/gtest-string.h", | 91 "include/gtest/internal/gtest-string.h", |
90 "include/gtest/internal/gtest-tuple.h", | 92 "include/gtest/internal/gtest-tuple.h", |
91 "include/gtest/internal/gtest-type-util.h", | 93 "include/gtest/internal/gtest-type-util.h", |
92 | 94 |
93 #"gtest/src/gtest-all.cc", # Not needed by our build. | 95 #"gtest/src/gtest-all.cc", # Not needed by our build. |
94 "../multiprocess_func_list.cc", | |
95 "../multiprocess_func_list.h", | |
96 "../platform_test.h", | |
97 "src/gtest-death-test.cc", | 96 "src/gtest-death-test.cc", |
98 "src/gtest-filepath.cc", | 97 "src/gtest-filepath.cc", |
99 "src/gtest-internal-inl.h", | 98 "src/gtest-internal-inl.h", |
100 "src/gtest-port.cc", | 99 "src/gtest-port.cc", |
101 "src/gtest-printers.cc", | 100 "src/gtest-printers.cc", |
102 "src/gtest-test-part.cc", | 101 "src/gtest-test-part.cc", |
103 "src/gtest-typed-test.cc", | 102 "src/gtest-typed-test.cc", |
104 "src/gtest.cc", | 103 "src/gtest.cc", |
105 ] | 104 ] |
106 | 105 |
| 106 if (gtest_include_multiprocess) { |
| 107 sources += [ |
| 108 "../multiprocess_func_list.cc", |
| 109 "../multiprocess_func_list.h", |
| 110 ] |
| 111 } |
| 112 |
| 113 if (gtest_include_platform_test) { |
| 114 sources += [ "../platform_test.h" ] |
| 115 } |
| 116 |
107 if (is_mac || is_ios) { | 117 if (is_mac || is_ios) { |
108 if (is_ios) { | 118 if (is_ios) { |
109 set_sources_assignment_filter([]) | 119 set_sources_assignment_filter([]) |
110 } | 120 } |
111 sources += [ | 121 sources += [ |
112 "../gtest_mac.h", | 122 "../gtest_mac.h", |
113 "../gtest_mac.mm", | 123 "../gtest_mac.mm", |
114 "../platform_test_mac.mm", | |
115 ] | 124 ] |
| 125 if (gtest_include_platform_test) { |
| 126 sources += [ "../platform_test_mac.mm" ] |
| 127 } |
116 set_sources_assignment_filter(sources_assignment_filter) | 128 set_sources_assignment_filter(sources_assignment_filter) |
117 } | 129 } |
118 | 130 |
119 if (is_ios) { | 131 if (is_ios) { |
120 sources += [ | 132 sources += [ |
121 "../coverage_util_ios.cc", | 133 "../coverage_util_ios.cc", |
122 "../coverage_util_ios.h", | 134 "../coverage_util_ios.h", |
123 ] | 135 ] |
124 } | 136 } |
125 | 137 |
(...skipping 13 matching lines...) Expand all Loading... |
139 | 151 |
140 source_set("gtest_main") { | 152 source_set("gtest_main") { |
141 testonly = true | 153 testonly = true |
142 sources = [ | 154 sources = [ |
143 "src/gtest_main.cc", | 155 "src/gtest_main.cc", |
144 ] | 156 ] |
145 deps = [ | 157 deps = [ |
146 ":gtest", | 158 ":gtest", |
147 ] | 159 ] |
148 } | 160 } |
OLD | NEW |