summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCole Faust <colefaust@google.com>2023-10-30 23:16:19 +0000
committerCole Faust <colefaust@google.com>2023-10-31 16:29:12 +0000
commitac1312877ad748a89b9b841d43c46338947eee54 (patch)
treea1d2a7a55b9cac5371c1f8ffd08e286c1bd5c286
parent88d6925f579a8319b3f7ee0f5fb64eb86d2aaa85 (diff)
downloadtrout-ac1312877ad748a89b9b841d43c46338947eee54.tar.gz
Declare inputs for AudioFocusControlProtoStub_cc/h
So that they can be used with sandboxing. Test: m AudioFocusControlProtoStub_cc AudioFocusControlProtoStub_h (cherry picked from https://android-review.googlesource.com/q/commit:5102534d1199a68b2c43273b96acea64d1e140ce) Merged-In: Id5a6a2f2d51ca8a965e8f638a0c8605b2fcb4249 Change-Id: Id5a6a2f2d51ca8a965e8f638a0c8605b2fcb4249 (cherry picked from commit e60506538a412e0a84c4346fee4a762ceabd1254)
-rw-r--r--hal/audiocontrol/aidl/1.0/Android.bp6
1 files changed, 4 insertions, 2 deletions
diff --git a/hal/audiocontrol/aidl/1.0/Android.bp b/hal/audiocontrol/aidl/1.0/Android.bp
index 093a8eb..7746c3f 100644
--- a/hal/audiocontrol/aidl/1.0/Android.bp
+++ b/hal/audiocontrol/aidl/1.0/Android.bp
@@ -36,9 +36,10 @@ genrule {
"aprotoc",
"protoc-gen-grpc-cpp-plugin",
],
- cmd: "$(location aprotoc) -I$$(dirname $(in)) -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/AudioFocusControl.proto)) -Iexternal/protobuf/src --plugin=protoc-gen-grpc=$(location protoc-gen-grpc-cpp-plugin) $(location proto/AudioFocusControl.proto) --grpc_out=$(genDir) --cpp_out=$(genDir)",
srcs: [
"proto/AudioFocusControl.proto",
+ ":libprotobuf-internal-protos",
],
out: [
"AudioFocusControl.pb.h",
@@ -52,9 +53,10 @@ genrule {
"aprotoc",
"protoc-gen-grpc-cpp-plugin",
],
- cmd: "$(location aprotoc) -I$$(dirname $(in)) -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/AudioFocusControl.proto)) -Iexternal/protobuf/src --plugin=protoc-gen-grpc=$(location protoc-gen-grpc-cpp-plugin) $(location proto/AudioFocusControl.proto) --grpc_out=$(genDir) --cpp_out=$(genDir)",
srcs: [
"proto/AudioFocusControl.proto",
+ ":libprotobuf-internal-protos",
],
out: [
"AudioFocusControl.pb.cc",