blob: 0239d6ad7c6924bf448adab28ef41fdcd1fa2e16 [file] [log] [blame]
Bob Badourabbd5c62022-08-18 10:45:29 -07001package {
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
9license {
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 Duarte1a3f5942022-08-11 02:46:44 +000020python_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
27genrule {
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
52python_library_host {
53 name: "pandora-python",
54 srcs: [
55 ":pandora-python-src",
56 ],
57}