diff --git a/BUILD.gn b/BUILD.gn index e280b4e839ef8d246fd63b55fb775485891a17c1..51b44383572123cad31fcc422652225d748ba0d1 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -24,6 +24,9 @@ group("all") { deps = [ "//bt/system:all" ] } -group("tools") { - deps = [ "//bt/system:tools" ] +# Tools should be built for the host target. +if (host_cpu == target_cpu && host_os == target_os) { + group("tools") { + deps = [ "//bt/system:tools" ] + } } diff --git a/system/BUILD.gn b/system/BUILD.gn index 266f0fc3dd22ee46197127143810e8eced5b4e64..490ceb77953dd3566403ddd4e76c02e5a676798a 100644 --- a/system/BUILD.gn +++ b/system/BUILD.gn @@ -53,13 +53,11 @@ group("bluetooth") { #} #} -if (host_cpu == target_cpu && host_os == target_os) { - group("tools") { - deps = [ - "//bt/system/gd/dumpsys/bundler:bluetooth_flatbuffer_bundler", - "//bt/system/gd/packet/parser:bluetooth_packetgen", - ] - } +group("tools") { + deps = [ + "//bt/system/gd/dumpsys/bundler:bluetooth_flatbuffer_bundler", + "//bt/system/gd/packet/parser:bluetooth_packetgen", + ] } if (defined(use.android) && use.android) {