GN: Fix errors in rtc_include_tests conditions
https://codereview.webrtc.org/2043873003 forgot to flip the
logic.
BUG=webrtc:5949
TBR=phoglund@webrtc.org
NOTRY=True
Review URL: https://codereview.webrtc.org/2037403003 .
Cr-Commit-Position: refs/heads/master@{#13055}
diff --git a/webrtc/BUILD.gn b/webrtc/BUILD.gn
index bf2eee3..3a20aa9 100644
--- a/webrtc/BUILD.gn
+++ b/webrtc/BUILD.gn
@@ -379,7 +379,7 @@
}
}
-if (!rtc_include_tests) {
+if (rtc_include_tests) {
config("rtc_unittests_config") {
# GN orders flags on a target before flags from configs. The default config
# adds -Wall, and this flag have to be after -Wall -- so they need to
diff --git a/webrtc/base/BUILD.gn b/webrtc/base/BUILD.gn
index 92aa2f6..78f6e85 100644
--- a/webrtc/base/BUILD.gn
+++ b/webrtc/base/BUILD.gn
@@ -632,7 +632,7 @@
]
}
-if (!rtc_include_tests) {
+if (rtc_include_tests) {
config("rtc_base_test_utils_exported_config") {
defines = [ "GTEST_RELATIVE_PATH" ]
}
diff --git a/webrtc/system_wrappers/BUILD.gn b/webrtc/system_wrappers/BUILD.gn
index 28c80f3..e89f733 100644
--- a/webrtc/system_wrappers/BUILD.gn
+++ b/webrtc/system_wrappers/BUILD.gn
@@ -193,7 +193,7 @@
}
}
-if (!rtc_include_tests) {
+if (rtc_include_tests) {
test("system_wrappers_unittests") {
testonly = true
sources = [
diff --git a/webrtc/tools/BUILD.gn b/webrtc/tools/BUILD.gn
index 8e57cbf..a9fe473 100644
--- a/webrtc/tools/BUILD.gn
+++ b/webrtc/tools/BUILD.gn
@@ -170,7 +170,7 @@
}
# Exclude tools depending on gflags since that's not available in Chromium.
-if (!rtc_include_tests) {
+if (rtc_include_tests) {
executable("agc_harness") {
testonly = true
sources = [