1# Copyright 2020 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 15import("//build_overrides/pigweed.gni") 16 17import("$dir_pw_build/python.gni") 18import("$dir_pw_docgen/docs.gni") 19 20pw_python_package("py") { 21 generate_setup = { 22 name = "pw_rpc" 23 version = "0.0.1" 24 } 25 26 sources = [ 27 "pw_rpc/__init__.py", 28 "pw_rpc/callback_client.py", 29 "pw_rpc/client.py", 30 "pw_rpc/codegen.py", 31 "pw_rpc/codegen_nanopb.py", 32 "pw_rpc/codegen_raw.py", 33 "pw_rpc/console_tools/__init__.py", 34 "pw_rpc/console_tools/console.py", 35 "pw_rpc/console_tools/functions.py", 36 "pw_rpc/console_tools/watchdog.py", 37 "pw_rpc/descriptors.py", 38 "pw_rpc/ids.py", 39 "pw_rpc/packets.py", 40 "pw_rpc/plugin.py", 41 "pw_rpc/plugin_nanopb.py", 42 "pw_rpc/plugin_raw.py", 43 ] 44 tests = [ 45 "tests/callback_client_test.py", 46 "tests/client_test.py", 47 "tests/console_tools/console_tools_test.py", 48 "tests/console_tools/functions_test.py", 49 "tests/descriptors_test.py", 50 "tests/ids_test.py", 51 "tests/packets_test.py", 52 ] 53 python_deps = [ 54 "$dir_pw_protobuf/py", 55 "$dir_pw_protobuf_compiler/py", 56 "$dir_pw_status/py", 57 ] 58 python_test_deps = [ "$dir_pw_build/py" ] 59 pylintrc = "$dir_pigweed/.pylintrc" 60 proto_library = "..:protos" 61} 62 63pw_doc_group("docs") { 64 sources = [ "docs.rst" ] 65 other_deps = [ ":py" ] 66} 67