diff options
author | Cole Faust <colefaust@google.com> | 2023-11-20 14:31:42 -0800 |
---|---|---|
committer | Cole Faust <colefaust@google.com> | 2023-11-20 14:41:58 -0800 |
commit | ff5424763b408a394fe80d7fb09909e748114d09 (patch) | |
tree | 27fc1d7d508fa4a44e093eb15992339cda843d03 | |
parent | 2a768420fc5c9cab6d5bce0b08bfc5a3aa56d345 (diff) | |
download | trout-ff5424763b408a394fe80d7fb09909e748114d09.tar.gz |
Sandbox trout genrules
go/roboleaf-busy-beavers-sandboxing
Bug: 307824623
Test: ./build/soong/tests/genrule_sandbox_test.py TracingVMProtoStub_cc TracingVMProtoStub_h VehicleServerProtoStub_cc@default-grpc VehicleServerProtoStub_cc@2.0-grpc-trout VehicleServerProtoStub_h@2.0-grpc-trout VehicleServerProtoStub_h@default-grpc
Change-Id: I4f7b3fde2c97f86ab5b40d555c298969432ac63c
-rw-r--r-- | hal/vehicle/2.0/Android.bp | 8 | ||||
-rw-r--r-- | tools/tracing/proto/Android.bp | 6 |
2 files changed, 10 insertions, 4 deletions
diff --git a/hal/vehicle/2.0/Android.bp b/hal/vehicle/2.0/Android.bp index ba39666..d593231 100644 --- a/hal/vehicle/2.0/Android.bp +++ b/hal/vehicle/2.0/Android.bp @@ -65,9 +65,11 @@ genrule { "aprotoc", "protoc-gen-grpc-cpp-plugin", ], - cmd: "$(location aprotoc) -I$$(dirname $(in)) -Ihardware/interfaces/automotive/vehicle/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/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", + ":vhal-proto-src", + ":libprotobuf-internal-protos", ], out: [ "VehicleServer.pb.h", @@ -81,9 +83,11 @@ genrule { "aprotoc", "protoc-gen-grpc-cpp-plugin", ], - cmd: "$(location aprotoc) -I$$(dirname $(in)) -Ihardware/interfaces/automotive/vehicle/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/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", + ":vhal-proto-src", + ":libprotobuf-internal-protos", ], out: [ "VehicleServer.pb.cc", diff --git a/tools/tracing/proto/Android.bp b/tools/tracing/proto/Android.bp index 1ac8d77..7093ddd 100644 --- a/tools/tracing/proto/Android.bp +++ b/tools/tracing/proto/Android.bp @@ -24,9 +24,10 @@ genrule { "aprotoc", "protoc-gen-grpc-cpp-plugin", ], - cmd: "$(location aprotoc) -I$$(dirname $(in)) --plugin=protoc-gen-grpc=$(location protoc-gen-grpc-cpp-plugin) $(in) --grpc_out=$(genDir) --cpp_out=$(genDir)", + cmd: "$(location aprotoc) -I$$(dirname $(location TracingVM.proto)) --plugin=protoc-gen-grpc=$(location protoc-gen-grpc-cpp-plugin) $(location TracingVM.proto) --grpc_out=$(genDir) --cpp_out=$(genDir)", srcs: [ "TracingVM.proto", + "perfetto_trace.proto", ], out: [ "TracingVM.pb.h", @@ -40,9 +41,10 @@ genrule { "aprotoc", "protoc-gen-grpc-cpp-plugin", ], - cmd: "$(location aprotoc) -I$$(dirname $(in)) --plugin=protoc-gen-grpc=$(location protoc-gen-grpc-cpp-plugin) $(in) --grpc_out=$(genDir) --cpp_out=$(genDir)", + cmd: "$(location aprotoc) -I$$(dirname $(location TracingVM.proto)) --plugin=protoc-gen-grpc=$(location protoc-gen-grpc-cpp-plugin) $(location TracingVM.proto) --grpc_out=$(genDir) --cpp_out=$(genDir)", srcs: [ "TracingVM.proto", + "perfetto_trace.proto", ], out: [ "TracingVM.pb.cc", |