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 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_rpc", 38 "//pw_sys_io", 39 ], 40) 41 42pw_cc_binary( 43 name = "server_only", 44 srcs = ["server_only.cc"], 45 # TODO: https://pwbug.dev/388905812 - Make size reports always build. 46 tags = ["manual"], 47 target_compatible_with = select({ 48 "@platforms//os:none": [], 49 "//conditions:default": ["@platforms//:incompatible"], 50 }), 51 deps = [ 52 "//pw_assert:check", 53 "//pw_bloat:bloat_this_binary", 54 "//pw_log", 55 "//pw_rpc", 56 "//pw_sys_io", 57 ], 58) 59 60# TODO(frolv): Figure out how to add third-party nanopb to Bazel. 61filegroup( 62 name = "nanopb_reports", 63 srcs = [ 64 "base_with_nanopb.cc", 65 "server_with_echo_service.cc", 66 ], 67) 68