Bob Badour | abbd5c6 | 2022-08-18 10:45:29 -0700 | [diff] [blame^] | 1 | package { |
| 2 | default_applicable_licenses: [ |
| 3 | "external_pandora_bt-test-interfaces_license", |
| 4 | ], |
| 5 | } |
| 6 | |
| 7 | // Added automatically by a large-scale-change |
| 8 | // See: http://go/android-license-faq |
| 9 | license { |
| 10 | name: "external_pandora_bt-test-interfaces_license", |
| 11 | visibility: [":__subpackages__"], |
| 12 | license_kinds: [ |
| 13 | "SPDX-license-identifier-Apache-2.0", |
| 14 | ], |
| 15 | license_text: [ |
| 16 | "LICENSE", |
| 17 | ], |
| 18 | } |
| 19 | |
David Duarte | 1a3f594 | 2022-08-11 02:46:44 +0000 | [diff] [blame] | 20 | python_binary_host { |
| 21 | name: "protoc-gen-custom_grpc", |
| 22 | main: "python/_build/protoc-gen-custom_grpc.py", |
| 23 | srcs: ["python/_build/protoc-gen-custom_grpc.py"], |
| 24 | libs: ["libprotobuf-python"], |
| 25 | } |
| 26 | |
| 27 | genrule { |
| 28 | name: "pandora-python-src", |
| 29 | tools: [ |
| 30 | "aprotoc", |
| 31 | "protoc-gen-custom_grpc" |
| 32 | ], |
| 33 | cmd: "$(location aprotoc)" + |
| 34 | " -Iexternal/pandora/bt-test-interfaces" + |
| 35 | " -Iexternal/protobuf/src" + |
| 36 | " --plugin=protoc-gen-grpc=$(location protoc-gen-custom_grpc)" + |
| 37 | " --grpc_out=$(genDir)" + |
| 38 | " --python_out=$(genDir)" + |
| 39 | " $(in)", |
| 40 | srcs: [ |
| 41 | "pandora/a2dp.proto", |
| 42 | "pandora/host.proto", |
| 43 | ], |
| 44 | out: [ |
| 45 | "pandora/a2dp_grpc.py", |
| 46 | "pandora/a2dp_pb2.py", |
| 47 | "pandora/host_grpc.py", |
| 48 | "pandora/host_pb2.py", |
| 49 | ] |
| 50 | } |
| 51 | |
| 52 | python_library_host { |
| 53 | name: "pandora-python", |
| 54 | srcs: [ |
| 55 | ":pandora-python-src", |
| 56 | ], |
| 57 | } |