From 52d7446074f7616485f1c428eb0dfbb98e422ecd Mon Sep 17 00:00:00 2001 From: Cole Faust Date: Mon, 20 Nov 2023 14:35:58 -0800 Subject: [PATCH] Sandbox VehicleServerProtoStub_cc/h@default-grpc go/roboleaf-busy-beavers-sandboxing Bug: 307824623 Test: ./build/soong/tests/genrule_sandbox_test.py VehicleServerProtoStub_cc@default-grpc VehicleServerProtoStub_h@default-grpc Change-Id: I35d56c909e5eda8bc337f7f994e669fb8e3c9cb0 --- automotive/vehicle/aidl/impl/grpc/Android.bp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/automotive/vehicle/aidl/impl/grpc/Android.bp b/automotive/vehicle/aidl/impl/grpc/Android.bp index 06c9600100..e5106f8da3 100644 --- a/automotive/vehicle/aidl/impl/grpc/Android.bp +++ b/automotive/vehicle/aidl/impl/grpc/Android.bp @@ -22,9 +22,11 @@ genrule { "aprotoc", "protoc-gen-grpc-cpp-plugin", ], - cmd: "$(location aprotoc) -I$$(dirname $(in)) -Ihardware/interfaces/automotive/vehicle/aidl/impl/proto -Iexternal/protobuf/src --plugin=protoc-gen-grpc=$(location protoc-gen-grpc-cpp-plugin) $(in) --grpc_out=$(genDir) --cpp_out=$(genDir)", + cmd: "$(location aprotoc) -I$$(dirname $(location proto/VehicleServer.proto)) -Ihardware/interfaces/automotive/vehicle/aidl/impl/proto -Iexternal/protobuf/src --plugin=protoc-gen-grpc=$(location protoc-gen-grpc-cpp-plugin) $(location proto/VehicleServer.proto) --grpc_out=$(genDir) --cpp_out=$(genDir)", srcs: [ "proto/VehicleServer.proto", + ":libprotobuf-internal-protos", + ":VehicleHalProtoFiles", ], out: [ "VehicleServer.pb.h", @@ -39,9 +41,11 @@ genrule { "aprotoc", "protoc-gen-grpc-cpp-plugin", ], - cmd: "$(location aprotoc) -I$$(dirname $(in)) -Ihardware/interfaces/automotive/vehicle/aidl/impl/proto -Iexternal/protobuf/src --plugin=protoc-gen-grpc=$(location protoc-gen-grpc-cpp-plugin) $(in) --grpc_out=$(genDir) --cpp_out=$(genDir)", + cmd: "$(location aprotoc) -I$$(dirname $(location proto/VehicleServer.proto)) -Ihardware/interfaces/automotive/vehicle/aidl/impl/proto -Iexternal/protobuf/src --plugin=protoc-gen-grpc=$(location protoc-gen-grpc-cpp-plugin) $(location proto/VehicleServer.proto) --grpc_out=$(genDir) --cpp_out=$(genDir)", srcs: [ "proto/VehicleServer.proto", + ":libprotobuf-internal-protos", + ":VehicleHalProtoFiles", ], out: [ "VehicleServer.pb.cc",