diff --git device/bluetooth/BUILD.gn device/bluetooth/BUILD.gn index 5e9f447e4d946..64450c1a1f48e 100644 --- device/bluetooth/BUILD.gn +++ device/bluetooth/BUILD.gn @@ -46,10 +46,12 @@ source_set("deprecated_experimental_mojo") { ] if (is_chromeos || is_linux) { - sources += [ - "bluez/metrics_recorder.cc", - "bluez/metrics_recorder.h", - ] + if (is_component_build) { + sources += [ + "bluez/metrics_recorder.cc", + "bluez/metrics_recorder.h", + ] + } } deps = [