From 24075e4398ae4bf074acf04039acdd322989e986 Mon Sep 17 00:00:00 2001 From: "A. Cody Schuffelen" Date: Mon, 13 Jul 2026 18:28:07 -0700 Subject: [PATCH 1/2] Support generating depend-on-what-you use targets This overlaps with layering_check (already enabled) but additionally validates that all build dependencies are actually necessary. Unlike other linters, errors are reported at `bazel build` rather than `bazel test` time. Bug: b/534499070 --- base/cvd/MODULE.bazel | 1 + base/cvd/cuttlefish/bazel/rules.bzl | 29 +++++++++++++++++++++++++---- base/cvd/tools/lint/linters.bzl | 23 +++++++++++++++++++++++ 3 files changed, 49 insertions(+), 4 deletions(-) diff --git a/base/cvd/MODULE.bazel b/base/cvd/MODULE.bazel index 690f7c80ed9..b9e586980ec 100644 --- a/base/cvd/MODULE.bazel +++ b/base/cvd/MODULE.bazel @@ -14,6 +14,7 @@ bazel_dep(name = "brotli") bazel_dep(name = "crc32c") bazel_dep(name = "curl") bazel_dep(name = "cxx.rs", version = "1.0.194") +bazel_dep(name = "depend_on_what_you_use", version = "1.0.0") bazel_dep(name = "fmt", version = "11.2.0.bcr.1") bazel_dep(name = "freetype", version = "2.13.3.bcr.2") bazel_dep(name = "gflags") diff --git a/base/cvd/cuttlefish/bazel/rules.bzl b/base/cvd/cuttlefish/bazel/rules.bzl index ba171834911..30d31dc81a2 100644 --- a/base/cvd/cuttlefish/bazel/rules.bzl +++ b/base/cvd/cuttlefish/bazel/rules.bzl @@ -17,7 +17,7 @@ load("@cc_compatibility_proxy//:proxy.bzl", "cc_binary", "cc_library", "cc_test" load("@rules_shell//shell:sh_binary.bzl", "sh_binary") load("@rules_shell//shell:sh_library.bzl", "sh_library") load("//:build_variables.bzl", BUILD_VAR_COPTS = "COPTS", BUILD_VAR_LINKOPTS = "LINKOPTS") -load("//tools/lint:linters.bzl", "buildifier_test", "clang_tidy_test", "shellcheck_test") +load("//tools/lint:linters.bzl", "buildifier_test", "clang_tidy_test", "dwyu_rule", "shellcheck_test") visibility(["//..."]) @@ -47,7 +47,7 @@ cf_build_test = macro( implementation = _cf_build_test_implementation, ) -def _cf_cc_binary_implementation(name, clang_format_enabled, clang_tidy_enabled, copts, linkopts, **kwargs): +def _cf_cc_binary_implementation(name, clang_format_enabled, clang_tidy_enabled, copts, depend_on_what_you_use_enabled, linkopts, **kwargs): if not clang_tidy_enabled and not kwargs["deprecation"]: kwargs["deprecation"] = "Not covered by clang-tidy" cc_binary( @@ -71,6 +71,12 @@ def _cf_cc_binary_implementation(name, clang_format_enabled, clang_tidy_enabled, tags = ["clang_tidy", "clang-tidy"], visibility = ["//visibility:private"], ) + if depend_on_what_you_use_enabled: + dwyu_rule( + name = name + "_depend_on_what_you_use", + deps = [":" + name], + testonly = True, + ) cf_cc_binary = macro( inherit_attrs = cc_binary, @@ -78,12 +84,13 @@ cf_cc_binary = macro( "clang_format_enabled": attr.bool(configurable = False, default = True, doc = "Decide if a corresponding format_test target is generated"), "clang_tidy_enabled": attr.bool(configurable = False, default = True, doc = "Decide if a corresponding clang_tidy_test target is generated"), "copts": attr.string_list(configurable = False, default = []), + "depend_on_what_you_use_enabled": attr.bool(configurable = False, default = False, doc = "Decide if a corresponding depend-on-what-you-use target is generated"), "linkopts": attr.string_list(configurable = False, default = []), }, implementation = _cf_cc_binary_implementation, ) -def _cf_cc_library_implementation(name, clang_format_enabled, clang_tidy_enabled, copts, **kwargs): +def _cf_cc_library_implementation(name, clang_format_enabled, clang_tidy_enabled, copts, depend_on_what_you_use_enabled, **kwargs): if not clang_tidy_enabled and not kwargs["deprecation"]: kwargs["deprecation"] = "Not covered by clang-tidy" cc_library( @@ -106,6 +113,12 @@ def _cf_cc_library_implementation(name, clang_format_enabled, clang_tidy_enabled tags = ["clang_tidy", "clang-tidy"], visibility = ["//visibility:private"], ) + if depend_on_what_you_use_enabled: + dwyu_rule( + name = name + "_depend_on_what_you_use", + deps = [":" + name], + testonly = True, + ) cf_cc_library = macro( inherit_attrs = cc_library, @@ -113,11 +126,12 @@ cf_cc_library = macro( "clang_format_enabled": attr.bool(configurable = False, default = True, doc = "Decide if a corresponding format_test target is generated"), "clang_tidy_enabled": attr.bool(configurable = False, default = True, doc = "Decide if a corresponding clang_tidy_test target is generated"), "copts": attr.string_list(configurable = False, default = []), + "depend_on_what_you_use_enabled": attr.bool(configurable = False, default = False, doc = "Decide if a corresponding depend-on-what-you-use target is generated"), }, implementation = _cf_cc_library_implementation, ) -def _cf_cc_test_implementation(name, clang_format_enabled, clang_tidy_enabled, copts, deps, **kwargs): +def _cf_cc_test_implementation(name, clang_format_enabled, clang_tidy_enabled, copts, depend_on_what_you_use_enabled, deps, **kwargs): if not clang_tidy_enabled and not kwargs["deprecation"]: kwargs["deprecation"] = "Not covered by clang-tidy" cc_test( @@ -144,6 +158,12 @@ def _cf_cc_test_implementation(name, clang_format_enabled, clang_tidy_enabled, c tags = ["clang_tidy", "clang-tidy"], visibility = ["//visibility:private"], ) + if depend_on_what_you_use_enabled: + dwyu_rule( + name = name + "_depend_on_what_you_use", + deps = [":" + name], + testonly = True, + ) cf_cc_test = macro( inherit_attrs = cc_test, @@ -151,6 +171,7 @@ cf_cc_test = macro( "clang_format_enabled": attr.bool(configurable = False, default = True, doc = "Decide if a corresponding format_test target is generated"), "clang_tidy_enabled": attr.bool(configurable = False, default = True, doc = "Decide if a corresponding clang_tidy_test target is generated"), "copts": attr.string_list(configurable = False, default = []), + "depend_on_what_you_use_enabled": attr.bool(configurable = False, default = False, doc = "Decide if a corresponding depend-on-what-you-use target is generated"), "deps": attr.label_list(configurable = False), }, implementation = _cf_cc_test_implementation, diff --git a/base/cvd/tools/lint/linters.bzl b/base/cvd/tools/lint/linters.bzl index 32482b08dd5..9fde47c0efb 100644 --- a/base/cvd/tools/lint/linters.bzl +++ b/base/cvd/tools/lint/linters.bzl @@ -2,6 +2,7 @@ load("@aspect_rules_lint//lint:buildifier.bzl", "lint_buildifier_aspect") load("@aspect_rules_lint//lint:clang_tidy.bzl", "lint_clang_tidy_aspect") load("@aspect_rules_lint//lint:lint_test.bzl", "lint_test") load("@aspect_rules_lint//lint:shellcheck.bzl", "lint_shellcheck_aspect") +load("@depend_on_what_you_use//dwyu/cc:defs.bzl", "dwyu_cc_aspect_factory") buildifier = lint_buildifier_aspect( binary = Label("@buildifier_prebuilt//:buildifier"), @@ -17,6 +18,28 @@ clang_tidy = lint_clang_tidy_aspect( clang_tidy_test = lint_test(aspect = clang_tidy) +depend_on_what_you_use = dwyu_cc_aspect_factory( + preprocessing_mode = "fast", +) + +def _dwyu_rule_impl(ctx): + # gather artifacts to make sure the DWYU aspect is executed + dwyu_artifacts = depset(transitive = [dep[OutputGroupInfo].dwyu for dep in ctx.attr.deps]) + return [DefaultInfo(files = dwyu_artifacts)] + +dwyu_rule = rule( + implementation = _dwyu_rule_impl, + attrs = { + # You can control what this rule does (e.g. recursive vs. non recursive analysis) by specifying a DWYU aspect + # which is configured in the desired way here. + "deps": attr.label_list(aspects = [depend_on_what_you_use]), + # Some DWYU flags can be controlled via '--aspects_parameters'. If their default value is 'False', they have to + # be set explicitly by the rule wrapper. + "dwyu_analysis_optimizes_impl_deps": attr.bool(default = False), + "dwyu_verbose": attr.bool(default = False), + }, +) + shellcheck = lint_shellcheck_aspect( binary = "@aspect_rules_lint//lint:shellcheck_bin", config = "@@//:.shellcheckrc", From 99cbc6f8609f3a9787ed18e43b65304599ff06a9 Mon Sep 17 00:00:00 2001 From: "A. Cody Schuffelen" Date: Mon, 13 Jul 2026 18:29:28 -0700 Subject: [PATCH 2/2] Default depend_on_what_you_use_enabled to True Non-compliant targets are excluded. Bug: b/534499070 --- base/cvd/allocd/BUILD.bazel | 3 +++ base/cvd/cuttlefish/bazel/rules.bzl | 6 +++--- .../cvd/cuttlefish/common/libs/fs/BUILD.bazel | 1 + .../common/libs/key_equals_value/BUILD.bazel | 2 ++ .../common/libs/security/BUILD.bazel | 1 + .../common/libs/transport/BUILD.bazel | 1 + .../cuttlefish/common/libs/utils/BUILD.bazel | 17 +++++++++++++++++ base/cvd/cuttlefish/flag_parser/BUILD.bazel | 3 +++ .../host/commands/assemble_cvd/BUILD.bazel | 17 +++++++++++++++++ .../assemble_cvd/android_build/BUILD.bazel | 6 ++++++ .../assemble_cvd/boot_image/BUILD.bazel | 3 +++ .../commands/assemble_cvd/disk/BUILD.bazel | 7 +++++++ .../commands/assemble_cvd/flags/BUILD.bazel | 17 +++++++++++++++++ .../casimir_control_server/BUILD.bazel | 1 + .../commands/console_forwarder/BUILD.bazel | 1 + .../control_env_proxy_server/BUILD.bazel | 1 + .../cuttlefish/host/commands/cvd/BUILD.bazel | 2 ++ .../host/commands/cvd/cache/BUILD.bazel | 1 + .../host/commands/cvd/cli/BUILD.bazel | 6 ++++++ .../commands/cvd/cli/commands/BUILD.bazel | 19 +++++++++++++++++++ .../cvd/cli/commands/monitor/BUILD.bazel | 3 +++ .../host/commands/cvd/cli/parser/BUILD.bazel | 5 +++++ .../cvd/cli/parser/instance/BUILD.bazel | 6 ++++++ .../commands/cvd/cli/selector/BUILD.bazel | 4 ++++ .../host/commands/cvd/fetch/BUILD.bazel | 7 +++++++ .../host/commands/cvd/instances/BUILD.bazel | 4 ++++ .../commands/cvd/instances/lock/BUILD.bazel | 1 + .../host/commands/cvd/utils/BUILD.bazel | 4 ++++ .../host/commands/cvd_env/BUILD.bazel | 1 + .../commands/cvd_import_locations/BUILD.bazel | 1 + .../cvd_send_id_disclosure/BUILD.bazel | 1 + .../host/commands/cvd_send_sms/BUILD.bazel | 3 +++ .../commands/cvd_update_location/BUILD.bazel | 1 + .../cvd_update_security_algorithm/BUILD.bazel | 1 + .../host/commands/cvdalloc/BUILD.bazel | 2 ++ .../host/commands/defaults/BUILD.bazel | 1 + .../host/commands/display/BUILD.bazel | 1 + .../host/commands/echo_server/BUILD.bazel | 1 + .../host/commands/gnss_grpc_proxy/BUILD.bazel | 1 + .../host/commands/health/BUILD.bazel | 1 + .../host/commands/host_bugreport/BUILD.bazel | 1 + .../commands/kernel_log_monitor/BUILD.bazel | 2 ++ .../host/commands/log_tee/BUILD.bazel | 1 + .../host/commands/logcat_receiver/BUILD.bazel | 1 + .../host/commands/metrics/BUILD.bazel | 5 +++++ .../commands/metrics_launcher/BUILD.bazel | 1 + .../host/commands/mkenvimage_slim/BUILD.bazel | 1 + .../host/commands/modem_simulator/BUILD.bazel | 11 +++++++++++ .../openwrt_control_server/BUILD.bazel | 1 + .../host/commands/powerbtn_cvd/BUILD.bazel | 1 + .../host/commands/powerwash_cvd/BUILD.bazel | 1 + .../commands/process_restarter/BUILD.bazel | 1 + .../commands/process_sandboxer/BUILD.bazel | 1 + .../process_sandboxer/policies/BUILD.bazel | 1 + .../host/commands/record_cvd/BUILD.bazel | 1 + .../host/commands/restart_cvd/BUILD.bazel | 1 + .../host/commands/run_cvd/BUILD.bazel | 5 +++++ .../host/commands/run_cvd/launch/BUILD.bazel | 14 ++++++++++++++ .../screen_recording_server/BUILD.bazel | 1 + .../host/commands/secure_env/BUILD.bazel | 2 ++ .../commands/secure_env/oemlock/BUILD.bazel | 1 + .../commands/secure_env/storage/BUILD.bazel | 1 + .../commands/sensors_simulator/BUILD.bazel | 3 +++ .../commands/snapshot_util_cvd/BUILD.bazel | 1 + .../commands/socket_vsock_proxy/BUILD.bazel | 1 + .../host/commands/start/BUILD.bazel | 1 + .../host/commands/status/BUILD.bazel | 1 + .../cuttlefish/host/commands/stop/BUILD.bazel | 1 + .../host/commands/tcp_connector/BUILD.bazel | 1 + .../commands/tombstone_receiver/BUILD.bazel | 1 + .../host/example_custom_actions/BUILD.bazel | 1 + .../host/frontend/adb_connector/BUILD.bazel | 1 + .../host/frontend/operator_proxy/BUILD.bazel | 1 + .../host/frontend/webrtc/BUILD.bazel | 16 ++++++++++++++++ .../frontend/webrtc/libcommon/BUILD.bazel | 3 +++ .../frontend/webrtc/libdevice/BUILD.bazel | 14 ++++++++++++++ .../host/graphics_detector/BUILD.bazel | 1 + .../host/libs/audio_connector/BUILD.bazel | 1 + .../host/libs/command_util/BUILD.bazel | 1 + .../cuttlefish/host/libs/config/BUILD.bazel | 15 +++++++++++++++ .../host/libs/config/adb/BUILD.bazel | 1 + .../host/libs/config/fastboot/BUILD.bazel | 1 + .../cuttlefish/host/libs/confui/BUILD.bazel | 1 + .../host/libs/control_env/BUILD.bazel | 1 + .../cuttlefish/host/libs/feature/BUILD.bazel | 1 + .../host/libs/image_aggregator/BUILD.bazel | 3 +++ .../cuttlefish/host/libs/location/BUILD.bazel | 1 + .../cuttlefish/host/libs/metrics/BUILD.bazel | 3 +++ .../host/libs/msg_queue/BUILD.bazel | 1 + .../host/libs/screen_connector/BUILD.bazel | 2 ++ .../host/libs/vm_manager/BUILD.bazel | 1 + base/cvd/cuttlefish/host/libs/web/BUILD.bazel | 9 +++++++++ .../cuttlefish/host/libs/web/cas/BUILD.bazel | 4 ++++ .../host/libs/web/http_client/BUILD.bazel | 5 +++++ base/cvd/cuttlefish/host/libs/zip/BUILD.bazel | 4 ++++ .../host/libs/zip/libzip_cc/BUILD.bazel | 6 ++++++ base/cvd/cuttlefish/io/BUILD.bazel | 6 ++++++ base/cvd/cuttlefish/pretty/BUILD.bazel | 3 +++ base/cvd/cuttlefish/pretty/liblp/BUILD.bazel | 2 ++ base/cvd/cuttlefish/process/BUILD.bazel | 2 ++ base/cvd/cuttlefish/result/BUILD.bazel | 4 ++++ 101 files changed, 341 insertions(+), 3 deletions(-) diff --git a/base/cvd/allocd/BUILD.bazel b/base/cvd/allocd/BUILD.bazel index 7a5bce9dd24..faeb995749c 100644 --- a/base/cvd/allocd/BUILD.bazel +++ b/base/cvd/allocd/BUILD.bazel @@ -30,6 +30,7 @@ cf_cc_library( name = "alloc_utils", srcs = ["alloc_utils.cpp"], hdrs = ["alloc_utils.h"], + depend_on_what_you_use_enabled = False, deps = select({ ":netlink": [":alloc_netlink"], "//conditions:default": [":alloc_iproute2"], @@ -52,6 +53,7 @@ cf_cc_library( name = "alloc_iproute2", srcs = ["alloc_iproute2.cpp"], hdrs = ["alloc_driver.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/process:command_subprocess", "//cuttlefish/result", @@ -65,6 +67,7 @@ cf_cc_library( name = "alloc_netlink", srcs = ["alloc_netlink.cpp"], hdrs = ["alloc_driver.h"], + depend_on_what_you_use_enabled = False, deps = [ "//allocd/net:netlink", "//cuttlefish/common/libs/fs", diff --git a/base/cvd/cuttlefish/bazel/rules.bzl b/base/cvd/cuttlefish/bazel/rules.bzl index 30d31dc81a2..f460e27096a 100644 --- a/base/cvd/cuttlefish/bazel/rules.bzl +++ b/base/cvd/cuttlefish/bazel/rules.bzl @@ -84,7 +84,7 @@ cf_cc_binary = macro( "clang_format_enabled": attr.bool(configurable = False, default = True, doc = "Decide if a corresponding format_test target is generated"), "clang_tidy_enabled": attr.bool(configurable = False, default = True, doc = "Decide if a corresponding clang_tidy_test target is generated"), "copts": attr.string_list(configurable = False, default = []), - "depend_on_what_you_use_enabled": attr.bool(configurable = False, default = False, doc = "Decide if a corresponding depend-on-what-you-use target is generated"), + "depend_on_what_you_use_enabled": attr.bool(configurable = False, default = True, doc = "Decide if a corresponding depend-on-what-you-use target is generated"), "linkopts": attr.string_list(configurable = False, default = []), }, implementation = _cf_cc_binary_implementation, @@ -126,7 +126,7 @@ cf_cc_library = macro( "clang_format_enabled": attr.bool(configurable = False, default = True, doc = "Decide if a corresponding format_test target is generated"), "clang_tidy_enabled": attr.bool(configurable = False, default = True, doc = "Decide if a corresponding clang_tidy_test target is generated"), "copts": attr.string_list(configurable = False, default = []), - "depend_on_what_you_use_enabled": attr.bool(configurable = False, default = False, doc = "Decide if a corresponding depend-on-what-you-use target is generated"), + "depend_on_what_you_use_enabled": attr.bool(configurable = False, default = True, doc = "Decide if a corresponding depend-on-what-you-use target is generated"), }, implementation = _cf_cc_library_implementation, ) @@ -171,7 +171,7 @@ cf_cc_test = macro( "clang_format_enabled": attr.bool(configurable = False, default = True, doc = "Decide if a corresponding format_test target is generated"), "clang_tidy_enabled": attr.bool(configurable = False, default = True, doc = "Decide if a corresponding clang_tidy_test target is generated"), "copts": attr.string_list(configurable = False, default = []), - "depend_on_what_you_use_enabled": attr.bool(configurable = False, default = False, doc = "Decide if a corresponding depend-on-what-you-use target is generated"), + "depend_on_what_you_use_enabled": attr.bool(configurable = False, default = True, doc = "Decide if a corresponding depend-on-what-you-use target is generated"), "deps": attr.label_list(configurable = False), }, implementation = _cf_cc_test_implementation, diff --git a/base/cvd/cuttlefish/common/libs/fs/BUILD.bazel b/base/cvd/cuttlefish/common/libs/fs/BUILD.bazel index e5a725782fe..e53b558158d 100644 --- a/base/cvd/cuttlefish/common/libs/fs/BUILD.bazel +++ b/base/cvd/cuttlefish/common/libs/fs/BUILD.bazel @@ -48,6 +48,7 @@ cf_cc_test( srcs = [ "shared_fd_test.cpp", ], + depend_on_what_you_use_enabled = False, deps = [ ":fs", "//libbase", diff --git a/base/cvd/cuttlefish/common/libs/key_equals_value/BUILD.bazel b/base/cvd/cuttlefish/common/libs/key_equals_value/BUILD.bazel index c497dc91c6f..27bc51c5826 100644 --- a/base/cvd/cuttlefish/common/libs/key_equals_value/BUILD.bazel +++ b/base/cvd/cuttlefish/common/libs/key_equals_value/BUILD.bazel @@ -10,6 +10,7 @@ cf_cc_library( name = "key_equals_value", srcs = ["key_equals_value.cc"], hdrs = ["key_equals_value.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:contains", @@ -21,6 +22,7 @@ cf_cc_library( cf_cc_test( name = "key_equals_value_test", srcs = ["key_equals_value_test.cc"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/key_equals_value", "//cuttlefish/result", diff --git a/base/cvd/cuttlefish/common/libs/security/BUILD.bazel b/base/cvd/cuttlefish/common/libs/security/BUILD.bazel index 1ba8d146b74..54a214e6230 100644 --- a/base/cvd/cuttlefish/common/libs/security/BUILD.bazel +++ b/base/cvd/cuttlefish/common/libs/security/BUILD.bazel @@ -12,6 +12,7 @@ cf_cc_library( hdrs = [ "confui_sign.h", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//libbase", diff --git a/base/cvd/cuttlefish/common/libs/transport/BUILD.bazel b/base/cvd/cuttlefish/common/libs/transport/BUILD.bazel index b0b78749854..8a165756eff 100644 --- a/base/cvd/cuttlefish/common/libs/transport/BUILD.bazel +++ b/base/cvd/cuttlefish/common/libs/transport/BUILD.bazel @@ -16,6 +16,7 @@ cf_cc_library( "channel.h", "channel_sharedfd.h", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/result:expect", diff --git a/base/cvd/cuttlefish/common/libs/utils/BUILD.bazel b/base/cvd/cuttlefish/common/libs/utils/BUILD.bazel index 217e34e2d34..ca6a66dee14 100644 --- a/base/cvd/cuttlefish/common/libs/utils/BUILD.bazel +++ b/base/cvd/cuttlefish/common/libs/utils/BUILD.bazel @@ -8,6 +8,7 @@ cf_cc_library( name = "archive", srcs = ["archive.cpp"], hdrs = ["archive.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/process:command_subprocess", "//cuttlefish/process:managed_stdio", @@ -72,6 +73,7 @@ cf_cc_library( name = "disk_usage", srcs = ["disk_usage.cpp"], hdrs = ["disk_usage.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/process:command_subprocess", "//cuttlefish/process:managed_stdio", @@ -91,6 +93,7 @@ cf_cc_library( "environment.h", "known_paths.h", ], + depend_on_what_you_use_enabled = False, deps = [ "//libbase", ], @@ -109,6 +112,7 @@ cf_cc_library( name = "files", srcs = ["files.cpp"], hdrs = ["files.h"], + depend_on_what_you_use_enabled = False, target_compatible_with = [ "@platforms//os:linux", # SEEK_DATA ], @@ -156,6 +160,7 @@ cf_cc_library( name = "gflags_xml_parser", srcs = ["gflags_xml_parser.cpp"], hdrs = ["gflags_xml_parser.h"], + depend_on_what_you_use_enabled = False, features = ["-layering_check"], deps = [ "//cuttlefish/result", @@ -176,6 +181,7 @@ cf_cc_library( name = "host_info", srcs = ["host_info.cpp"], hdrs = ["host_info.h"], + depend_on_what_you_use_enabled = False, deps = [ "//libbase", "@abseil-cpp//absl/base:no_destructor", @@ -194,6 +200,7 @@ cf_cc_library( name = "inotify", srcs = ["inotify.cpp"], hdrs = ["inotify.h"], + depend_on_what_you_use_enabled = False, target_compatible_with = [ "@platforms//os:linux", ], @@ -227,6 +234,7 @@ cf_cc_library( name = "network", srcs = ["network.cpp"], hdrs = ["network.h"], + depend_on_what_you_use_enabled = False, deps = [ "//libbase", "@abseil-cpp//absl/log", @@ -260,6 +268,7 @@ cf_cc_library( cf_cc_test( name = "proc_file_utils_test", srcs = ["proc_file_utils_test.cpp"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:contains", "//cuttlefish/common/libs/utils:proc_file_utils", @@ -291,6 +300,7 @@ cf_cc_library( name = "semver", srcs = ["semver.cpp"], hdrs = ["semver.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/result", "//cuttlefish/result:expect", @@ -301,6 +311,7 @@ cf_cc_library( cf_cc_test( name = "semver_test", srcs = ["semver_test.cpp"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:semver", "//cuttlefish/result:result_matchers", @@ -312,6 +323,7 @@ cf_cc_library( name = "signals", srcs = ["signals.cpp"], hdrs = ["signals.h"], + depend_on_what_you_use_enabled = False, deps = [ "//libbase", "@abseil-cpp//absl/log:check", @@ -327,6 +339,7 @@ cf_cc_library( name = "socket2socket_proxy", srcs = ["socket2socket_proxy.cpp"], hdrs = ["socket2socket_proxy.h"], + depend_on_what_you_use_enabled = False, target_compatible_with = [ "@platforms//os:linux", ], @@ -341,6 +354,7 @@ cf_cc_library( name = "tee_logging", srcs = ["tee_logging.cpp"], hdrs = ["tee_logging.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:contains", @@ -381,6 +395,7 @@ cf_cc_library( name = "unix_sockets", srcs = ["unix_sockets.cpp"], hdrs = ["unix_sockets.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/result", @@ -393,6 +408,7 @@ cf_cc_library( cf_cc_test( name = "unix_sockets_test", srcs = ["unix_sockets_test.cpp"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:unix_sockets", @@ -418,6 +434,7 @@ cf_cc_library( srcs = ["vsock_connection.cpp"], hdrs = ["vsock_connection.h"], clang_tidy_enabled = False, # TODO: b/403278821 - fix warnings and re-enable after migration work + depend_on_what_you_use_enabled = False, target_compatible_with = [ "@platforms//os:linux", ], diff --git a/base/cvd/cuttlefish/flag_parser/BUILD.bazel b/base/cvd/cuttlefish/flag_parser/BUILD.bazel index d7544f5f660..a7eca9a78dc 100644 --- a/base/cvd/cuttlefish/flag_parser/BUILD.bazel +++ b/base/cvd/cuttlefish/flag_parser/BUILD.bazel @@ -14,6 +14,7 @@ cf_cc_library( "flag.h", "gflags_compat.h", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:contains", "//cuttlefish/result", @@ -39,6 +40,7 @@ cf_cc_test( cf_cc_test( name = "gflags_compat_test", srcs = ["gflags_compat_test.cpp"], + depend_on_what_you_use_enabled = False, # `layering_check` conflicts with the combination of the clang prebuilt and # the cmake build rules used for @libxml2. features = ["-layering_check"], @@ -54,6 +56,7 @@ cf_cc_library( name = "shared_fd_flag", srcs = ["shared_fd_flag.cpp"], hdrs = ["shared_fd_flag.h"], + depend_on_what_you_use_enabled = False, deps = [ ":flag_parser", "//cuttlefish/common/libs/fs", diff --git a/base/cvd/cuttlefish/host/commands/assemble_cvd/BUILD.bazel b/base/cvd/cuttlefish/host/commands/assemble_cvd/BUILD.bazel index 18365c8d06e..17b95c9c3ac 100644 --- a/base/cvd/cuttlefish/host/commands/assemble_cvd/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/assemble_cvd/BUILD.bazel @@ -25,6 +25,7 @@ cf_cc_library( cf_cc_binary( name = "assemble_cvd", srcs = ["assemble_cvd.cc"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:contains", @@ -88,6 +89,7 @@ cf_cc_library( name = "boot_config", srcs = ["boot_config.cc"], hdrs = ["boot_config.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/common/libs/utils:size_utils", @@ -112,6 +114,7 @@ cf_cc_library( name = "boot_image_utils", srcs = ["boot_image_utils.cc"], hdrs = ["boot_image_utils.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:files", @@ -148,6 +151,7 @@ cf_cc_library( name = "bootconfig_args", srcs = ["bootconfig_args.cpp"], hdrs = ["bootconfig_args.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:contains", "//cuttlefish/common/libs/utils:json", @@ -183,6 +187,7 @@ cf_cc_library( name = "create_dynamic_disk_files", srcs = ["create_dynamic_disk_files.cc"], hdrs = ["create_dynamic_disk_files.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/host/commands/assemble_cvd:assemble_cvd_flags", @@ -251,6 +256,7 @@ cf_cc_library( name = "disk_image_flags_vectorization", srcs = ["disk_image_flags_vectorization.cc"], hdrs = ["disk_image_flags_vectorization.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/assemble_cvd:assemble_cvd_flags", "//cuttlefish/host/commands/assemble_cvd:super_image_mixer", @@ -292,6 +298,7 @@ cf_cc_library( name = "flag_feature", srcs = ["flag_feature.cpp"], hdrs = ["flag_feature.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/libs/config:config_flag", "//cuttlefish/host/libs/feature", @@ -307,6 +314,7 @@ cf_cc_library( name = "flags", srcs = ["flags.cc"], hdrs = ["flags.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:base64", "//cuttlefish/common/libs/utils:container", @@ -391,6 +399,7 @@ cf_cc_library( name = "guest_config", srcs = ["guest_config.cc"], hdrs = ["guest_config.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/key_equals_value", "//cuttlefish/common/libs/utils:device_type", @@ -425,6 +434,7 @@ cf_cc_library( name = "graphics_flags", srcs = ["graphics_flags.cc"], hdrs = ["graphics_flags.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:contains", "//cuttlefish/common/libs/utils:files", @@ -512,6 +522,7 @@ cf_cc_library( name = "misc_info", srcs = ["misc_info.cc"], hdrs = ["misc_info.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:contains", @@ -528,6 +539,7 @@ cf_cc_library( name = "network_flags", srcs = ["network_flags.cpp"], hdrs = ["network_flags.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/cvdalloc:interface", "//cuttlefish/host/libs/config:cuttlefish_config", @@ -553,6 +565,7 @@ cf_cc_library( name = "resolve_instance_files", srcs = ["resolve_instance_files.cc"], hdrs = ["resolve_instance_files.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/assemble_cvd:assemble_cvd_flags", "//cuttlefish/host/commands/assemble_cvd/flags:boot_image", @@ -573,6 +586,7 @@ cf_cc_library( name = "super_image_mixer", srcs = ["super_image_mixer.cc"], hdrs = ["super_image_mixer.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/key_equals_value", "//cuttlefish/common/libs/utils:archive", @@ -597,6 +611,7 @@ cf_cc_library( name = "touchpad", srcs = ["touchpad.cpp"], hdrs = ["touchpad.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/flag_parser", "//cuttlefish/host/libs/config:config_flag", @@ -638,6 +653,7 @@ cf_cc_library( name = "assemble_cvd_flags", srcs = ["assemble_cvd_flags.cpp"], hdrs = ["assemble_cvd_flags.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:environment", "//cuttlefish/host/commands/assemble_cvd:flags_defaults", @@ -654,6 +670,7 @@ cf_cc_library( name = "media", srcs = ["media.cpp"], hdrs = ["media.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/flag_parser", "//cuttlefish/host/libs/config:config_flag", diff --git a/base/cvd/cuttlefish/host/commands/assemble_cvd/android_build/BUILD.bazel b/base/cvd/cuttlefish/host/commands/assemble_cvd/android_build/BUILD.bazel index 33a3bb5a764..82582d571b6 100644 --- a/base/cvd/cuttlefish/host/commands/assemble_cvd/android_build/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/assemble_cvd/android_build/BUILD.bazel @@ -56,6 +56,7 @@ cf_cc_library( name = "android_product_dir", srcs = ["android_product_dir.cc"], hdrs = ["android_product_dir.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/host/commands/assemble_cvd/android_build", @@ -117,6 +118,7 @@ cf_cc_library( name = "fetched_android_build", srcs = ["fetched_android_build.cc"], hdrs = ["fetched_android_build.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/key_equals_value", "//cuttlefish/host/commands/assemble_cvd/android_build", @@ -150,6 +152,7 @@ cf_cc_library( name = "identify_build", srcs = ["identify_build.cc"], hdrs = ["identify_build.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/host/commands/assemble_cvd/android_build", @@ -173,6 +176,7 @@ cf_cc_library( name = "img_zip", srcs = ["img_zip.cc"], hdrs = ["img_zip.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/key_equals_value", "//cuttlefish/host/commands/assemble_cvd:guest_config_cc_proto", @@ -224,6 +228,7 @@ cf_cc_library( name = "super_image", srcs = ["super_image.cc"], hdrs = ["super_image.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/host/commands/assemble_cvd/android_build", @@ -244,6 +249,7 @@ cf_cc_library( name = "target_files", srcs = ["target_files.cc"], hdrs = ["target_files.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/key_equals_value", "//cuttlefish/host/commands/assemble_cvd/android_build", diff --git a/base/cvd/cuttlefish/host/commands/assemble_cvd/boot_image/BUILD.bazel b/base/cvd/cuttlefish/host/commands/assemble_cvd/boot_image/BUILD.bazel index b5df6931d0a..f6f88511764 100644 --- a/base/cvd/cuttlefish/host/commands/assemble_cvd/boot_image/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/assemble_cvd/boot_image/BUILD.bazel @@ -8,6 +8,7 @@ cf_cc_library( name = "boot_image", srcs = ["boot_image.cc"], hdrs = ["boot_image.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/io", "//cuttlefish/io:copy", @@ -38,6 +39,7 @@ cf_cc_library( cf_cc_test( name = "boot_image_test", srcs = ["boot_image_test.cc"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/assemble_cvd/boot_image", "//cuttlefish/host/commands/assemble_cvd/boot_image:boot_image_builder", @@ -83,6 +85,7 @@ cf_cc_library( cf_cc_test( name = "vendor_boot_image_test", srcs = ["vendor_boot_image_test.cc"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/assemble_cvd/boot_image:vendor_boot_image", "//cuttlefish/host/commands/assemble_cvd/boot_image:vendor_boot_image_builder", diff --git a/base/cvd/cuttlefish/host/commands/assemble_cvd/disk/BUILD.bazel b/base/cvd/cuttlefish/host/commands/assemble_cvd/disk/BUILD.bazel index 6e4f1360833..f8ca11a5d04 100644 --- a/base/cvd/cuttlefish/host/commands/assemble_cvd/disk/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/assemble_cvd/disk/BUILD.bazel @@ -21,6 +21,7 @@ cf_cc_library( name = "android_composite_disk_config", srcs = ["android_composite_disk_config.cc"], hdrs = ["android_composite_disk_config.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/host/commands/assemble_cvd/android_build", @@ -41,6 +42,7 @@ cf_cc_library( name = "ap_composite_disk", srcs = ["ap_composite_disk.cc"], hdrs = ["ap_composite_disk.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/host/commands/assemble_cvd:assemble_cvd_flags", @@ -67,6 +69,7 @@ cf_cc_library( name = "chromeos_composite_disk", srcs = ["chromeos_composite_disk.cc"], hdrs = ["chromeos_composite_disk.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/host/commands/assemble_cvd/disk:chromeos_state", @@ -168,6 +171,7 @@ cf_cc_library( name = "generate_persistent_vbmeta", srcs = ["generate_persistent_vbmeta.cpp"], hdrs = ["generate_persistent_vbmeta.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/host/commands/assemble_cvd:boot_config", @@ -207,6 +211,7 @@ cf_cc_library( name = "initialize_instance_composite_disk", srcs = ["initialize_instance_composite_disk.cc"], hdrs = ["initialize_instance_composite_disk.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/host/commands/assemble_cvd:assemble_cvd_flags", @@ -271,6 +276,7 @@ cf_cc_library( name = "misc_image", srcs = ["misc_image.cc"], hdrs = ["misc_image.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/host/commands/assemble_cvd/disk:image_file", @@ -287,6 +293,7 @@ cf_cc_library( name = "os_composite_disk", srcs = ["os_composite_disk.cc"], hdrs = ["os_composite_disk.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/assemble_cvd:assemble_cvd_flags", "//cuttlefish/host/commands/assemble_cvd:disk_builder", diff --git a/base/cvd/cuttlefish/host/commands/assemble_cvd/flags/BUILD.bazel b/base/cvd/cuttlefish/host/commands/assemble_cvd/flags/BUILD.bazel index 74f07a15fbe..2a3c5cdee6a 100644 --- a/base/cvd/cuttlefish/host/commands/assemble_cvd/flags/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/assemble_cvd/flags/BUILD.bazel @@ -22,6 +22,7 @@ cf_cc_library( name = "android_efi_loader", srcs = ["android_efi_loader.cc"], hdrs = ["android_efi_loader.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/host/commands/assemble_cvd:flags_defaults", @@ -38,6 +39,7 @@ cf_cc_library( name = "blank_data_image_mb", srcs = ["blank_data_image_mb.cc"], hdrs = ["blank_data_image_mb.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/assemble_cvd:flags_defaults", "//cuttlefish/host/commands/assemble_cvd:guest_config", @@ -53,6 +55,7 @@ cf_cc_library( name = "boot_image", srcs = ["boot_image.cc"], hdrs = ["boot_image.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/assemble_cvd:flags_defaults", "//cuttlefish/host/commands/assemble_cvd/android_build:android_builds", @@ -68,6 +71,7 @@ cf_cc_library( name = "bootloader", srcs = ["bootloader.cc"], hdrs = ["bootloader.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/host/commands/assemble_cvd:flags_defaults", @@ -88,6 +92,7 @@ cf_cc_library( name = "build_super_image", srcs = ["build_super_image.cc"], hdrs = ["build_super_image.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/assemble_cvd:flags_defaults", "//cuttlefish/host/commands/assemble_cvd/flags:flag_base", @@ -102,6 +107,7 @@ cf_cc_library( name = "cpus", srcs = ["cpus.cc"], hdrs = ["cpus.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/assemble_cvd:flags_defaults", "//cuttlefish/host/commands/assemble_cvd/flags:flag_base", @@ -116,6 +122,7 @@ cf_cc_library( name = "daemon", srcs = ["daemon.cc"], hdrs = ["daemon.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/assemble_cvd:flags_defaults", "//cuttlefish/host/commands/assemble_cvd/flags:flag_base", @@ -144,6 +151,7 @@ cf_cc_library( name = "display_proto", srcs = ["display_proto.cc"], hdrs = ["display_proto.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:base64", "//cuttlefish/host/commands/assemble_cvd:flags_defaults", @@ -171,6 +179,7 @@ cf_cc_library( name = "flag_base", srcs = ["flag_base.cc"], hdrs = ["flag_base.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/result", "//libbase", @@ -192,6 +201,7 @@ cf_cc_library( name = "from_gflags", srcs = ["from_gflags.cc"], hdrs = ["from_gflags.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/assemble_cvd/flags:flag_base", "//cuttlefish/host/commands/assemble_cvd/flags:parser", @@ -234,6 +244,7 @@ cf_cc_library( name = "initramfs_path", srcs = ["initramfs_path.cc"], hdrs = ["initramfs_path.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/assemble_cvd:flags_defaults", "//cuttlefish/host/libs/config:fetcher_config", @@ -249,6 +260,7 @@ cf_cc_library( name = "kernel_path", srcs = ["kernel_path.cc"], hdrs = ["kernel_path.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/assemble_cvd:flags_defaults", "//cuttlefish/host/libs/config:fetcher_config", @@ -306,6 +318,7 @@ cf_cc_library( name = "super_image", srcs = ["super_image.cc"], hdrs = ["super_image.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/assemble_cvd:flags_defaults", "//cuttlefish/host/commands/assemble_cvd/flags:system_image_dir", @@ -319,6 +332,7 @@ cf_cc_library( name = "system_image_dir", srcs = ["system_image_dir.cc"], hdrs = ["system_image_dir.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/assemble_cvd:flags_defaults", "//cuttlefish/host/commands/assemble_cvd/flags:flag_base", @@ -333,6 +347,7 @@ cf_cc_library( name = "use_cvdalloc", srcs = ["use_cvdalloc.cc"], hdrs = ["use_cvdalloc.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/assemble_cvd:flags_defaults", "//cuttlefish/host/commands/assemble_cvd/flags:flag_base", @@ -347,6 +362,7 @@ cf_cc_library( name = "vendor_boot_image", srcs = ["vendor_boot_image.cc"], hdrs = ["vendor_boot_image.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/assemble_cvd:flags_defaults", "//cuttlefish/host/commands/assemble_cvd/flags:system_image_dir", @@ -360,6 +376,7 @@ cf_cc_library( name = "vm_manager", srcs = ["vm_manager.cc"], hdrs = ["vm_manager.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/assemble_cvd:flags_defaults", "//cuttlefish/host/commands/assemble_cvd:guest_config", diff --git a/base/cvd/cuttlefish/host/commands/casimir_control_server/BUILD.bazel b/base/cvd/cuttlefish/host/commands/casimir_control_server/BUILD.bazel index 3f56201dc30..ee4473665d0 100644 --- a/base/cvd/cuttlefish/host/commands/casimir_control_server/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/casimir_control_server/BUILD.bazel @@ -10,6 +10,7 @@ package( cf_cc_binary( name = "casimir_control_server", srcs = ["main.cpp"], + depend_on_what_you_use_enabled = False, deps = [ ":libcasimir", ":libcasimir_control_server", diff --git a/base/cvd/cuttlefish/host/commands/console_forwarder/BUILD.bazel b/base/cvd/cuttlefish/host/commands/console_forwarder/BUILD.bazel index 42d4e08c876..bcd4923379e 100644 --- a/base/cvd/cuttlefish/host/commands/console_forwarder/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/console_forwarder/BUILD.bazel @@ -11,6 +11,7 @@ cf_cc_binary( srcs = [ "main.cpp", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/host/commands/kernel_log_monitor:kernel_log_monitor_utils", diff --git a/base/cvd/cuttlefish/host/commands/control_env_proxy_server/BUILD.bazel b/base/cvd/cuttlefish/host/commands/control_env_proxy_server/BUILD.bazel index 67560e11ce6..1a601c49edb 100644 --- a/base/cvd/cuttlefish/host/commands/control_env_proxy_server/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/control_env_proxy_server/BUILD.bazel @@ -33,6 +33,7 @@ cf_cc_binary( srcs = [ "main.cpp", ], + depend_on_what_you_use_enabled = False, deps = [ ":libcontrol_env_proxy_server", "//cuttlefish/common/libs/utils:files", diff --git a/base/cvd/cuttlefish/host/commands/cvd/BUILD.bazel b/base/cvd/cuttlefish/host/commands/cvd/BUILD.bazel index c52d51170ad..072eb92fc4c 100644 --- a/base/cvd/cuttlefish/host/commands/cvd/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/cvd/BUILD.bazel @@ -10,6 +10,7 @@ cf_cc_library( srcs = ["cvd.cpp"], hdrs = ["cvd.h"], copts = COPTS + ["-Werror=sign-compare"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:environment", "//cuttlefish/host/commands/cvd/cli:command_request", @@ -28,6 +29,7 @@ cf_cc_library( cf_cc_binary( name = "cvd", srcs = ["main.cc"], + depend_on_what_you_use_enabled = False, deps = [ ":libcvd", "//cuttlefish/ansi_codes:should_color", diff --git a/base/cvd/cuttlefish/host/commands/cvd/cache/BUILD.bazel b/base/cvd/cuttlefish/host/commands/cvd/cache/BUILD.bazel index 4788d374c95..1184e244524 100644 --- a/base/cvd/cuttlefish/host/commands/cvd/cache/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/cvd/cache/BUILD.bazel @@ -10,6 +10,7 @@ cf_cc_library( srcs = ["cache.cpp"], hdrs = ["cache.h"], copts = COPTS + ["-Werror=sign-compare"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:disk_usage", "//cuttlefish/common/libs/utils:files", diff --git a/base/cvd/cuttlefish/host/commands/cvd/cli/BUILD.bazel b/base/cvd/cuttlefish/host/commands/cvd/cli/BUILD.bazel index cb50057c4a2..ed652145d37 100644 --- a/base/cvd/cuttlefish/host/commands/cvd/cli/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/cvd/cli/BUILD.bazel @@ -20,6 +20,7 @@ cf_cc_library( name = "frontline_parser", srcs = ["frontline_parser.cpp"], hdrs = ["frontline_parser.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/flag_parser", "//cuttlefish/host/commands/cvd/cli/selector:selector_common_parser", @@ -42,6 +43,7 @@ cf_cc_library( name = "help_format", srcs = ["help_format.cpp"], hdrs = ["help_format.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/flag_parser", "@abseil-cpp//absl/log", @@ -53,6 +55,7 @@ cf_cc_library( name = "interruptible_terminal", srcs = ["interruptible_terminal.cpp"], hdrs = ["interruptible_terminal.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/posix:strerror", @@ -78,6 +81,7 @@ cf_cc_library( cf_cc_test( name = "log_files_test", srcs = ["log_files_test.cpp"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/host/commands/cvd/cli:log_files", @@ -102,6 +106,7 @@ cf_cc_library( "//cuttlefish/host/commands/cvd/cli/commands:help.h", "//cuttlefish/host/commands/cvd/cli/commands:load_configs.h", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:contains", @@ -169,6 +174,7 @@ cf_cc_library( name = "utils", srcs = ["utils.cpp"], hdrs = ["utils.h"], + depend_on_what_you_use_enabled = False, deps = [ ":command_request", "//cuttlefish/ansi_codes", diff --git a/base/cvd/cuttlefish/host/commands/cvd/cli/commands/BUILD.bazel b/base/cvd/cuttlefish/host/commands/cvd/cli/commands/BUILD.bazel index f8f6bf4112c..e43be088919 100644 --- a/base/cvd/cuttlefish/host/commands/cvd/cli/commands/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/cvd/cli/commands/BUILD.bazel @@ -18,6 +18,7 @@ cf_cc_library( name = "bugreport", srcs = ["bugreport.cpp"], hdrs = ["bugreport.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/common/libs/utils:users", @@ -47,6 +48,7 @@ cf_cc_library( name = "cache", srcs = ["cache.cpp"], hdrs = ["cache.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/flag_parser", "//cuttlefish/host/commands/cvd/cache", @@ -64,6 +66,7 @@ cf_cc_library( name = "clear", srcs = ["clear.cpp"], hdrs = ["clear.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/flag_parser", "//cuttlefish/host/commands/cvd/cli:command_request", @@ -91,6 +94,7 @@ cf_cc_library( name = "display", srcs = ["display.cpp"], hdrs = ["display.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/flag_parser", @@ -111,6 +115,7 @@ cf_cc_library( name = "env", srcs = ["env.cpp"], hdrs = ["env.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/flag_parser", "//cuttlefish/host/commands/cvd/cli:command_request", @@ -133,6 +138,7 @@ cf_cc_library( name = "fetch", srcs = ["fetch.cpp"], hdrs = ["fetch.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/common/libs/utils:tee_logging", @@ -157,6 +163,7 @@ cf_cc_library( name = "fleet", srcs = ["fleet.cpp"], hdrs = ["fleet.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/flag_parser", "//cuttlefish/host/commands/cvd/cli:command_request", @@ -189,6 +196,7 @@ cf_cc_library( name = "host_tool_target", srcs = ["host_tool_target.cpp"], hdrs = ["host_tool_target.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/host/commands/cvd/utils", @@ -218,6 +226,7 @@ cf_cc_library( name = "login", srcs = ["login.cpp"], hdrs = ["login.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:environment", "//cuttlefish/common/libs/utils:is_google_corp", @@ -258,6 +267,7 @@ cf_cc_library( name = "power_btn", srcs = ["power_btn.cpp"], hdrs = ["power_btn.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/flag_parser", "//cuttlefish/host/commands/cvd/cli:command_request", @@ -275,6 +285,7 @@ cf_cc_library( name = "powerwash", srcs = ["powerwash.cpp"], hdrs = ["powerwash.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/flag_parser", "//cuttlefish/host/commands/cvd/cli:command_request", @@ -292,6 +303,7 @@ cf_cc_library( name = "remove", srcs = ["remove.cpp"], hdrs = ["remove.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/flag_parser", "//cuttlefish/host/commands/cvd/cli:command_request", @@ -311,6 +323,7 @@ cf_cc_library( name = "reset", srcs = ["reset.cpp"], hdrs = ["reset.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/flag_parser", @@ -330,6 +343,7 @@ cf_cc_library( name = "restart", srcs = ["restart.cpp"], hdrs = ["restart.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/flag_parser", "//cuttlefish/host/commands/cvd/cli:command_request", @@ -347,6 +361,7 @@ cf_cc_library( name = "screen_recording", srcs = ["screen_recording.cpp"], hdrs = ["screen_recording.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/flag_parser", "//cuttlefish/host/commands/cvd/cli:command_request", @@ -387,6 +402,7 @@ cf_cc_library( name = "start", srcs = ["start.cpp"], hdrs = ["start.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:contains", @@ -427,6 +443,7 @@ cf_cc_library( name = "status", srcs = ["status.cpp"], hdrs = ["status.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/flag_parser", "//cuttlefish/host/commands/cvd/cli:command_request", @@ -448,6 +465,7 @@ cf_cc_library( name = "stop", srcs = ["stop.cpp"], hdrs = ["stop.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/flag_parser", "//cuttlefish/host/commands/cvd/cli:command_request", @@ -470,6 +488,7 @@ cf_cc_library( name = "version", srcs = ["version.cpp"], hdrs = ["version.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:proto", "//cuttlefish/flag_parser", diff --git a/base/cvd/cuttlefish/host/commands/cvd/cli/commands/monitor/BUILD.bazel b/base/cvd/cuttlefish/host/commands/cvd/cli/commands/monitor/BUILD.bazel index ffc59cfd836..2a086a08247 100644 --- a/base/cvd/cuttlefish/host/commands/cvd/cli/commands/monitor/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/cvd/cli/commands/monitor/BUILD.bazel @@ -8,6 +8,7 @@ cf_cc_library( name = "command_handler", srcs = ["command_handler.cc"], hdrs = ["command_handler.h"], + depend_on_what_you_use_enabled = False, deps = [ ":monitor", "//cuttlefish/flag_parser", @@ -26,6 +27,7 @@ cf_cc_library( name = "display", srcs = ["display.cc"], hdrs = ["display.h"], + depend_on_what_you_use_enabled = False, deps = [ ":kernel", ":launcher", @@ -48,6 +50,7 @@ cf_cc_library( cf_cc_test( name = "display_test", srcs = ["display_test.cc"], + depend_on_what_you_use_enabled = False, deps = [ ":display", "//cuttlefish/io", diff --git a/base/cvd/cuttlefish/host/commands/cvd/cli/parser/BUILD.bazel b/base/cvd/cuttlefish/host/commands/cvd/cli/parser/BUILD.bazel index 58475e93f2e..9042531b531 100644 --- a/base/cvd/cuttlefish/host/commands/cvd/cli/parser/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/cvd/cli/parser/BUILD.bazel @@ -42,6 +42,7 @@ cf_cc_library( name = "cf_configs_common", srcs = ["cf_configs_common.cpp"], hdrs = ["cf_configs_common.h"], + depend_on_what_you_use_enabled = False, deps = [ ":load_config_cc_proto", "//cuttlefish/result", @@ -76,6 +77,7 @@ cf_cc_library( name = "fetch_config_parser", srcs = ["fetch_config_parser.cpp"], hdrs = ["fetch_config_parser.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/cvd/cli/parser:cf_configs_common", "//cuttlefish/host/commands/cvd/cli/parser:load_config_cc_proto", @@ -102,6 +104,7 @@ cf_cc_library( name = "launch_cvd_parser", srcs = ["launch_cvd_parser.cpp"], hdrs = ["launch_cvd_parser.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/cvd/cli/parser:cf_configs_common", "//cuttlefish/host/commands/cvd/cli/parser:cf_configs_instances", @@ -177,6 +180,7 @@ cf_cc_library( cf_cc_test( name = "metrics_configs_test", srcs = ["metrics_configs_test.cc"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/cvd/cli/parser:test_common", "//cuttlefish/result", @@ -201,6 +205,7 @@ cf_cc_library( testonly = True, srcs = ["test_common.cc"], hdrs = ["test_common.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/cvd/cli/parser:cf_flags_validator", "//cuttlefish/host/commands/cvd/cli/parser:launch_cvd_parser", diff --git a/base/cvd/cuttlefish/host/commands/cvd/cli/parser/instance/BUILD.bazel b/base/cvd/cuttlefish/host/commands/cvd/cli/parser/instance/BUILD.bazel index 9b3cfeca929..76017de644d 100644 --- a/base/cvd/cuttlefish/host/commands/cvd/cli/parser/instance/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/cvd/cli/parser/instance/BUILD.bazel @@ -7,6 +7,7 @@ package( cf_cc_test( name = "boot_configs_test", srcs = ["boot_configs_test.cc"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/cvd/cli/parser:test_common", "@jsoncpp", @@ -52,6 +53,7 @@ cf_cc_library( name = "cf_graphics_configs", srcs = ["cf_graphics_configs.cpp"], hdrs = ["cf_graphics_configs.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:base64", "//cuttlefish/host/commands/assemble_cvd:flags_defaults", @@ -101,6 +103,7 @@ cf_cc_library( name = "cf_vm_configs", srcs = ["cf_vm_configs.cpp"], hdrs = ["cf_vm_configs.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:flags_validator", "//cuttlefish/host/commands/assemble_cvd:flags_defaults", @@ -116,6 +119,7 @@ cf_cc_library( cf_cc_test( name = "disk_configs_test", srcs = ["disk_configs_test.cc"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/cvd/cli/parser:test_common", "@jsoncpp", @@ -125,6 +129,7 @@ cf_cc_test( cf_cc_test( name = "graphics_configs_test", srcs = ["graphics_configs_test.cc"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:base64", "//cuttlefish/common/libs/utils:json", @@ -141,6 +146,7 @@ cf_cc_test( cf_cc_test( name = "vm_configs_test", srcs = ["vm_configs_test.cc"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:json", "//cuttlefish/host/commands/cvd/cli/parser:test_common", diff --git a/base/cvd/cuttlefish/host/commands/cvd/cli/selector/BUILD.bazel b/base/cvd/cuttlefish/host/commands/cvd/cli/selector/BUILD.bazel index 26b21e647ac..1400e266216 100644 --- a/base/cvd/cuttlefish/host/commands/cvd/cli/selector/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/cvd/cli/selector/BUILD.bazel @@ -8,6 +8,7 @@ cf_cc_library( name = "creation_analyzer", srcs = ["creation_analyzer.cpp"], hdrs = ["creation_analyzer.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:contains", "//cuttlefish/common/libs/utils:files", @@ -50,6 +51,7 @@ cf_cc_library( cf_cc_test( name = "num_instances_parser_test", srcs = ["num_instances_parser_test.cpp"], + depend_on_what_you_use_enabled = False, deps = [ ":num_instances_parser", ":selector_common_parser", @@ -63,6 +65,7 @@ cf_cc_library( name = "selector", srcs = ["selector.cpp"], hdrs = ["selector.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/ansi_codes:terminal_colors", "//cuttlefish/common/libs/utils:users", @@ -80,6 +83,7 @@ cf_cc_library( name = "selector_common_parser", srcs = ["selector_common_parser.cpp"], hdrs = ["selector_common_parser.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:contains", "//cuttlefish/flag_parser", diff --git a/base/cvd/cuttlefish/host/commands/cvd/fetch/BUILD.bazel b/base/cvd/cuttlefish/host/commands/cvd/fetch/BUILD.bazel index 333410497b5..757d2593d12 100644 --- a/base/cvd/cuttlefish/host/commands/cvd/fetch/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/cvd/fetch/BUILD.bazel @@ -35,6 +35,7 @@ cf_cc_library( hdrs = [ "build_api_credentials.h", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:environment", "//cuttlefish/common/libs/utils:files", @@ -52,6 +53,7 @@ cf_cc_library( name = "build_api_flags", srcs = ["build_api_flags.cc"], hdrs = ["build_api_flags.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/flag_parser", "//cuttlefish/host/commands/cvd/cache", @@ -123,6 +125,7 @@ cf_cc_library( name = "downloaders", srcs = ["downloaders.cc"], hdrs = ["downloaders.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:environment", "//cuttlefish/host/commands/cvd/fetch:build_api_credentials", @@ -172,6 +175,7 @@ cf_cc_library( name = "fetch_context", srcs = ["fetch_context.cc"], hdrs = ["fetch_context.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:archive", "//cuttlefish/common/libs/utils:files", @@ -200,6 +204,7 @@ cf_cc_library( srcs = ["fetch_cvd.cc"], hdrs = ["fetch_cvd.h"], copts = COPTS + ["-Werror=sign-compare"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:archive", "//cuttlefish/common/libs/utils:contains", @@ -238,6 +243,7 @@ cf_cc_library( name = "fetch_cvd_parser", srcs = ["fetch_cvd_parser.cc"], hdrs = ["fetch_cvd_parser.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/common/libs/utils:tee_logging", @@ -314,6 +320,7 @@ cf_cc_library( name = "substitute", srcs = ["substitute.cc"], hdrs = ["substitute.h"], + depend_on_what_you_use_enabled = False, deps = [ ":host_pkg_migration_cc_proto", "//cuttlefish/common/libs/utils:environment", diff --git a/base/cvd/cuttlefish/host/commands/cvd/instances/BUILD.bazel b/base/cvd/cuttlefish/host/commands/cvd/instances/BUILD.bazel index a17eecd2af5..121566495ca 100644 --- a/base/cvd/cuttlefish/host/commands/cvd/instances/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/cvd/instances/BUILD.bazel @@ -44,6 +44,7 @@ cf_cc_library( name = "device_name", srcs = ["device_name.cpp"], hdrs = ["device_name.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/result", "//libbase", @@ -56,6 +57,7 @@ cf_cc_library( testonly = True, srcs = ["instance_database_helper.cpp"], hdrs = ["instance_database_helper.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:files", @@ -96,6 +98,7 @@ cf_cc_library( "operator_client.h", "status_fetcher.h", ], + depend_on_what_you_use_enabled = False, deps = [ ":cvd_persistent_data", "//cuttlefish/common/libs/fs", @@ -139,6 +142,7 @@ cf_cc_library( name = "instance_manager", srcs = ["instance_manager.cpp"], hdrs = ["instance_manager.h"], + depend_on_what_you_use_enabled = False, deps = [ ":cvd_persistent_data", ":instances", diff --git a/base/cvd/cuttlefish/host/commands/cvd/instances/lock/BUILD.bazel b/base/cvd/cuttlefish/host/commands/cvd/instances/lock/BUILD.bazel index 2a90ca6f7b7..ff8d96be583 100644 --- a/base/cvd/cuttlefish/host/commands/cvd/instances/lock/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/cvd/instances/lock/BUILD.bazel @@ -16,6 +16,7 @@ cf_cc_library( "lock_file.h", ], copts = COPTS + ["-Werror=sign-compare"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:contains", diff --git a/base/cvd/cuttlefish/host/commands/cvd/utils/BUILD.bazel b/base/cvd/cuttlefish/host/commands/cvd/utils/BUILD.bazel index 42fd5fc790e..e014a4bc560 100644 --- a/base/cvd/cuttlefish/host/commands/cvd/utils/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/cvd/utils/BUILD.bazel @@ -10,6 +10,7 @@ cf_cc_library( srcs = ["common.cpp"], hdrs = ["common.h"], copts = COPTS + ["-Werror=sign-compare"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:contains", "//cuttlefish/common/libs/utils:files", @@ -25,6 +26,7 @@ cf_cc_library( srcs = ["flags_collector.cpp"], hdrs = ["flags_collector.h"], copts = COPTS + ["-Werror=sign-compare"], + depend_on_what_you_use_enabled = False, deps = [ "//libbase", "@abseil-cpp//absl/log", @@ -37,6 +39,7 @@ cf_cc_library( srcs = ["interrupt_listener.cpp"], hdrs = ["interrupt_listener.h"], copts = COPTS + ["-Werror=sign-compare"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:signals", "//cuttlefish/posix:strerror", @@ -68,6 +71,7 @@ cf_cc_library( "subprocess_waiter.h", ], copts = COPTS + ["-Werror=sign-compare"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/cvd/utils:common", "//cuttlefish/host/commands/cvd/utils:flags_collector", diff --git a/base/cvd/cuttlefish/host/commands/cvd_env/BUILD.bazel b/base/cvd/cuttlefish/host/commands/cvd_env/BUILD.bazel index 1af3da46168..964c7551b5f 100644 --- a/base/cvd/cuttlefish/host/commands/cvd_env/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/cvd_env/BUILD.bazel @@ -9,6 +9,7 @@ cf_cc_binary( srcs = [ "main.cc", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:tee_logging", "//cuttlefish/host/libs/config:cuttlefish_config", diff --git a/base/cvd/cuttlefish/host/commands/cvd_import_locations/BUILD.bazel b/base/cvd/cuttlefish/host/commands/cvd_import_locations/BUILD.bazel index b9bafec39fd..e5053ef5aaf 100644 --- a/base/cvd/cuttlefish/host/commands/cvd_import_locations/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/cvd_import_locations/BUILD.bazel @@ -7,6 +7,7 @@ package( cf_cc_binary( name = "cvd_import_locations", srcs = ["main.cc"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:tee_logging", diff --git a/base/cvd/cuttlefish/host/commands/cvd_send_id_disclosure/BUILD.bazel b/base/cvd/cuttlefish/host/commands/cvd_send_id_disclosure/BUILD.bazel index 32b2ab23982..123d8415a55 100644 --- a/base/cvd/cuttlefish/host/commands/cvd_send_id_disclosure/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/cvd_send_id_disclosure/BUILD.bazel @@ -9,6 +9,7 @@ cf_cc_binary( srcs = [ "main.cc", ], + depend_on_what_you_use_enabled = False, deps = [ ":libcvd_id_disclosure_builder", "//cuttlefish/common/libs/fs", diff --git a/base/cvd/cuttlefish/host/commands/cvd_send_sms/BUILD.bazel b/base/cvd/cuttlefish/host/commands/cvd_send_sms/BUILD.bazel index d1352f79ae3..17d72c9229d 100644 --- a/base/cvd/cuttlefish/host/commands/cvd_send_sms/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/cvd_send_sms/BUILD.bazel @@ -9,6 +9,7 @@ cf_cc_binary( srcs = [ "main.cc", ], + depend_on_what_you_use_enabled = False, deps = [ ":libcvd_send_sms", "//cuttlefish/common/libs/fs", @@ -28,6 +29,7 @@ cf_cc_library( "pdu_format_builder.h", "sms_sender.h", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//libbase", @@ -44,6 +46,7 @@ cf_cc_test( "unittest/pdu_format_builder_test.cc", "unittest/sms_sender_test.cc", ], + depend_on_what_you_use_enabled = False, deps = [ ":libcvd_send_sms", "//cuttlefish/common/libs/fs", diff --git a/base/cvd/cuttlefish/host/commands/cvd_update_location/BUILD.bazel b/base/cvd/cuttlefish/host/commands/cvd_update_location/BUILD.bazel index 00d8547fa86..f9d773c4bd0 100644 --- a/base/cvd/cuttlefish/host/commands/cvd_update_location/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/cvd_update_location/BUILD.bazel @@ -9,6 +9,7 @@ cf_cc_binary( srcs = [ "main.cc", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:tee_logging", "//cuttlefish/host/libs/config:cuttlefish_config", diff --git a/base/cvd/cuttlefish/host/commands/cvd_update_security_algorithm/BUILD.bazel b/base/cvd/cuttlefish/host/commands/cvd_update_security_algorithm/BUILD.bazel index 1ae8ecfa402..a84b30ff32c 100644 --- a/base/cvd/cuttlefish/host/commands/cvd_update_security_algorithm/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/cvd_update_security_algorithm/BUILD.bazel @@ -9,6 +9,7 @@ cf_cc_binary( srcs = [ "main.cc", ], + depend_on_what_you_use_enabled = False, deps = [ ":libcvd_update_security_algorithm_builder", "//cuttlefish/common/libs/fs", diff --git a/base/cvd/cuttlefish/host/commands/cvdalloc/BUILD.bazel b/base/cvd/cuttlefish/host/commands/cvdalloc/BUILD.bazel index fc83b638d08..ae3536b08eb 100644 --- a/base/cvd/cuttlefish/host/commands/cvdalloc/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/cvdalloc/BUILD.bazel @@ -32,6 +32,7 @@ cf_cc_library( name = "privilege", srcs = ["privilege.cpp"], hdrs = ["privilege.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/posix:strerror", "//cuttlefish/result", @@ -43,6 +44,7 @@ cf_cc_library( cf_cc_binary( name = "cvdalloc", srcs = ["cvdalloc.cpp"], + depend_on_what_you_use_enabled = False, deps = [ ":interface", ":privilege", diff --git a/base/cvd/cuttlefish/host/commands/defaults/BUILD.bazel b/base/cvd/cuttlefish/host/commands/defaults/BUILD.bazel index 282f67c38c8..cfc8559e8c0 100644 --- a/base/cvd/cuttlefish/host/commands/defaults/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/defaults/BUILD.bazel @@ -7,6 +7,7 @@ package( cf_cc_binary( name = "cf_defaults", srcs = ["defaults.cpp"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/key_equals_value", "//cuttlefish/host/libs/web/http_client:curl_http_client", diff --git a/base/cvd/cuttlefish/host/commands/display/BUILD.bazel b/base/cvd/cuttlefish/host/commands/display/BUILD.bazel index 2e6121bd8f7..714db5a8810 100644 --- a/base/cvd/cuttlefish/host/commands/display/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/display/BUILD.bazel @@ -7,6 +7,7 @@ package( cf_cc_binary( name = "cvd_internal_display", srcs = ["main.cpp"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:files", diff --git a/base/cvd/cuttlefish/host/commands/echo_server/BUILD.bazel b/base/cvd/cuttlefish/host/commands/echo_server/BUILD.bazel index e3a899adcbb..1a71b19df1c 100644 --- a/base/cvd/cuttlefish/host/commands/echo_server/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/echo_server/BUILD.bazel @@ -32,6 +32,7 @@ cf_cc_binary( srcs = [ "main.cpp", ], + depend_on_what_you_use_enabled = False, deps = [ ":libecho_server", "@gflags", diff --git a/base/cvd/cuttlefish/host/commands/gnss_grpc_proxy/BUILD.bazel b/base/cvd/cuttlefish/host/commands/gnss_grpc_proxy/BUILD.bazel index d32eaf90e18..6f9f843f16d 100644 --- a/base/cvd/cuttlefish/host/commands/gnss_grpc_proxy/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/gnss_grpc_proxy/BUILD.bazel @@ -10,6 +10,7 @@ package( cf_cc_binary( name = "gnss_grpc_proxy", srcs = ["gnss_grpc_proxy.cpp"], + depend_on_what_you_use_enabled = False, deps = [ ":libcvd_gnss_grpc_proxy", "//cuttlefish/common/libs/fs", diff --git a/base/cvd/cuttlefish/host/commands/health/BUILD.bazel b/base/cvd/cuttlefish/host/commands/health/BUILD.bazel index d5cbfe0fdca..b16aaeb65b6 100644 --- a/base/cvd/cuttlefish/host/commands/health/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/health/BUILD.bazel @@ -9,6 +9,7 @@ cf_cc_binary( srcs = [ "health.cpp", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:tee_logging", "//cuttlefish/host/libs/config:cuttlefish_config", diff --git a/base/cvd/cuttlefish/host/commands/host_bugreport/BUILD.bazel b/base/cvd/cuttlefish/host/commands/host_bugreport/BUILD.bazel index 8282b675af5..df753ec4367 100644 --- a/base/cvd/cuttlefish/host/commands/host_bugreport/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/host_bugreport/BUILD.bazel @@ -7,6 +7,7 @@ package( cf_cc_binary( name = "cvd_internal_host_bugreport", srcs = ["main.cc"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:environment", diff --git a/base/cvd/cuttlefish/host/commands/kernel_log_monitor/BUILD.bazel b/base/cvd/cuttlefish/host/commands/kernel_log_monitor/BUILD.bazel index a1c12d59cfd..0434d22f72e 100644 --- a/base/cvd/cuttlefish/host/commands/kernel_log_monitor/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/kernel_log_monitor/BUILD.bazel @@ -11,6 +11,7 @@ cf_cc_binary( srcs = [ "main.cc", ], + depend_on_what_you_use_enabled = False, deps = [ ":kernel_log_monitor_utils", "//cuttlefish/common/libs/fs", @@ -38,6 +39,7 @@ cf_cc_library( "kernel_log_server.h", "utils.h", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:json", diff --git a/base/cvd/cuttlefish/host/commands/log_tee/BUILD.bazel b/base/cvd/cuttlefish/host/commands/log_tee/BUILD.bazel index e66b7945e12..18b91902638 100644 --- a/base/cvd/cuttlefish/host/commands/log_tee/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/log_tee/BUILD.bazel @@ -7,6 +7,7 @@ package( cf_cc_binary( name = "log_tee", srcs = ["log_tee.cpp"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:tee_logging", diff --git a/base/cvd/cuttlefish/host/commands/logcat_receiver/BUILD.bazel b/base/cvd/cuttlefish/host/commands/logcat_receiver/BUILD.bazel index cd95ec56fb1..9bc437a1bfe 100644 --- a/base/cvd/cuttlefish/host/commands/logcat_receiver/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/logcat_receiver/BUILD.bazel @@ -7,6 +7,7 @@ package( cf_cc_binary( name = "logcat_receiver", srcs = ["main.cpp"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/host/libs/config:config_instance_derived", diff --git a/base/cvd/cuttlefish/host/commands/metrics/BUILD.bazel b/base/cvd/cuttlefish/host/commands/metrics/BUILD.bazel index 2dc787e57e5..09dfbbe3ea7 100644 --- a/base/cvd/cuttlefish/host/commands/metrics/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/metrics/BUILD.bazel @@ -19,6 +19,7 @@ cf_cc_library( name = "debug_reader", srcs = ["debug_reader.cc"], hdrs = ["debug_reader.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/result", @@ -51,6 +52,7 @@ cf_cc_binary( "host_receiver.h", "metrics.cc", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:files", @@ -82,6 +84,7 @@ cf_cc_library( hdrs = [ "metrics_conversion.h", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/result", "//external_proto:clientanalytics_cc_proto", @@ -145,6 +148,7 @@ cf_cc_library( name = "send", srcs = ["send.cc"], hdrs = ["send.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/libs/metrics:metrics_headers", "//cuttlefish/host/libs/web/http_client", @@ -161,6 +165,7 @@ cf_cc_library( name = "utils", srcs = ["utils.cc"], hdrs = ["utils.h"], + depend_on_what_you_use_enabled = False, deps = [ "//libbase", "@abseil-cpp//absl/log", diff --git a/base/cvd/cuttlefish/host/commands/metrics_launcher/BUILD.bazel b/base/cvd/cuttlefish/host/commands/metrics_launcher/BUILD.bazel index ecfadd90e6a..f441d27147f 100644 --- a/base/cvd/cuttlefish/host/commands/metrics_launcher/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/metrics_launcher/BUILD.bazel @@ -9,6 +9,7 @@ cf_cc_binary( srcs = [ "metrics_launcher.cpp", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:tee_logging", "//cuttlefish/host/libs/metrics", diff --git a/base/cvd/cuttlefish/host/commands/mkenvimage_slim/BUILD.bazel b/base/cvd/cuttlefish/host/commands/mkenvimage_slim/BUILD.bazel index 22139235cc1..bdffec0c306 100644 --- a/base/cvd/cuttlefish/host/commands/mkenvimage_slim/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/mkenvimage_slim/BUILD.bazel @@ -9,6 +9,7 @@ exports_files([".clang-tidy"]) cf_cc_binary( name = "mkenvimage_slim", srcs = ["mkenvimage_slim.cc"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:tee_logging", "//cuttlefish/host/libs/config:mkenvimage_slim", diff --git a/base/cvd/cuttlefish/host/commands/modem_simulator/BUILD.bazel b/base/cvd/cuttlefish/host/commands/modem_simulator/BUILD.bazel index 12f36ba8ac2..fc1640e1386 100644 --- a/base/cvd/cuttlefish/host/commands/modem_simulator/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/modem_simulator/BUILD.bazel @@ -10,6 +10,7 @@ cf_cc_library( name = "channel_monitor", srcs = ["channel_monitor.cpp"], hdrs = ["channel_monitor.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/host/commands/modem_simulator:client", @@ -24,6 +25,7 @@ cf_cc_library( name = "client", srcs = ["client.cc"], hdrs = ["client.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//libbase", @@ -35,6 +37,7 @@ cf_cc_library( name = "command_parser", srcs = ["command_parser.cpp"], hdrs = ["command_parser.h"], + depend_on_what_you_use_enabled = False, deps = [ "//libbase", "@abseil-cpp//absl/strings", @@ -51,6 +54,7 @@ cf_cc_library( name = "data_service", srcs = ["data_service.cpp"], hdrs = ["data_service.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/modem_simulator:device_config", "//cuttlefish/host/commands/modem_simulator:modem_service", @@ -81,6 +85,7 @@ cf_cc_library( name = "modem_service", srcs = ["modem_service.cpp"], hdrs = ["modem_service.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/modem_simulator:channel_monitor", "//cuttlefish/host/commands/modem_simulator:command_parser", @@ -95,6 +100,7 @@ cf_cc_library( name = "modem_simulator_class", srcs = ["modem_simulator.cpp"], hdrs = ["modem_simulator.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/modem_simulator:channel_monitor", "//cuttlefish/host/commands/modem_simulator:data_service", @@ -133,6 +139,7 @@ cf_cc_library( "-Werror", "-Wno-unused-const-variable", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:files", @@ -161,6 +168,7 @@ cf_cc_library( cf_cc_binary( name = "modem_simulator", srcs = ["main.cpp"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:tee_logging", @@ -190,6 +198,7 @@ cf_cc_library( name = "nvram_config", srcs = ["nvram_config.cpp"], hdrs = ["nvram_config.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/host/commands/modem_simulator:device_config", @@ -220,6 +229,7 @@ cf_cc_test( "unittest/service_test.cpp", ], clang_format_enabled = False, + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:files", @@ -249,6 +259,7 @@ cf_cc_library( name = "thread_looper", srcs = ["thread_looper.cpp"], hdrs = ["thread_looper.h"], + depend_on_what_you_use_enabled = False, deps = [ "//libbase", "@abseil-cpp//absl/log", diff --git a/base/cvd/cuttlefish/host/commands/openwrt_control_server/BUILD.bazel b/base/cvd/cuttlefish/host/commands/openwrt_control_server/BUILD.bazel index 3612f11f08b..e3189d2fade 100644 --- a/base/cvd/cuttlefish/host/commands/openwrt_control_server/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/openwrt_control_server/BUILD.bazel @@ -33,6 +33,7 @@ cf_cc_binary( srcs = [ "main.cpp", ], + depend_on_what_you_use_enabled = False, deps = [ ":libopenwrt_control_server", "//cuttlefish/common/libs/utils:files", diff --git a/base/cvd/cuttlefish/host/commands/powerbtn_cvd/BUILD.bazel b/base/cvd/cuttlefish/host/commands/powerbtn_cvd/BUILD.bazel index b2b5b18df3d..e6fa2ffe613 100644 --- a/base/cvd/cuttlefish/host/commands/powerbtn_cvd/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/powerbtn_cvd/BUILD.bazel @@ -9,6 +9,7 @@ cf_cc_binary( srcs = [ "powerbtn_cvd.cc", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:tee_logging", diff --git a/base/cvd/cuttlefish/host/commands/powerwash_cvd/BUILD.bazel b/base/cvd/cuttlefish/host/commands/powerwash_cvd/BUILD.bazel index 7b9ecd6bf5a..6af14161cee 100644 --- a/base/cvd/cuttlefish/host/commands/powerwash_cvd/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/powerwash_cvd/BUILD.bazel @@ -9,6 +9,7 @@ cf_cc_binary( srcs = [ "powerwash_cvd.cc", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:tee_logging", diff --git a/base/cvd/cuttlefish/host/commands/process_restarter/BUILD.bazel b/base/cvd/cuttlefish/host/commands/process_restarter/BUILD.bazel index 2c3777c52aa..802b6a31cdf 100644 --- a/base/cvd/cuttlefish/host/commands/process_restarter/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/process_restarter/BUILD.bazel @@ -11,6 +11,7 @@ cf_cc_binary( "parser.cc", "parser.h", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:contains", "//cuttlefish/flag_parser", diff --git a/base/cvd/cuttlefish/host/commands/process_sandboxer/BUILD.bazel b/base/cvd/cuttlefish/host/commands/process_sandboxer/BUILD.bazel index 55e39524695..72de8632c65 100644 --- a/base/cvd/cuttlefish/host/commands/process_sandboxer/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/process_sandboxer/BUILD.bazel @@ -117,6 +117,7 @@ cf_cc_library( cf_cc_binary( name = "process_sandboxer", srcs = ["main.cpp"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/process_sandboxer:logs", "//cuttlefish/host/commands/process_sandboxer:pidfd", diff --git a/base/cvd/cuttlefish/host/commands/process_sandboxer/policies/BUILD.bazel b/base/cvd/cuttlefish/host/commands/process_sandboxer/policies/BUILD.bazel index 560795c6d1d..6419c1baa5a 100644 --- a/base/cvd/cuttlefish/host/commands/process_sandboxer/policies/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/process_sandboxer/policies/BUILD.bazel @@ -431,6 +431,7 @@ cf_cc_library( name = "wmediumd_gen_config", srcs = ["wmediumd_gen_config.cpp"], copts = COPTS + ALLOW_C, + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/process_sandboxer:policies_header", "@sandboxed_api//sandboxed_api/sandbox2", diff --git a/base/cvd/cuttlefish/host/commands/record_cvd/BUILD.bazel b/base/cvd/cuttlefish/host/commands/record_cvd/BUILD.bazel index 93ee981b4d3..81e3424d336 100644 --- a/base/cvd/cuttlefish/host/commands/record_cvd/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/record_cvd/BUILD.bazel @@ -9,6 +9,7 @@ cf_cc_binary( srcs = [ "record_cvd.cc", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:tee_logging", "//cuttlefish/host/libs/config:cuttlefish_config", diff --git a/base/cvd/cuttlefish/host/commands/restart_cvd/BUILD.bazel b/base/cvd/cuttlefish/host/commands/restart_cvd/BUILD.bazel index 8b621935e87..3ab3453c908 100644 --- a/base/cvd/cuttlefish/host/commands/restart_cvd/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/restart_cvd/BUILD.bazel @@ -9,6 +9,7 @@ cf_cc_binary( srcs = [ "restart_cvd.cc", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:tee_logging", diff --git a/base/cvd/cuttlefish/host/commands/run_cvd/BUILD.bazel b/base/cvd/cuttlefish/host/commands/run_cvd/BUILD.bazel index 78c1bf92557..2d69ead74ec 100644 --- a/base/cvd/cuttlefish/host/commands/run_cvd/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/run_cvd/BUILD.bazel @@ -10,6 +10,7 @@ cf_cc_library( name = "boot_state_machine", srcs = ["boot_state_machine.cc"], hdrs = ["boot_state_machine.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:files", @@ -44,6 +45,7 @@ cf_cc_library( name = "reporting", srcs = ["reporting.cpp"], hdrs = ["reporting.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/ansi_codes", "//cuttlefish/ansi_codes:should_color", @@ -56,6 +58,7 @@ cf_cc_library( cf_cc_binary( name = "run_cvd", srcs = ["main.cc"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/common/libs/utils:tee_logging", @@ -130,6 +133,7 @@ cf_cc_library( "server_loop_impl_webrtc.cpp", ], hdrs = ["server_loop.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:contains", @@ -166,6 +170,7 @@ cf_cc_library( name = "validate", srcs = ["validate.cpp"], hdrs = ["validate.h"], + depend_on_what_you_use_enabled = False, deps = [ "//allocd:alloc_utils", "//cuttlefish/common/libs/utils:in_sandbox", diff --git a/base/cvd/cuttlefish/host/commands/run_cvd/launch/BUILD.bazel b/base/cvd/cuttlefish/host/commands/run_cvd/launch/BUILD.bazel index 2ebc3beceba..c1e2c15ee73 100644 --- a/base/cvd/cuttlefish/host/commands/run_cvd/launch/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/run_cvd/launch/BUILD.bazel @@ -7,6 +7,7 @@ package( cf_cc_library( name = "auto_cmd", hdrs = ["auto_cmd.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:type_name", "//cuttlefish/host/libs/feature", @@ -115,6 +116,7 @@ cf_cc_library( name = "cvdalloc", srcs = ["cvdalloc.cpp"], hdrs = ["cvdalloc.h"], + depend_on_what_you_use_enabled = False, deps = [ "//allocd:alloc_utils", "//cuttlefish/common/libs/fs", @@ -175,6 +177,7 @@ cf_cc_library( name = "input_connections_provider", srcs = ["input_connections_provider.cc"], hdrs = ["input_connections_provider.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:files", @@ -197,6 +200,7 @@ cf_cc_library( name = "kernel_log_monitor", srcs = ["kernel_log_monitor.cpp"], hdrs = ["kernel_log_monitor.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/run_cvd:reporting", "//cuttlefish/host/libs/config:config_instance_derived", @@ -247,6 +251,7 @@ cf_cc_library( name = "mcu", srcs = ["mcu.cpp"], hdrs = ["mcu.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/common/libs/utils:wait_for_file", @@ -280,6 +285,7 @@ cf_cc_library( name = "modem", srcs = ["modem.cpp"], hdrs = ["modem.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/host/libs/config:cuttlefish_config", @@ -328,6 +334,7 @@ cf_cc_library( name = "open_wrt", srcs = ["open_wrt.cpp"], hdrs = ["open_wrt.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:in_sandbox", "//cuttlefish/common/libs/utils:json", @@ -411,6 +418,7 @@ cf_cc_library( name = "secure_env", srcs = ["secure_env.cpp"], hdrs = ["secure_env.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:files", @@ -468,6 +476,7 @@ cf_cc_library( name = "streamer", srcs = ["streamer.cpp"], hdrs = ["streamer.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:files", @@ -498,6 +507,7 @@ cf_cc_library( name = "ti50_emulator", srcs = ["ti50_emulator.cpp"], hdrs = ["ti50_emulator.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:socket2socket_proxy", @@ -519,6 +529,7 @@ cf_cc_library( name = "tombstone_receiver", srcs = ["tombstone_receiver.cpp"], hdrs = ["tombstone_receiver.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:files", @@ -567,6 +578,7 @@ cf_cc_library( name = "vhost_device_vsock", srcs = ["vhost_device_vsock.cpp"], hdrs = ["vhost_device_vsock.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:environment", "//cuttlefish/common/libs/utils:wait_for_unix_socket", @@ -589,6 +601,7 @@ cf_cc_library( name = "vhost_user_media_devices", srcs = ["vhost_user_media_devices.cpp"], hdrs = ["vhost_user_media_devices.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:files", @@ -611,6 +624,7 @@ cf_cc_library( name = "webrtc_controller", srcs = ["webrtc_controller.cpp"], hdrs = ["webrtc_controller.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/host/frontend/webrtc:libcuttlefish_webrtc_command_channel", diff --git a/base/cvd/cuttlefish/host/commands/screen_recording_server/BUILD.bazel b/base/cvd/cuttlefish/host/commands/screen_recording_server/BUILD.bazel index 4158123b2c2..1e49657f618 100644 --- a/base/cvd/cuttlefish/host/commands/screen_recording_server/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/screen_recording_server/BUILD.bazel @@ -33,6 +33,7 @@ cf_cc_binary( srcs = [ "main.cpp", ], + depend_on_what_you_use_enabled = False, deps = [ ":libscreen_recording_server", "//cuttlefish/common/libs/fs", diff --git a/base/cvd/cuttlefish/host/commands/secure_env/BUILD.bazel b/base/cvd/cuttlefish/host/commands/secure_env/BUILD.bazel index e22d7fb856d..fe9b752f76a 100644 --- a/base/cvd/cuttlefish/host/commands/secure_env/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/secure_env/BUILD.bazel @@ -7,6 +7,7 @@ package( cf_cc_binary( name = "secure_env", srcs = ["secure_env_only_oemlock.cpp"], + depend_on_what_you_use_enabled = False, deps = [ ":suspend_resume_handler", ":worker_thread_loop_body", @@ -29,6 +30,7 @@ cf_cc_library( name = "suspend_resume_handler", srcs = ["suspend_resume_handler.cpp"], hdrs = ["suspend_resume_handler.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/host/libs/command_util", diff --git a/base/cvd/cuttlefish/host/commands/secure_env/oemlock/BUILD.bazel b/base/cvd/cuttlefish/host/commands/secure_env/oemlock/BUILD.bazel index a82cc73beda..c9f5fda8f96 100644 --- a/base/cvd/cuttlefish/host/commands/secure_env/oemlock/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/secure_env/oemlock/BUILD.bazel @@ -8,6 +8,7 @@ cf_cc_library( name = "oemlock", srcs = ["oemlock.cpp"], hdrs = ["oemlock.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/secure_env/storage", "//cuttlefish/result", diff --git a/base/cvd/cuttlefish/host/commands/secure_env/storage/BUILD.bazel b/base/cvd/cuttlefish/host/commands/secure_env/storage/BUILD.bazel index f117f6683e5..c1e1429122f 100644 --- a/base/cvd/cuttlefish/host/commands/secure_env/storage/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/secure_env/storage/BUILD.bazel @@ -8,6 +8,7 @@ cf_cc_library( name = "insecure_json_storage", srcs = ["insecure_json_storage.cpp"], hdrs = ["insecure_json_storage.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:base64", "//cuttlefish/common/libs/utils:files", diff --git a/base/cvd/cuttlefish/host/commands/sensors_simulator/BUILD.bazel b/base/cvd/cuttlefish/host/commands/sensors_simulator/BUILD.bazel index b65b492ce98..b06b9664c8b 100644 --- a/base/cvd/cuttlefish/host/commands/sensors_simulator/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/sensors_simulator/BUILD.bazel @@ -12,6 +12,7 @@ cf_cc_library( hdrs = [ "sensors_simulator.h", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/sensors", "//libbase", @@ -27,6 +28,7 @@ cf_cc_library( hdrs = [ "sensors_hal_proxy.h", ], + depend_on_what_you_use_enabled = False, deps = [ ":libsensors_simulator", "//cuttlefish/common/libs/sensors", @@ -45,6 +47,7 @@ cf_cc_binary( srcs = [ "main.cpp", ], + depend_on_what_you_use_enabled = False, deps = [ ":libsensors_hal_proxy", ":libsensors_simulator", diff --git a/base/cvd/cuttlefish/host/commands/snapshot_util_cvd/BUILD.bazel b/base/cvd/cuttlefish/host/commands/snapshot_util_cvd/BUILD.bazel index d54497c6b48..4e74a6359e5 100644 --- a/base/cvd/cuttlefish/host/commands/snapshot_util_cvd/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/snapshot_util_cvd/BUILD.bazel @@ -13,6 +13,7 @@ cf_cc_binary( "snapshot_taker.cc", "snapshot_taker.h", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:contains", diff --git a/base/cvd/cuttlefish/host/commands/socket_vsock_proxy/BUILD.bazel b/base/cvd/cuttlefish/host/commands/socket_vsock_proxy/BUILD.bazel index 05dd77f8b9c..4e4442fd744 100644 --- a/base/cvd/cuttlefish/host/commands/socket_vsock_proxy/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/socket_vsock_proxy/BUILD.bazel @@ -13,6 +13,7 @@ cf_cc_binary( "server.h", "socket_vsock_proxy.cpp", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:contains", diff --git a/base/cvd/cuttlefish/host/commands/start/BUILD.bazel b/base/cvd/cuttlefish/host/commands/start/BUILD.bazel index b4540e533c9..eeb90cf1655 100644 --- a/base/cvd/cuttlefish/host/commands/start/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/start/BUILD.bazel @@ -17,6 +17,7 @@ cf_cc_binary( "validate_metrics_confirmation.cpp", "validate_metrics_confirmation.h", ], + depend_on_what_you_use_enabled = False, # `layering_check` conflicts with the combination of the clang prebuilt and # the cmake build rules used for @libxml2. features = ["-layering_check"], diff --git a/base/cvd/cuttlefish/host/commands/status/BUILD.bazel b/base/cvd/cuttlefish/host/commands/status/BUILD.bazel index c6ab7578124..a714d46bba5 100644 --- a/base/cvd/cuttlefish/host/commands/status/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/status/BUILD.bazel @@ -7,6 +7,7 @@ package( cf_cc_binary( name = "cvd_internal_status", srcs = ["main.cc"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:files", diff --git a/base/cvd/cuttlefish/host/commands/stop/BUILD.bazel b/base/cvd/cuttlefish/host/commands/stop/BUILD.bazel index 7a17f0a7894..53ce6ed9de5 100644 --- a/base/cvd/cuttlefish/host/commands/stop/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/stop/BUILD.bazel @@ -7,6 +7,7 @@ package( cf_cc_binary( name = "cvd_internal_stop", srcs = ["main.cc"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:environment", diff --git a/base/cvd/cuttlefish/host/commands/tcp_connector/BUILD.bazel b/base/cvd/cuttlefish/host/commands/tcp_connector/BUILD.bazel index 90948dbc68f..87479119c3a 100644 --- a/base/cvd/cuttlefish/host/commands/tcp_connector/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/tcp_connector/BUILD.bazel @@ -9,6 +9,7 @@ cf_cc_binary( srcs = [ "main.cpp", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/host/libs/config:logging", diff --git a/base/cvd/cuttlefish/host/commands/tombstone_receiver/BUILD.bazel b/base/cvd/cuttlefish/host/commands/tombstone_receiver/BUILD.bazel index f30795b8c2b..213500d7815 100644 --- a/base/cvd/cuttlefish/host/commands/tombstone_receiver/BUILD.bazel +++ b/base/cvd/cuttlefish/host/commands/tombstone_receiver/BUILD.bazel @@ -7,6 +7,7 @@ package( cf_cc_binary( name = "tombstone_receiver", srcs = ["main.cpp"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/flag_parser", diff --git a/base/cvd/cuttlefish/host/example_custom_actions/BUILD.bazel b/base/cvd/cuttlefish/host/example_custom_actions/BUILD.bazel index 55a4f149f6f..4c753770f25 100644 --- a/base/cvd/cuttlefish/host/example_custom_actions/BUILD.bazel +++ b/base/cvd/cuttlefish/host/example_custom_actions/BUILD.bazel @@ -13,6 +13,7 @@ exports_files( cf_cc_binary( name = "cuttlefish_example_action_server", srcs = ["main.cpp"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/host/libs/config:cuttlefish_config", diff --git a/base/cvd/cuttlefish/host/frontend/adb_connector/BUILD.bazel b/base/cvd/cuttlefish/host/frontend/adb_connector/BUILD.bazel index 11e9a716a88..de14ca87bed 100644 --- a/base/cvd/cuttlefish/host/frontend/adb_connector/BUILD.bazel +++ b/base/cvd/cuttlefish/host/frontend/adb_connector/BUILD.bazel @@ -11,6 +11,7 @@ cf_cc_binary( "adb_connection_maintainer.h", "main.cpp", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:environment", diff --git a/base/cvd/cuttlefish/host/frontend/operator_proxy/BUILD.bazel b/base/cvd/cuttlefish/host/frontend/operator_proxy/BUILD.bazel index c39b59330c3..d4097a7e768 100644 --- a/base/cvd/cuttlefish/host/frontend/operator_proxy/BUILD.bazel +++ b/base/cvd/cuttlefish/host/frontend/operator_proxy/BUILD.bazel @@ -7,6 +7,7 @@ package( cf_cc_binary( name = "operator_proxy", srcs = ["main.cpp"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:socket2socket_proxy", diff --git a/base/cvd/cuttlefish/host/frontend/webrtc/BUILD.bazel b/base/cvd/cuttlefish/host/frontend/webrtc/BUILD.bazel index 16b9737ad3e..6608b9e978e 100644 --- a/base/cvd/cuttlefish/host/frontend/webrtc/BUILD.bazel +++ b/base/cvd/cuttlefish/host/frontend/webrtc/BUILD.bazel @@ -21,6 +21,7 @@ cf_cc_library( name = "libcuttlefish_webrtc_command_channel", srcs = ["webrtc_command_channel.cpp"], hdrs = ["webrtc_command_channel.h"], + depend_on_what_you_use_enabled = False, deps = [ ":libcuttlefish_webrtc_commands_proto", "//cuttlefish/common/libs/transport", @@ -33,6 +34,7 @@ cf_cc_library( srcs = ["adb_handler.cpp"], hdrs = ["adb_handler.h"], clang_format_enabled = False, + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//libbase", @@ -50,6 +52,7 @@ cf_cc_library( srcs = ["audio_handler.cpp"], hdrs = ["audio_handler.h"], clang_format_enabled = False, + depend_on_what_you_use_enabled = False, deps = [ ":libcuttlefish_webrtc_audio_mixer", ":libcuttlefish_webrtc_audio_settings", @@ -72,6 +75,7 @@ cf_cc_library( srcs = ["audio_mixer.cpp"], hdrs = ["audio_mixer.h"], clang_format_enabled = False, + depend_on_what_you_use_enabled = False, deps = [ ":libcuttlefish_webrtc_audio_settings", "//cuttlefish/host/frontend/webrtc/libdevice:audio_sink", @@ -95,6 +99,7 @@ cf_cc_library( srcs = ["bluetooth_handler.cpp"], hdrs = ["bluetooth_handler.h"], clang_format_enabled = False, + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//libbase", @@ -111,6 +116,7 @@ cf_cc_library( name = "libcuttlefish_webrtc_client_server", srcs = ["client_server.cpp"], hdrs = ["client_server.h"], + depend_on_what_you_use_enabled = False, deps = [ "//libbase", "@abseil-cpp//absl/log", @@ -128,6 +134,7 @@ cf_cc_library( srcs = ["connection_observer.cpp"], hdrs = ["connection_observer.h"], clang_format_enabled = False, + depend_on_what_you_use_enabled = False, deps = [ ":libcuttlefish_webrtc_adb_handler", ":libcuttlefish_webrtc_bluetooth_handler", @@ -164,6 +171,7 @@ cf_cc_library( srcs = ["cvd_video_frame_buffer.cpp"], hdrs = ["cvd_video_frame_buffer.h"], clang_format_enabled = False, + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:size_utils", "//cuttlefish/host/libs/screen_connector:video_frame_buffer", @@ -181,6 +189,7 @@ cf_cc_library( name = "libcuttlefish_webrtc_display_handler", srcs = ["display_handler.cpp"], hdrs = ["display_handler.h"], + depend_on_what_you_use_enabled = False, deps = [ ":libcuttlefish_webrtc_cvd_video_frame_buffer", ":libcuttlefish_webrtc_screenshot_handler", @@ -205,6 +214,7 @@ cf_cc_library( srcs = ["gpx_locations_handler.cpp"], hdrs = ["gpx_locations_handler.h"], clang_format_enabled = False, + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/libs/config:cuttlefish_config", "//cuttlefish/host/libs/location", @@ -225,6 +235,7 @@ cf_cc_library( srcs = ["kernel_log_events_handler.cpp"], hdrs = ["kernel_log_events_handler.h"], clang_format_enabled = False, + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/host/commands/kernel_log_monitor:kernel_log_monitor_utils", @@ -246,6 +257,7 @@ cf_cc_library( srcs = ["kml_locations_handler.cpp"], hdrs = ["kml_locations_handler.h"], clang_format_enabled = False, + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/libs/config:cuttlefish_config", "//cuttlefish/host/libs/location", @@ -265,6 +277,7 @@ cf_cc_library( srcs = ["location_handler.cpp"], hdrs = ["location_handler.h"], clang_format_enabled = False, + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/libs/config:cuttlefish_config", "//cuttlefish/host/libs/location", @@ -284,6 +297,7 @@ cf_cc_library( name = "libcuttlefish_webrtc_screenshot_handler", srcs = ["screenshot_handler.cpp"], hdrs = ["screenshot_handler.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/libs/screen_connector:video_frame_buffer", "//cuttlefish/posix:strerror", @@ -307,6 +321,7 @@ cf_cc_library( srcs = ["sensors_handler.cpp"], hdrs = ["sensors_handler.h"], clang_format_enabled = False, + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/sensors", "//cuttlefish/common/libs/transport", @@ -325,6 +340,7 @@ cf_cc_binary( srcs = [ "main.cpp", ], + depend_on_what_you_use_enabled = False, deps = [ ":libcuttlefish_webrtc_adb_handler", ":libcuttlefish_webrtc_audio_handler", diff --git a/base/cvd/cuttlefish/host/frontend/webrtc/libcommon/BUILD.bazel b/base/cvd/cuttlefish/host/frontend/webrtc/libcommon/BUILD.bazel index 3c848844063..bb0b32444c0 100644 --- a/base/cvd/cuttlefish/host/frontend/webrtc/libcommon/BUILD.bazel +++ b/base/cvd/cuttlefish/host/frontend/webrtc/libcommon/BUILD.bazel @@ -8,6 +8,7 @@ cf_cc_library( name = "audio_device", srcs = ["audio_device.cpp"], hdrs = ["audio_device.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/frontend/webrtc/libcommon:audio_source", "//libbase", @@ -24,6 +25,7 @@ cf_cc_library( name = "connection_controller", srcs = ["connection_controller.cpp"], hdrs = ["connection_controller.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:json", "//cuttlefish/host/frontend/webrtc/libcommon:peer_signaling_handler", @@ -64,6 +66,7 @@ cf_cc_library( name = "utils", srcs = ["utils.cpp"], hdrs = ["utils.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:json", "//cuttlefish/result", diff --git a/base/cvd/cuttlefish/host/frontend/webrtc/libdevice/BUILD.bazel b/base/cvd/cuttlefish/host/frontend/webrtc/libdevice/BUILD.bazel index d6e878366ed..5921b962830 100644 --- a/base/cvd/cuttlefish/host/frontend/webrtc/libdevice/BUILD.bazel +++ b/base/cvd/cuttlefish/host/frontend/webrtc/libdevice/BUILD.bazel @@ -7,6 +7,7 @@ package( cf_cc_library( name = "audio_frame_buffer", hdrs = ["audio_frame_buffer.h"], + depend_on_what_you_use_enabled = False, deps = [ "@libwebrtc", ], @@ -24,6 +25,7 @@ cf_cc_library( name = "audio_track_source_impl", srcs = ["audio_track_source_impl.cpp"], hdrs = ["audio_track_source_impl.h"], + depend_on_what_you_use_enabled = False, deps = [ ":audio_sink", "//cuttlefish/host/frontend/webrtc/libcommon:audio_source", @@ -34,6 +36,7 @@ cf_cc_library( cf_cc_library( name = "camera_controller", hdrs = ["camera_controller.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:json", "@jsoncpp", @@ -44,6 +47,7 @@ cf_cc_library( name = "camera_streamer", srcs = ["camera_streamer.cpp"], hdrs = ["camera_streamer.h"], + depend_on_what_you_use_enabled = False, deps = [ ":camera_controller", "//cuttlefish/common/libs/utils:json", @@ -61,6 +65,7 @@ cf_cc_library( srcs = ["client_handler.cpp"], hdrs = ["client_handler.h"], clang_format_enabled = False, + depend_on_what_you_use_enabled = False, deps = [ ":connection_observer", ":data_channels", @@ -78,6 +83,7 @@ cf_cc_library( cf_cc_library( name = "connection_observer", hdrs = ["connection_observer.h"], + depend_on_what_you_use_enabled = False, deps = [ ":camera_controller", ":lights_observer", @@ -92,6 +98,7 @@ cf_cc_library( srcs = ["data_channels.cpp"], hdrs = ["data_channels.h"], clang_format_enabled = False, + depend_on_what_you_use_enabled = False, deps = [ ":connection_observer", ":gamepad", @@ -111,6 +118,7 @@ cf_cc_library( name = "gamepad", srcs = ["gamepad.cpp"], hdrs = ["gamepad.h"], + depend_on_what_you_use_enabled = False, deps = [ "//libbase", ], @@ -120,6 +128,7 @@ cf_cc_library( name = "keyboard", srcs = ["keyboard.cpp"], hdrs = ["keyboard.h"], + depend_on_what_you_use_enabled = False, deps = [ "//libbase", ], @@ -129,6 +138,7 @@ cf_cc_library( name = "lights_observer", srcs = ["lights_observer.cpp"], hdrs = ["lights_observer.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:vsock_connection", "//libbase", @@ -141,6 +151,7 @@ cf_cc_library( name = "local_recorder", srcs = ["local_recorder.cpp"], hdrs = ["local_recorder.h"], + depend_on_what_you_use_enabled = False, linkopts = [ "-lopus", ], @@ -160,6 +171,7 @@ cf_cc_library( name = "recording_manager", srcs = ["recording_manager.cpp"], hdrs = ["recording_manager.h"], + depend_on_what_you_use_enabled = False, deps = [ ":local_recorder", "//cuttlefish/host/libs/config:cuttlefish_config", @@ -174,6 +186,7 @@ cf_cc_library( name = "server_connection", srcs = ["server_connection.cpp"], hdrs = ["server_connection.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:json", @@ -192,6 +205,7 @@ cf_cc_library( srcs = ["streamer.cpp"], hdrs = ["streamer.h"], clang_format_enabled = False, + depend_on_what_you_use_enabled = False, deps = [ ":audio_sink", ":audio_track_source_impl", diff --git a/base/cvd/cuttlefish/host/graphics_detector/BUILD.bazel b/base/cvd/cuttlefish/host/graphics_detector/BUILD.bazel index 08a88bc0b46..538ad118797 100644 --- a/base/cvd/cuttlefish/host/graphics_detector/BUILD.bazel +++ b/base/cvd/cuttlefish/host/graphics_detector/BUILD.bazel @@ -59,6 +59,7 @@ cf_cc_binary( "-DVULKAN_HPP_RAII_NO_EXCEPTIONS=1", "-Wno-module-import-in-extern-c", ], + depend_on_what_you_use_enabled = False, deps = [ ":graphics_detector_cc_proto", "//cuttlefish/host/graphics_detector/shaders:graphics_detector_shaders", diff --git a/base/cvd/cuttlefish/host/libs/audio_connector/BUILD.bazel b/base/cvd/cuttlefish/host/libs/audio_connector/BUILD.bazel index 11131a5d52e..0188c736e98 100644 --- a/base/cvd/cuttlefish/host/libs/audio_connector/BUILD.bazel +++ b/base/cvd/cuttlefish/host/libs/audio_connector/BUILD.bazel @@ -17,6 +17,7 @@ cf_cc_library( "server.h", "shm_layout.h", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:cf_endian", diff --git a/base/cvd/cuttlefish/host/libs/command_util/BUILD.bazel b/base/cvd/cuttlefish/host/libs/command_util/BUILD.bazel index 9ec7f321273..ae9013b1a26 100644 --- a/base/cvd/cuttlefish/host/libs/command_util/BUILD.bazel +++ b/base/cvd/cuttlefish/host/libs/command_util/BUILD.bazel @@ -28,6 +28,7 @@ cf_cc_library( "snapshot_utils.h", "util.h", ], + depend_on_what_you_use_enabled = False, deps = [ ":libcuttlefish_run_cvd_proto", "//cuttlefish/common/libs/fs", diff --git a/base/cvd/cuttlefish/host/libs/config/BUILD.bazel b/base/cvd/cuttlefish/host/libs/config/BUILD.bazel index ccb0b5b2e74..d23dfa782de 100644 --- a/base/cvd/cuttlefish/host/libs/config/BUILD.bazel +++ b/base/cvd/cuttlefish/host/libs/config/BUILD.bazel @@ -25,6 +25,7 @@ cf_cc_library( name = "config_flag", srcs = ["config_flag.cpp"], hdrs = ["config_flag.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/key_equals_value", "//cuttlefish/common/libs/utils:files", @@ -66,6 +67,7 @@ cf_cc_library( name = "config_utils", srcs = ["config_utils.cpp"], hdrs = ["config_utils.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:contains", "//cuttlefish/common/libs/utils:environment", @@ -111,6 +113,7 @@ cf_cc_library( "cuttlefish_config_instance.cpp", ], hdrs = ["cuttlefish_config.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:device_type", "//cuttlefish/common/libs/utils:environment", @@ -147,6 +150,7 @@ cf_cc_library( name = "data_image", srcs = ["data_image.cpp"], hdrs = ["data_image.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:files", @@ -182,6 +186,7 @@ cf_cc_library( name = "display", srcs = ["display.cpp"], hdrs = ["display.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:contains", "//cuttlefish/flag_parser", @@ -197,6 +202,7 @@ cf_cc_library( name = "esp", srcs = ["esp.cpp"], hdrs = ["esp.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:files", @@ -223,6 +229,7 @@ cf_cc_library( name = "build_archive", srcs = ["build_archive.cc"], hdrs = ["build_archive.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/host/libs/config:fetcher_config", @@ -264,6 +271,7 @@ cf_cc_library( name = "fetcher_configs", srcs = ["fetcher_configs.cc"], hdrs = ["fetcher_configs.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/host/libs/config:fetcher_config", @@ -331,6 +339,7 @@ cf_cc_library( name = "host_tools_version", srcs = ["host_tools_version.cpp"], hdrs = ["host_tools_version.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/host/libs/config:config_utils", @@ -344,6 +353,7 @@ cf_cc_library( name = "instance_nums", srcs = ["instance_nums.cpp"], hdrs = ["instance_nums.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:contains", "//cuttlefish/flag_parser", @@ -391,6 +401,7 @@ cf_cc_library( name = "logging", srcs = ["logging.cpp"], hdrs = ["logging.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:tee_logging", "//cuttlefish/host/libs/config:cuttlefish_config", @@ -417,6 +428,7 @@ cf_cc_library( name = "openwrt_args", srcs = ["openwrt_args.cpp"], hdrs = ["openwrt_args.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/commands/cvdalloc:interface", "//cuttlefish/host/libs/config:cuttlefish_config", @@ -429,6 +441,7 @@ cf_cc_library( name = "secure_hals", srcs = ["secure_hals.cpp"], hdrs = ["secure_hals.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/result", "//libbase", @@ -441,6 +454,7 @@ cf_cc_library( name = "touchpad", srcs = ["touchpad.cpp"], hdrs = ["touchpad.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:contains", "//cuttlefish/flag_parser", @@ -465,6 +479,7 @@ cf_cc_library( name = "media", srcs = ["media.cpp"], hdrs = ["media.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:contains", "//cuttlefish/flag_parser", diff --git a/base/cvd/cuttlefish/host/libs/config/adb/BUILD.bazel b/base/cvd/cuttlefish/host/libs/config/adb/BUILD.bazel index a8871479712..e10f8abcc15 100644 --- a/base/cvd/cuttlefish/host/libs/config/adb/BUILD.bazel +++ b/base/cvd/cuttlefish/host/libs/config/adb/BUILD.bazel @@ -14,6 +14,7 @@ cf_cc_library( "strings.cpp", ], hdrs = ["adb.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:container", "//cuttlefish/flag_parser", diff --git a/base/cvd/cuttlefish/host/libs/config/fastboot/BUILD.bazel b/base/cvd/cuttlefish/host/libs/config/fastboot/BUILD.bazel index 84a6907d3f5..d1a5f9f34cc 100644 --- a/base/cvd/cuttlefish/host/libs/config/fastboot/BUILD.bazel +++ b/base/cvd/cuttlefish/host/libs/config/fastboot/BUILD.bazel @@ -13,6 +13,7 @@ cf_cc_library( "launch.cpp", ], hdrs = ["fastboot.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/flag_parser", "//cuttlefish/host/commands/kernel_log_monitor:kernel_log_monitor_utils", diff --git a/base/cvd/cuttlefish/host/libs/confui/BUILD.bazel b/base/cvd/cuttlefish/host/libs/confui/BUILD.bazel index d15a214c373..a6d54b48b4c 100644 --- a/base/cvd/cuttlefish/host/libs/confui/BUILD.bazel +++ b/base/cvd/cuttlefish/host/libs/confui/BUILD.bazel @@ -71,6 +71,7 @@ cf_cc_library( "sign.h", "sign_utils.h", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/concurrency", "//cuttlefish/common/libs/confui:protocol", diff --git a/base/cvd/cuttlefish/host/libs/control_env/BUILD.bazel b/base/cvd/cuttlefish/host/libs/control_env/BUILD.bazel index 225a1e03341..3b427c86fbf 100644 --- a/base/cvd/cuttlefish/host/libs/control_env/BUILD.bazel +++ b/base/cvd/cuttlefish/host/libs/control_env/BUILD.bazel @@ -8,6 +8,7 @@ cf_cc_library( name = "control_env", srcs = ["grpc_service_handler.cc"], hdrs = ["grpc_service_handler.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:contains", "//cuttlefish/result", diff --git a/base/cvd/cuttlefish/host/libs/feature/BUILD.bazel b/base/cvd/cuttlefish/host/libs/feature/BUILD.bazel index a8d758ad9e9..bfbe880922a 100644 --- a/base/cvd/cuttlefish/host/libs/feature/BUILD.bazel +++ b/base/cvd/cuttlefish/host/libs/feature/BUILD.bazel @@ -12,6 +12,7 @@ cf_cc_library( "feature.h", "kernel_log_pipe_provider.h", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:type_name", diff --git a/base/cvd/cuttlefish/host/libs/image_aggregator/BUILD.bazel b/base/cvd/cuttlefish/host/libs/image_aggregator/BUILD.bazel index a08ed57cb9e..6d500a0489e 100644 --- a/base/cvd/cuttlefish/host/libs/image_aggregator/BUILD.bazel +++ b/base/cvd/cuttlefish/host/libs/image_aggregator/BUILD.bazel @@ -20,6 +20,7 @@ cf_cc_library( name = "composite_disk", srcs = ["composite_disk.cc"], hdrs = ["composite_disk.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/host/libs/image_aggregator:cdisk_spec_cc_proto", @@ -83,6 +84,7 @@ cf_cc_library( copts = COPTS + [ "-Wno-packed-non-pod", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:files", @@ -143,6 +145,7 @@ cf_cc_library( name = "super_builder", srcs = ["super_builder.cc"], hdrs = ["super_builder.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/host/libs/config:log_string_to_dir", diff --git a/base/cvd/cuttlefish/host/libs/location/BUILD.bazel b/base/cvd/cuttlefish/host/libs/location/BUILD.bazel index b7a889e1fb5..5062f749679 100644 --- a/base/cvd/cuttlefish/host/libs/location/BUILD.bazel +++ b/base/cvd/cuttlefish/host/libs/location/BUILD.bazel @@ -17,6 +17,7 @@ cf_cc_library( "GpxParser.h", "KmlParser.h", ], + depend_on_what_you_use_enabled = False, # `layering_check` conflicts with the combination of the clang prebuilt and # the cmake build rules used for @libxml2. features = ["-layering_check"], diff --git a/base/cvd/cuttlefish/host/libs/metrics/BUILD.bazel b/base/cvd/cuttlefish/host/libs/metrics/BUILD.bazel index da6c71478ce..860d174691e 100644 --- a/base/cvd/cuttlefish/host/libs/metrics/BUILD.bazel +++ b/base/cvd/cuttlefish/host/libs/metrics/BUILD.bazel @@ -143,6 +143,7 @@ cf_cc_library( name = "metrics", srcs = ["metrics_receiver.cc"], hdrs = ["metrics_receiver.h"], + depend_on_what_you_use_enabled = False, deps = [ ":metrics_headers", "//cuttlefish/common/libs/fs", @@ -161,6 +162,7 @@ cf_cc_library( name = "metrics_conversion", srcs = ["metrics_conversion.cc"], hdrs = ["metrics_conversion.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:host_info", "//cuttlefish/host/commands/cvd/fetch:builds", @@ -246,6 +248,7 @@ cf_cc_library( name = "metrics_writer", srcs = ["metrics_writer.cc"], hdrs = ["metrics_writer.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:files", diff --git a/base/cvd/cuttlefish/host/libs/msg_queue/BUILD.bazel b/base/cvd/cuttlefish/host/libs/msg_queue/BUILD.bazel index e28d906208f..ab91b73aec0 100644 --- a/base/cvd/cuttlefish/host/libs/msg_queue/BUILD.bazel +++ b/base/cvd/cuttlefish/host/libs/msg_queue/BUILD.bazel @@ -12,6 +12,7 @@ cf_cc_library( hdrs = [ "msg_queue.h", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/posix:strerror", "//libbase", diff --git a/base/cvd/cuttlefish/host/libs/screen_connector/BUILD.bazel b/base/cvd/cuttlefish/host/libs/screen_connector/BUILD.bazel index 900c763769f..db564736a26 100644 --- a/base/cvd/cuttlefish/host/libs/screen_connector/BUILD.bazel +++ b/base/cvd/cuttlefish/host/libs/screen_connector/BUILD.bazel @@ -8,6 +8,7 @@ cf_cc_library( name = "screen_connector_common", srcs = ["screen_connector_common.cc"], hdrs = ["screen_connector_common.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:size_utils", "//cuttlefish/host/libs/config:cuttlefish_config", @@ -38,6 +39,7 @@ cf_cc_library( "screen_connector_queue.h", "wayland_screen_connector.h", ], + depend_on_what_you_use_enabled = False, deps = [ ":screen_connector_common", ":video_frame_buffer", diff --git a/base/cvd/cuttlefish/host/libs/vm_manager/BUILD.bazel b/base/cvd/cuttlefish/host/libs/vm_manager/BUILD.bazel index 5fed797379d..1e90261fe9e 100644 --- a/base/cvd/cuttlefish/host/libs/vm_manager/BUILD.bazel +++ b/base/cvd/cuttlefish/host/libs/vm_manager/BUILD.bazel @@ -30,6 +30,7 @@ cf_cc_library( "vhost_user.h", "vm_manager.h", ], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:container", diff --git a/base/cvd/cuttlefish/host/libs/web/BUILD.bazel b/base/cvd/cuttlefish/host/libs/web/BUILD.bazel index 81c321bbb26..65a73e7b68f 100644 --- a/base/cvd/cuttlefish/host/libs/web/BUILD.bazel +++ b/base/cvd/cuttlefish/host/libs/web/BUILD.bazel @@ -10,6 +10,7 @@ cf_cc_library( name = "android_build", srcs = ["android_build.cc"], hdrs = ["android_build.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:environment", "//libbase", @@ -21,6 +22,7 @@ cf_cc_library( name = "android_build_api", srcs = ["android_build_api.cpp"], hdrs = ["android_build_api.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:contains", "//cuttlefish/common/libs/utils:environment", @@ -62,6 +64,7 @@ cf_cc_library( name = "android_build_string", srcs = ["android_build_string.cpp"], hdrs = ["android_build_string.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/flag_parser", "//cuttlefish/result", @@ -74,6 +77,7 @@ cf_cc_library( cf_cc_test( name = "android_build_string_test", srcs = ["android_build_string_tests.cpp"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/flag_parser", "//cuttlefish/host/libs/web:android_build_string", @@ -114,6 +118,7 @@ cf_cc_library( name = "android_build_url", srcs = ["android_build_url.cpp"], hdrs = ["android_build_url.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/libs/web/http_client:url_escape", "//cuttlefish/result", @@ -151,6 +156,7 @@ cf_cc_library( name = "caching_build_api", srcs = ["caching_build_api.cpp"], hdrs = ["caching_build_api.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/host/libs/web:android_build", @@ -174,6 +180,7 @@ cf_cc_library( name = "chrome_os_build_string", srcs = ["chrome_os_build_string.cpp"], hdrs = ["chrome_os_build_string.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/flag_parser", "//cuttlefish/result", @@ -187,6 +194,7 @@ cf_cc_library( name = "credential_source", srcs = ["credential_source.cc"], hdrs = ["credential_source.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:base64", "//cuttlefish/common/libs/utils:json", @@ -205,6 +213,7 @@ cf_cc_library( name = "luci_build_api", srcs = ["luci_build_api.cpp"], hdrs = ["luci_build_api.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:json", "//cuttlefish/host/libs/web:chrome_os_build_string", diff --git a/base/cvd/cuttlefish/host/libs/web/cas/BUILD.bazel b/base/cvd/cuttlefish/host/libs/web/cas/BUILD.bazel index 07db9c9b8bc..f03b53f243b 100644 --- a/base/cvd/cuttlefish/host/libs/web/cas/BUILD.bazel +++ b/base/cvd/cuttlefish/host/libs/web/cas/BUILD.bazel @@ -8,6 +8,7 @@ cf_cc_library( name = "cas_downloader", srcs = ["cas_downloader.cpp"], hdrs = ["cas_downloader.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:environment", @@ -28,6 +29,7 @@ cf_cc_library( cf_cc_test( name = "cas_downloader_test", srcs = ["cas_downloader_test.cpp"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/flag_parser", @@ -44,6 +46,7 @@ cf_cc_test( cf_cc_test( name = "cas_flags_test", srcs = ["cas_flags_test.cpp"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/host/libs/web/cas:cas_flags", @@ -55,6 +58,7 @@ cf_cc_library( name = "cas_flags", srcs = ["cas_flags.cc"], hdrs = ["cas_flags.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/flag_parser", diff --git a/base/cvd/cuttlefish/host/libs/web/http_client/BUILD.bazel b/base/cvd/cuttlefish/host/libs/web/http_client/BUILD.bazel index 67b99371bcb..b5596884673 100644 --- a/base/cvd/cuttlefish/host/libs/web/http_client/BUILD.bazel +++ b/base/cvd/cuttlefish/host/libs/web/http_client/BUILD.bazel @@ -15,6 +15,7 @@ cf_cc_library( name = "curl_http_client", srcs = ["curl_http_client.cc"], hdrs = ["curl_http_client.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/libs/web/http_client", "//cuttlefish/host/libs/web/http_client:scrub_secrets", @@ -53,6 +54,7 @@ cf_cc_library( name = "http_client", srcs = ["http_client.cc"], hdrs = ["http_client.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/result", "@fmt", @@ -64,6 +66,7 @@ cf_cc_library( name = "http_file", srcs = ["http_file.cc"], hdrs = ["http_file.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/fs:shared_fd_stream", @@ -79,6 +82,7 @@ cf_cc_library( name = "http_json", srcs = ["http_json.cc"], hdrs = ["http_json.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:json", "//cuttlefish/host/libs/web/http_client", @@ -119,6 +123,7 @@ cf_cc_library( cf_cc_test( name = "scrub_secrets_test", srcs = ["scrub_secrets_test.cc"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/libs/web/http_client:scrub_secrets", "@jsoncpp", diff --git a/base/cvd/cuttlefish/host/libs/zip/BUILD.bazel b/base/cvd/cuttlefish/host/libs/zip/BUILD.bazel index c05bc045232..534da4712ac 100644 --- a/base/cvd/cuttlefish/host/libs/zip/BUILD.bazel +++ b/base/cvd/cuttlefish/host/libs/zip/BUILD.bazel @@ -10,6 +10,7 @@ cf_cc_library( name = "buffered_zip_source", srcs = ["buffered_zip_source.cc"], hdrs = ["buffered_zip_source.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/libs/zip/libzip_cc:seekable_source", "//cuttlefish/host/libs/zip/libzip_cc:source_callback", @@ -52,6 +53,7 @@ cf_cc_library( cf_cc_test( name = "cached_zip_source_test", srcs = ["cached_zip_source_test.cc"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/host/libs/zip:cached_zip_source", @@ -66,6 +68,7 @@ cf_cc_library( name = "remote_zip", srcs = ["remote_zip.cc"], hdrs = ["remote_zip.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/host/libs/web/http_client", "//cuttlefish/host/libs/zip/libzip_cc:seekable_source", @@ -100,6 +103,7 @@ cf_cc_library( name = "zip_file", srcs = ["zip_file.cc"], hdrs = ["zip_file.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/utils:files", "//cuttlefish/host/libs/zip/libzip_cc:archive", diff --git a/base/cvd/cuttlefish/host/libs/zip/libzip_cc/BUILD.bazel b/base/cvd/cuttlefish/host/libs/zip/libzip_cc/BUILD.bazel index c78bdf04bd9..5efc4b66f24 100644 --- a/base/cvd/cuttlefish/host/libs/zip/libzip_cc/BUILD.bazel +++ b/base/cvd/cuttlefish/host/libs/zip/libzip_cc/BUILD.bazel @@ -10,6 +10,7 @@ cf_cc_library( name = "archive", srcs = ["archive.cc"], hdrs = ["archive.h"], + depend_on_what_you_use_enabled = False, features = ["-layering_check"], # libzip linkopts = ["-llzma"], # libzip linkstatic = True, # libzip @@ -32,6 +33,7 @@ cf_cc_library( name = "error", srcs = ["error.cc"], hdrs = ["error.h"], + depend_on_what_you_use_enabled = False, features = ["-layering_check"], # libzip linkopts = ["-llzma"], # libzip linkstatic = True, # libzip @@ -45,6 +47,7 @@ cf_cc_library( cf_cc_library( name = "managed", hdrs = ["managed.h"], + depend_on_what_you_use_enabled = False, features = ["-layering_check"], # libzip linkopts = ["-llzma"], # libzip linkstatic = True, # libzip @@ -56,6 +59,7 @@ cf_cc_library( name = "readable_source", srcs = ["readable_source.cc"], hdrs = ["readable_source.h"], + depend_on_what_you_use_enabled = False, features = ["-layering_check"], # libzip linkopts = ["-llzma"], # libzip linkstatic = True, # libzip @@ -75,6 +79,7 @@ cf_cc_library( name = "seekable_source", srcs = ["seekable_source.cc"], hdrs = ["seekable_source.h"], + depend_on_what_you_use_enabled = False, features = ["-layering_check"], # libzip linkopts = ["-llzma"], # libzip linkstatic = True, # libzip @@ -105,6 +110,7 @@ cf_cc_library( name = "writable_source", srcs = ["writable_source.cc"], hdrs = ["writable_source.h"], + depend_on_what_you_use_enabled = False, features = ["-layering_check"], # libzip linkopts = ["-llzma"], # libzip linkstatic = True, # libzip diff --git a/base/cvd/cuttlefish/io/BUILD.bazel b/base/cvd/cuttlefish/io/BUILD.bazel index aec25d720eb..323f95d16b6 100644 --- a/base/cvd/cuttlefish/io/BUILD.bazel +++ b/base/cvd/cuttlefish/io/BUILD.bazel @@ -101,6 +101,7 @@ cf_cc_library( cf_cc_test( name = "cpio_test", srcs = ["cpio_test.cc"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/io", "//cuttlefish/io:cpio", @@ -130,6 +131,7 @@ cf_cc_library( name = "disjoint_range_set", srcs = ["disjoint_range_set.cc"], hdrs = ["disjoint_range_set.h"], + depend_on_what_you_use_enabled = False, deps = [ "//libbase", "@abseil-cpp//absl/log:check", @@ -208,6 +210,7 @@ cf_cc_library( cf_cc_test( name = "in_memory_test", srcs = ["in_memory_test.cc"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/io", "//cuttlefish/io:in_memory", @@ -281,6 +284,7 @@ cf_cc_library( cf_cc_test( name = "lz4_legacy_test", srcs = ["lz4_legacy_test.cc"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/io", "//cuttlefish/io:filesystem", @@ -335,6 +339,7 @@ cf_cc_library( cf_cc_test( name = "read_window_view_test", srcs = ["read_window_view_test.cc"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/io", "//cuttlefish/io:in_memory", @@ -359,6 +364,7 @@ cf_cc_library( cf_cc_test( name = "serialize_disjoint_range_set_test", srcs = ["serialize_disjoint_range_set_test.cc"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/io:disjoint_range_set", "//cuttlefish/io:serialize_disjoint_range_set", diff --git a/base/cvd/cuttlefish/pretty/BUILD.bazel b/base/cvd/cuttlefish/pretty/BUILD.bazel index 616f35c2048..3e978a0b65c 100644 --- a/base/cvd/cuttlefish/pretty/BUILD.bazel +++ b/base/cvd/cuttlefish/pretty/BUILD.bazel @@ -50,6 +50,7 @@ cf_cc_test( cf_cc_library( name = "map", hdrs = ["map.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/pretty", "//cuttlefish/pretty:container", @@ -92,6 +93,7 @@ cf_cc_library( cf_cc_test( name = "pretty_test", srcs = ["pretty_test.cc"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/pretty", "//cuttlefish/pretty:map", @@ -150,6 +152,7 @@ cf_cc_library( cf_cc_test( name = "struct_test", srcs = ["struct_test.cc"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/pretty:string", "//cuttlefish/pretty:struct", diff --git a/base/cvd/cuttlefish/pretty/liblp/BUILD.bazel b/base/cvd/cuttlefish/pretty/liblp/BUILD.bazel index 1abacecfb14..14da8afa12c 100644 --- a/base/cvd/cuttlefish/pretty/liblp/BUILD.bazel +++ b/base/cvd/cuttlefish/pretty/liblp/BUILD.bazel @@ -8,6 +8,7 @@ cf_cc_library( name = "builder", srcs = ["builder.cc"], hdrs = ["builder.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/pretty", "//cuttlefish/pretty:string", @@ -35,6 +36,7 @@ cf_cc_library( name = "metadata_format", srcs = ["metadata_format.cc"], hdrs = ["metadata_format.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/pretty", "//cuttlefish/pretty:string", diff --git a/base/cvd/cuttlefish/process/BUILD.bazel b/base/cvd/cuttlefish/process/BUILD.bazel index 244cb7bd7a1..aec9514d500 100644 --- a/base/cvd/cuttlefish/process/BUILD.bazel +++ b/base/cvd/cuttlefish/process/BUILD.bazel @@ -10,6 +10,7 @@ cf_cc_library( name = "command_subprocess", srcs = ["command_subprocess.cc"], hdrs = ["command_subprocess.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/common/libs/utils:contains", @@ -26,6 +27,7 @@ cf_cc_library( name = "managed_stdio", srcs = ["managed_stdio.cc"], hdrs = ["managed_stdio.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/common/libs/fs", "//cuttlefish/process:command_subprocess", diff --git a/base/cvd/cuttlefish/result/BUILD.bazel b/base/cvd/cuttlefish/result/BUILD.bazel index 0db557a3d99..cd289ff7edc 100644 --- a/base/cvd/cuttlefish/result/BUILD.bazel +++ b/base/cvd/cuttlefish/result/BUILD.bazel @@ -8,6 +8,7 @@ cf_cc_library( name = "error_type", srcs = ["error_type.cc"], hdrs = ["error_type.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/ansi_codes", "//cuttlefish/ansi_codes:should_color", @@ -21,6 +22,7 @@ cf_cc_library( cf_cc_library( name = "expect", hdrs = ["expect.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/result:error_type", "//cuttlefish/result:result_type", @@ -42,6 +44,7 @@ cf_cc_library( cf_cc_test( name = "result_test", srcs = ["result_test.cpp"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/result", "//cuttlefish/result:result_matchers", @@ -52,6 +55,7 @@ cf_cc_test( cf_cc_library( name = "result_type", hdrs = ["result_type.h"], + depend_on_what_you_use_enabled = False, deps = [ "//cuttlefish/result:error_type", "//libbase",