aboutsummaryrefslogtreecommitdiff
path: root/pw_rust/examples/host_executable/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'pw_rust/examples/host_executable/BUILD.gn')
-rw-r--r--pw_rust/examples/host_executable/BUILD.gn29
1 files changed, 29 insertions, 0 deletions
diff --git a/pw_rust/examples/host_executable/BUILD.gn b/pw_rust/examples/host_executable/BUILD.gn
index fca1f74e1..e4cc00c8b 100644
--- a/pw_rust/examples/host_executable/BUILD.gn
+++ b/pw_rust/examples/host_executable/BUILD.gn
@@ -16,12 +16,31 @@ import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
+group("host_executable") {
+ deps = [
+ ":hello",
+ ":proc_macro",
+ ":test_hello",
+ ":test_proc_macro",
+ ]
+}
+
pw_rust_executable("hello") {
sources = [
"main.rs",
"other.rs",
]
+ deps = [
+ ":a",
+ ":c",
+ ]
+}
+pw_rust_test("test_hello") {
+ sources = [
+ "main.rs",
+ "other.rs",
+ ]
deps = [
":a",
":c",
@@ -46,3 +65,13 @@ pw_rust_library("c") {
crate_root = "c/lib.rs"
sources = [ "c/lib.rs" ]
}
+
+pw_rust_proc_macro("proc_macro") {
+ crate_root = "proc_macro/lib.rs"
+ sources = [ "proc_macro/lib.rs" ]
+}
+
+pw_rust_test("test_proc_macro") {
+ sources = [ "proc_macro/test.rs" ]
+ deps = [ ":proc_macro" ]
+}