gn2bp: Add an helper to drop unneeded third_party dependencies am: f5954480f5

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2469602

Change-Id: I4b93f877fd543563ddeb6e71eb520eff90a14cd1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Stefano Duo 2023-03-13 23:12:22 +00:00 • committed by Automerger Merge Worker
commit 775d55a2af

View file

@ -190,6 +190,9 @@ additional_args = {
],
}
def always_disable(module, arch):
return None
def enable_brotli(module, arch):
# Requires crrev/c/4111690
if arch is None:
@ -227,17 +230,17 @@ def enable_boringssl(module, arch):
# depends on.
builtin_deps = {
'//buildtools/third_party/libunwind:libunwind':
lambda m, a: None, # disable libunwind
always_disable,
'//buildtools/third_party/libunwind:libunwind__testing':
lambda m, a: None, # disable libunwind
always_disable,
'//net/data/ssl/chrome_root_store:gen_root_store_inc':
lambda m, a: None,
always_disable,
'//net/data/ssl/chrome_root_store:gen_root_store_inc__testing':
lambda m, a: None,
always_disable,
'//net/tools/root_store_tool:root_store_tool':
lambda m, a: None,
always_disable,
'//net/tools/root_store_tool:root_store_tool__testing':
lambda m, a: None,
always_disable,
'//third_party/zlib:zlib':
enable_zlib,
'//third_party/zlib:zlib__testing':