GN: Use rtc_include_tests variable to exclude tests.
This is closer to what the GYP build does, and is more readable. BUG=webrtc:5949 TBR=phoglund@webrtc.org NOTRY=True Review-Url: https://codereview.webrtc.org/2043873003 Cr-Commit-Position: refs/heads/master@{#13054}
This commit is contained in:
@ -22,3 +22,6 @@ rtc_include_pulse_audio = true
|
|||||||
# Chromium uses its own IO handling, so the internal ADM is only built for
|
# Chromium uses its own IO handling, so the internal ADM is only built for
|
||||||
# standalone WebRTC.
|
# standalone WebRTC.
|
||||||
rtc_include_internal_audio_device = true
|
rtc_include_internal_audio_device = true
|
||||||
|
|
||||||
|
# There's no point processing WebRTC standalone tests in a Chromium build.
|
||||||
|
rtc_include_tests = true
|
||||||
|
@ -379,8 +379,7 @@ if (use_libfuzzer || use_drfuzz) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# There's no point processing WebRTC standalone tests in a Chromium build.
|
if (!rtc_include_tests) {
|
||||||
if (!build_with_chromium) {
|
|
||||||
config("rtc_unittests_config") {
|
config("rtc_unittests_config") {
|
||||||
# GN orders flags on a target before flags from configs. The default 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
|
# adds -Wall, and this flag have to be after -Wall -- so they need to
|
||||||
|
@ -632,8 +632,7 @@ source_set("gtest_prod") {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
# There's no point processing WebRTC standalone tests in a Chromium build.
|
if (!rtc_include_tests) {
|
||||||
if (!build_with_chromium) {
|
|
||||||
config("rtc_base_test_utils_exported_config") {
|
config("rtc_base_test_utils_exported_config") {
|
||||||
defines = [ "GTEST_RELATIVE_PATH" ]
|
defines = [ "GTEST_RELATIVE_PATH" ]
|
||||||
}
|
}
|
||||||
|
@ -193,8 +193,7 @@ if (is_linux) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# There's no point processing WebRTC standalone tests in a Chromium build.
|
if (!rtc_include_tests) {
|
||||||
if (!build_with_chromium) {
|
|
||||||
test("system_wrappers_unittests") {
|
test("system_wrappers_unittests") {
|
||||||
testonly = true
|
testonly = true
|
||||||
sources = [
|
sources = [
|
||||||
|
@ -170,8 +170,7 @@ source_set("agc_test_utils") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Exclude tools depending on gflags since that's not available in Chromium.
|
# Exclude tools depending on gflags since that's not available in Chromium.
|
||||||
# There's no point processing WebRTC standalone tests in a Chromium build.
|
if (!rtc_include_tests) {
|
||||||
if (!build_with_chromium) {
|
|
||||||
executable("agc_harness") {
|
executable("agc_harness") {
|
||||||
testonly = true
|
testonly = true
|
||||||
sources = [
|
sources = [
|
||||||
|
Reference in New Issue
Block a user