Fix GN template webrtc_fuzzer_test to work with Abseil targets in deps
Bug: webrtc:341803749 Change-Id: I450a19f87fa08c811579a75b20ac177a481b8162 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/351640 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Auto-Submit: Florent Castelli <orphis@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/main@{#42373}
This commit is contained in:
parent
99c519b3fd
commit
4e86f14209
@ -44,7 +44,6 @@ rtc_library("fuzz_data_helper") {
|
|||||||
|
|
||||||
set_defaults("webrtc_fuzzer_test") {
|
set_defaults("webrtc_fuzzer_test") {
|
||||||
configs = rtc_add_configs
|
configs = rtc_add_configs
|
||||||
absl_deps = []
|
|
||||||
}
|
}
|
||||||
|
|
||||||
template("webrtc_fuzzer_test") {
|
template("webrtc_fuzzer_test") {
|
||||||
@ -56,17 +55,17 @@ template("webrtc_fuzzer_test") {
|
|||||||
]
|
]
|
||||||
additional_configs = configs
|
additional_configs = configs
|
||||||
|
|
||||||
# If absl_deps is [], no action is needed. If not [], then it needs to be
|
# Convert Abseil dependencies to //third_party/abseil-cpp:absl when
|
||||||
# converted to //third_party/abseil-cpp:absl when build_with_chromium=true
|
# build_with_chromium is true
|
||||||
# otherwise it just needs to be added to deps.
|
if (build_with_chromium) {
|
||||||
if (absl_deps != []) {
|
absl_dependencies =
|
||||||
if (!defined(deps)) {
|
filter_labels_include(deps, [ "//third_party/abseil-cpp/*" ])
|
||||||
|
if (absl_dependencies != []) {
|
||||||
|
filtered_deps =
|
||||||
|
filter_labels_exclude(deps, [ "//third_party/abseil-cpp/*" ])
|
||||||
deps = []
|
deps = []
|
||||||
}
|
deps = filtered_deps
|
||||||
if (build_with_chromium) {
|
|
||||||
deps += [ "//third_party/abseil-cpp:absl" ]
|
deps += [ "//third_party/abseil-cpp:absl" ]
|
||||||
} else {
|
|
||||||
deps += absl_deps
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user