vm_tools: Add dependency from arc/arc.proto
ARC VM and container share some parameters passed by Chrome. Refactoring
to allow reusing the message defined in arc.proto.
BUG=b:227151310
TEST=cros_run_unit_tests --board hatch --packages vm_host_tools
Change-Id: I9352feced522bc8b3632a79f1b82042f275439a5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/3782480
Reviewed-by: Ryo Hashimoto <hashimoto@chromium.org>
Tested-by: Bryan Yu <yuholong@google.com>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Nicholas Verne <nverne@chromium.org>
Commit-Queue: Bryan Yu <yuholong@google.com>
NOKEYCHECK=True
GitOrigin-RevId: 01dd1ac2f74765b6f3529fffdc0f420340f1321a
diff --git a/build.rs b/build.rs
index 6461b89..1b536a0 100644
--- a/build.rs
+++ b/build.rs
@@ -76,6 +76,7 @@
// When adding additional protos, remember to include the source project and subtree in the
// ebuild. Otherwise, the source files will not be accessible when building dev-rust/system_api.
const PROTOS_TO_GENERATE: &[(&str, &str)] = &[
+ ("arc", "system_api/dbus/arc/arc.proto"),
(
"auth_factor",
"system_api/dbus/cryptohome/auth_factor.proto",
@@ -115,11 +116,13 @@
for (module, input_path) in protos {
let input_path = source_dir.join(input_path);
let input_dir = input_path.parent().unwrap();
+ let parent_input_dir = source_dir.join("system_api/dbus");
// Invoke protobuf compiler.
protoc_rust::Codegen::new()
.input(input_path.as_os_str().to_str().unwrap())
.include(input_dir.as_os_str().to_str().unwrap())
+ .include(parent_input_dir)
.out_dir(&out_dir)
.run()
.expect("protoc");