diff options
author | David Duarte <licorne@google.com> | 2022-08-12 19:05:00 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2022-08-12 19:05:00 +0000 |
commit | a60a871a764023ac022428bfda441ecf6caac6ca (patch) | |
tree | 4cae7b89aab713752af9f0088c4047268053be73 | |
parent | 5c311c63ccdce8085d57a3de63ab9357aeb33b96 (diff) | |
parent | a31d407149b72fec52d4cb705b7a0fc605834949 (diff) | |
download | bt-test-interfaces-a60a871a764023ac022428bfda441ecf6caac6ca.tar.gz |
Add Android build file am: 1a3f594b9d am: 789e8cfb07 am: 0aa46a048f am: a31d407149
Original change: https://android-review.googlesource.com/c/platform/external/pandora/bt-test-interfaces/+/2182639
Change-Id: I29c979ef5fcea219d8f70ee20f903d38ccac82d4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | Android.bp | 38 | ||||
l--------- | python/_build/protoc-gen-custom_grpc.py | 1 |
2 files changed, 39 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..1dd9f1e --- /dev/null +++ b/Android.bp @@ -0,0 +1,38 @@ +python_binary_host { + name: "protoc-gen-custom_grpc", + main: "python/_build/protoc-gen-custom_grpc.py", + srcs: ["python/_build/protoc-gen-custom_grpc.py"], + libs: ["libprotobuf-python"], +} + +genrule { + name: "pandora-python-src", + tools: [ + "aprotoc", + "protoc-gen-custom_grpc" + ], + cmd: "$(location aprotoc)" + + " -Iexternal/pandora/bt-test-interfaces" + + " -Iexternal/protobuf/src" + + " --plugin=protoc-gen-grpc=$(location protoc-gen-custom_grpc)" + + " --grpc_out=$(genDir)" + + " --python_out=$(genDir)" + + " $(in)", + srcs: [ + "pandora/a2dp.proto", + "pandora/host.proto", + ], + out: [ + "pandora/a2dp_grpc.py", + "pandora/a2dp_pb2.py", + "pandora/host_grpc.py", + "pandora/host_pb2.py", + ] +} + +python_library_host { + name: "pandora-python", + srcs: [ + ":pandora-python-src", + ], +} diff --git a/python/_build/protoc-gen-custom_grpc.py b/python/_build/protoc-gen-custom_grpc.py new file mode 120000 index 0000000..88d6a75 --- /dev/null +++ b/python/_build/protoc-gen-custom_grpc.py @@ -0,0 +1 @@ +protoc-gen-custom_grpc
\ No newline at end of file |