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

Unified Diff: build/secondary/testing/gtest/BUILD.gn

Issue 1901313002: Support excluding Google Test extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | build_overrides/gtest.gni » ('j') | build_overrides/gtest.gni » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/secondary/testing/gtest/BUILD.gn
diff --git a/build/secondary/testing/gtest/BUILD.gn b/build/secondary/testing/gtest/BUILD.gn
index 13d49f124686b4d67434b44c5a34c5d527f77c1f..79b6bd5d875c435d9a73f5d452bc6c92fa7f0d96 100644
--- a/build/secondary/testing/gtest/BUILD.gn
+++ b/build/secondary/testing/gtest/BUILD.gn
@@ -2,6 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build_overrides/gtest.gni")
+
config("gtest_config") {
visibility = [
":*",
@@ -91,9 +93,6 @@ static_library("gtest") {
"include/gtest/internal/gtest-type-util.h",
#"gtest/src/gtest-all.cc", # Not needed by our build.
- "../multiprocess_func_list.cc",
- "../multiprocess_func_list.h",
- "../platform_test.h",
"src/gtest-death-test.cc",
"src/gtest-filepath.cc",
"src/gtest-internal-inl.h",
@@ -104,6 +103,17 @@ static_library("gtest") {
"src/gtest.cc",
]
+ if (gtest_include_multiprocess) {
+ sources += [
+ "../multiprocess_func_list.cc",
+ "../multiprocess_func_list.h",
+ ]
+ }
+
+ if (gtest_include_platform_test) {
+ sources += [ "../platform_test.h" ]
+ }
+
if (is_mac || is_ios) {
if (is_ios) {
set_sources_assignment_filter([])
@@ -111,8 +121,10 @@ static_library("gtest") {
sources += [
"../gtest_mac.h",
"../gtest_mac.mm",
- "../platform_test_mac.mm",
]
+ if (gtest_include_platform_test) {
+ sources += [ "../platform_test_mac.mm" ]
+ }
set_sources_assignment_filter(sources_assignment_filter)
}
« no previous file with comments | « no previous file | build_overrides/gtest.gni » ('j') | build_overrides/gtest.gni » ('J')

Powered by Google App Engine
This is Rietveld 408576698