• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2021 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("//pw_build:pw_cc_binary.bzl", "pw_cc_binary")
16
17package(
18    default_visibility = ["//visibility:public"],
19    features = ["-layering_check"],
20)
21
22licenses(["notice"])
23
24pw_cc_binary(
25    name = "base",
26    srcs = ["base.cc"],
27    # TODO: https://pwbug.dev/388905812 - Make size reports always build.
28    tags = ["manual"],
29    target_compatible_with = select({
30        "@platforms//os:none": [],
31        "//conditions:default": ["@platforms//:incompatible"],
32    }),
33    deps = [
34        "//pw_assert:check",
35        "//pw_bloat:bloat_this_binary",
36        "//pw_log",
37        "//pw_sys_io",
38    ],
39)
40
41pw_cc_binary(
42    name = "static_router_with_one_route",
43    srcs = ["static_router_with_one_route.cc"],
44    # TODO: https://pwbug.dev/388905812 - Make size reports always build.
45    tags = ["manual"],
46    target_compatible_with = select({
47        "@platforms//os:none": [],
48        "//conditions:default": ["@platforms//:incompatible"],
49    }),
50    deps = [
51        "//pw_assert:check",
52        "//pw_bloat:bloat_this_binary",
53        "//pw_log",
54        "//pw_router:egress_function",
55        "//pw_router:static_router",
56        "//pw_sys_io",
57    ],
58)
59