From ce3e1280fcac0461258874eea3e917f6b30be573 Mon Sep 17 00:00:00 2001 From: Faraaz Sareshwala Date: Sat, 3 Jun 2023 04:56:59 +0000 Subject: [PATCH] pw_rust: Place top level rules into a group within pw_rust Change-Id: I8e8af418660483b2339bb0be9484911e5cb618ca Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/138332 Commit-Queue: Faraaz Sareshwala Reviewed-by: Taylor Cramer --- BUILD.gn | 7 +------ pw_rust/examples/host_executable/BUILD.gn | 9 +++++++++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 74728853d5..a2717b709d 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -409,12 +409,7 @@ group("host_tools") { ] if (pw_rust_ENABLE_EXPERIMENTAL_BUILD) { - deps += [ - "$dir_pw_rust/examples/host_executable:hello($dir_pigweed/targets/host:host_clang_debug)", - "$dir_pw_rust/examples/host_executable:proc_macro($dir_pigweed/targets/host:host_clang_debug)", - "$dir_pw_rust/examples/host_executable:test_hello($dir_pigweed/targets/host:host_clang_debug)", - "$dir_pw_rust/examples/host_executable:test_proc_macro($dir_pigweed/targets/host:host_clang_debug)", - ] + deps += [ "$dir_pw_rust/examples/host_executable:host_executable($dir_pigweed/targets/host:host_clang_debug)" ] } } diff --git a/pw_rust/examples/host_executable/BUILD.gn b/pw_rust/examples/host_executable/BUILD.gn index 899b49a18a..73d8dec314 100644 --- a/pw_rust/examples/host_executable/BUILD.gn +++ b/pw_rust/examples/host_executable/BUILD.gn @@ -16,6 +16,15 @@ import("//build_overrides/pigweed.gni") import("$dir_pw_build/target_types.gni") +group("host_executable") { + deps = [ + ":hello", + ":proc_macro", + ":test_hello", + ":test_proc_macro", + ] +} + hello_sources = [ "main.rs", "other.rs",