• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
19# TODO(b/241456982): The following deps are required to build :pw_system_lib
20# deps = [
21#     "//pw_thread/py:pw_thread",
22#     "//pw_log:log_proto_py_pb2",
23#     "//pw_metric:metric_proto_py_pb2",
24#     "//pw_thread:thread_proto_py_pb2",
25#     "//pw_thread:thread_snapshot_service_py_pb2",
26#     "//pw_tokenizer:tokenizer_proto_py_pb2",
27#     "//pw_unit_test:unit_test_py_pb2",
28#     "//pw_unit_test/py:pw_unit_test_lib",
29# ],
30py_library(
31    name = "pw_system_lib",
32    srcs = [
33        "pw_system/__init__.py",
34        "pw_system/console.py",
35        "pw_system/device.py",
36    ],
37    imports = ["."],
38    tags = ["manual"],
39    deps = [
40        "//pw_cli/py:pw_cli",
41        "//pw_console/py:pw_console",
42        "//pw_hdlc/py:pw_hdlc",
43        "//pw_metric/py:pw_metric",
44        "//pw_rpc/py:pw_rpc",
45        "//pw_status/py:pw_status",
46        "//pw_tokenizer/py:pw_tokenizer",
47    ],
48)
49
50py_binary(
51    name = "pw_system_console",
52    srcs = [
53        "pw_system/console.py",
54    ],
55    main = "pw_system/console.py",
56    tags = ["manual"],
57    deps = [
58        ":pw_system_lib",
59    ],
60)
61