@@ -21,41 +21,12 @@ static_library("gtest") {
2121 " googletest/include/gtest/gtest-spi.h" ,
2222 " googletest/include/gtest/gtest.h" ,
2323 ]
24- sources = [
25- " googletest/include/gtest/gtest-death-test.h" ,
26- " googletest/include/gtest/gtest-message.h" ,
27- " googletest/include/gtest/gtest-param-test.h" ,
28- " googletest/include/gtest/gtest-printers.h" ,
29- " googletest/include/gtest/gtest-test-part.h" ,
30- " googletest/include/gtest/gtest-typed-test.h" ,
31- " googletest/include/gtest/gtest_pred_impl.h" ,
32- " googletest/include/gtest/gtest_prod.h" ,
33- " googletest/include/gtest/internal/custom/gtest-port.h" ,
34- " googletest/include/gtest/internal/custom/gtest-printers.h" ,
35- " googletest/include/gtest/internal/custom/gtest.h" ,
36- " googletest/include/gtest/internal/gtest-death-test-internal.h" ,
37- " googletest/include/gtest/internal/gtest-filepath.h" ,
38- " googletest/include/gtest/internal/gtest-internal.h" ,
39- " googletest/include/gtest/internal/gtest-linked_ptr.h" ,
40- " googletest/include/gtest/internal/gtest-param-util-generated.h" ,
41- " googletest/include/gtest/internal/gtest-param-util.h" ,
42- " googletest/include/gtest/internal/gtest-port-arch.h" ,
43- " googletest/include/gtest/internal/gtest-port.h" ,
44- " googletest/include/gtest/internal/gtest-string.h" ,
45- " googletest/include/gtest/internal/gtest-tuple.h" ,
46- " googletest/include/gtest/internal/gtest-type-util.h" ,
47- " googletest/src/gtest-all.cc" ,
48- " googletest/src/gtest-death-test.cc" ,
49- " googletest/src/gtest-filepath.cc" ,
50- " googletest/src/gtest-internal-inl.h" ,
51- " googletest/src/gtest-matchers.cc" ,
52- " googletest/src/gtest-port.cc" ,
53- " googletest/src/gtest-printers.cc" ,
54- " googletest/src/gtest-test-part.cc" ,
55- " googletest/src/gtest-typed-test.cc" ,
56- " googletest/src/gtest.cc" ,
57- ]
58- sources -= [ " googletest/src/gtest-all.cc" ]
24+
25+ # Only add the "*-all.cc" files (and no headers) to improve maintainability
26+ # from upstream refactoring. The "*-all.cc" files include the respective
27+ # source files.
28+ sources = [ " googletest/src/gtest-all.cc" ]
29+
5930 public_configs = [ " :gtest_config" ]
6031 configs += [ " :gtest_private_config" ]
6132
@@ -217,31 +188,7 @@ config("gmock_config") {
217188static_library (" gmock" ) {
218189 testonly = true
219190 public = [ " googlemock/include/gmock/gmock.h" ]
220- sources = [
221- " googlemock/include/gmock/gmock-actions.h" ,
222- " googlemock/include/gmock/gmock-cardinalities.h" ,
223- " googlemock/include/gmock/gmock-generated-actions.h" ,
224- " googlemock/include/gmock/gmock-generated-function-mockers.h" ,
225- " googlemock/include/gmock/gmock-generated-matchers.h" ,
226- " googlemock/include/gmock/gmock-generated-nice-strict.h" ,
227- " googlemock/include/gmock/gmock-matchers.h" ,
228- " googlemock/include/gmock/gmock-more-actions.h" ,
229- " googlemock/include/gmock/gmock-more-matchers.h" ,
230- " googlemock/include/gmock/gmock-spec-builders.h" ,
231- " googlemock/include/gmock/internal/custom/gmock-generated-actions.h" ,
232- " googlemock/include/gmock/internal/custom/gmock-matchers.h" ,
233- " googlemock/include/gmock/internal/custom/gmock-port.h" ,
234- " googlemock/include/gmock/internal/gmock-generated-internal-utils.h" ,
235- " googlemock/include/gmock/internal/gmock-internal-utils.h" ,
236- " googlemock/include/gmock/internal/gmock-port.h" ,
237- " googlemock/src/gmock-all.cc" ,
238- " googlemock/src/gmock-cardinalities.cc" ,
239- " googlemock/src/gmock-internal-utils.cc" ,
240- " googlemock/src/gmock-matchers.cc" ,
241- " googlemock/src/gmock-spec-builders.cc" ,
242- " googlemock/src/gmock.cc" ,
243- ]
244- sources -= [ " googlemock/src/gmock-all.cc" ]
191+ sources = [ " googlemock/src/gmock-all.cc" ]
245192 public_configs = [ " :gmock_config" ]
246193 configs += [ " :gmock_private_config" ]
247194 deps = [ " :gtest" ]
0 commit comments