1// Copyright 2022 The Pigweed Authors 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); you may not 4// use this file except in compliance with the License. You may obtain a copy of 5// the License at 6// 7// https://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 11// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12// License for the specific language governing permissions and limitations under 13// the License. 14 15package { 16 default_applicable_licenses: ["external_pigweed_license"], 17} 18 19python_binary_host { 20 name: "pw_rpc_plugin_nanopb_py", 21 main: "pw_rpc/plugin_nanopb.py", 22 srcs: [ 23 "pw_rpc/**/*.py", 24 ], 25 libs: [ 26 "libprotobuf-python", 27 "pw_protobuf_compiler_py_lib", 28 "pw_protobuf_plugin_py_lib", 29 "pw_rpc_internal_packet_py_lib", 30 "pw_status_py_lib", 31 ], 32} 33 34python_binary_host { 35 name: "pw_rpc_plugin_rawpb_py", 36 main: "pw_rpc/plugin_raw.py", 37 srcs: [ 38 "pw_rpc/**/*.py", 39 ], 40 libs: [ 41 "libprotobuf-python", 42 "pw_protobuf_compiler_py_lib", 43 "pw_protobuf_plugin_py_lib", 44 "pw_rpc_internal_packet_py_lib", 45 "pw_status_py_lib", 46 ], 47} 48 49python_binary_host { 50 name: "pw_rpc_plugin_pwpb_py", 51 main: "pw_rpc/plugin_pwpb.py", 52 srcs: [ 53 "pw_rpc/**/*.py", 54 ], 55 libs: [ 56 "libprotobuf-python", 57 "pw_protobuf_compiler_py_lib", 58 "pw_protobuf_plugin_py_lib", 59 "pw_rpc_internal_packet_py_lib", 60 "pw_status_py_lib", 61 ], 62} 63