From 17f10e302dae8911cd245f067a28ee1a2515e7d1 Mon Sep 17 00:00:00 2001 From: Chan Wang Date: Fri, 16 Aug 2024 04:16:29 +0000 Subject: [PATCH] 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 --- automotive/vehicle/aidl/impl/proto/Android.bp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/automotive/vehicle/aidl/impl/proto/Android.bp b/automotive/vehicle/aidl/impl/proto/Android.bp index b2edf753b8..1d35e0c2cc 100644 --- a/automotive/vehicle/aidl/impl/proto/Android.bp +++ b/automotive/vehicle/aidl/impl/proto/Android.bp @@ -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", + ], +}