Add Rust target for VehicleHalProtos

In our project we integrate vehicle properties definition and reused some of the existing message types (`VehiclePropConfig` and `VehicleAreaConfig`), so we need to depend on a Rust target of the protos.

Bug: 346786677

Test: m
Change-Id: If99f1763e38a9f8bb0ac4dd9ba5e1bee22cc54a7
This commit is contained in:
Chan Wang
2024-08-16 04:16:29 +00:00
parent f9cb9d0e16
commit 17f10e302d

View File

@@ -106,3 +106,17 @@ cc_library_static {
"-Wno-unused-parameter",
],
}
rust_protobuf {
name: "libvehicle_hal_property_protos",
crate_name: "vehicle_hal_property_protos",
protos: [":VehicleHalProtoFiles"],
source_stem: "vehicle_hal_property_protos",
host_supported: true,
vendor_available: true,
product_available: true,
exported_include_dirs: ["."],
proto_flags: [
"-I external/protobuf/src",
],
}