Skip to content

Commit

Permalink
pw_rust: Place top level rules into a group within pw_rust
Browse files Browse the repository at this point in the history
Change-Id: I8e8af418660483b2339bb0be9484911e5cb618ca
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/138332
Commit-Queue: Faraaz Sareshwala <[email protected]>
Reviewed-by: Taylor Cramer <[email protected]>
  • Loading branch information
fsareshwala authored and CQ Bot Account committed Jun 3, 2023
1 parent 8dc3f4c commit ce3e128
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
7 changes: 1 addition & 6 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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)" ]
}
}

Expand Down
9 changes: 9 additions & 0 deletions pw_rust/examples/host_executable/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ce3e128

Please sign in to comment.