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 15load("@rules_python//python:defs.bzl", "py_binary", "py_library") 16 17package(default_visibility = ["//visibility:public"]) 18 19py_library( 20 name = "pw_system_lib", 21 srcs = [ 22 "pw_system/__init__.py", 23 "pw_system/console.py", 24 "pw_system/device.py", 25 "pw_system/device_tracing.py", 26 ], 27 imports = ["."], 28 tags = ["manual"], 29 deps = [ 30 "//pw_cli/py:pw_cli", 31 "//pw_console/py:pw_console", 32 "//pw_file:file_proto_py_pb2", 33 "//pw_hdlc/py:pw_hdlc", 34 "//pw_log:log_proto_py_pb2", 35 "//pw_log/py:pw_log", 36 "//pw_log_rpc/py:pw_log_rpc", 37 "//pw_metric:metric_proto_py_pb2", 38 "//pw_metric/py:pw_metric", 39 "//pw_rpc/py:pw_rpc", 40 "//pw_thread:thread_proto_py_pb2", 41 "//pw_thread:thread_snapshot_service_py_pb2", 42 "//pw_thread/py:pw_thread", 43 "//pw_tokenizer:tokenizer_proto_py_pb2", 44 "//pw_tokenizer/py:pw_tokenizer", 45 "//pw_trace/py:pw_trace", 46 "//pw_trace_tokenized:proto_py", 47 "//pw_trace_tokenized/py:pw_trace_tokenized", 48 "//pw_transfer/py:pw_transfer", 49 "//pw_unit_test:unit_test_py_pb2", 50 "//pw_unit_test/py:pw_unit_test", 51 "@python_packages_ipython//:pkg", 52 "@python_packages_pyserial//:pkg", 53 ], 54) 55 56py_binary( 57 name = "pw_system_console", 58 srcs = [ 59 "pw_system/console.py", 60 ], 61 main = "pw_system/console.py", 62 tags = ["manual"], 63 deps = [ 64 ":pw_system_lib", 65 ], 66) 67