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 deps = [ 28 "//pw_assert:check", 29 "//pw_bloat:bloat_this_binary", 30 "//pw_log", 31 ], 32) 33 34pw_cc_binary( 35 name = "base_with_only_flash", 36 srcs = ["base_with_only_flash.cc"], 37 # TODO: https://pwbug.dev/388905812 - Make size reports always build. 38 tags = ["manual"], 39 target_compatible_with = select({ 40 "@platforms//os:none": [], 41 "//conditions:default": ["@platforms//:incompatible"], 42 }), 43 deps = [ 44 "//pw_assert:check", 45 "//pw_bloat:bloat_this_binary", 46 "//pw_kvs", 47 "//pw_kvs:fake_flash_12_byte_partition", 48 "//pw_kvs:flash_test_partition", 49 "//pw_log", 50 ], 51) 52 53pw_cc_binary( 54 name = "with_kvs", 55 srcs = ["with_kvs.cc"], 56 # TODO: https://pwbug.dev/388905812 - Make size reports always build. 57 tags = ["manual"], 58 target_compatible_with = select({ 59 "@platforms//os:none": [], 60 "//conditions:default": ["@platforms//:incompatible"], 61 }), 62 deps = [ 63 "//pw_assert:check", 64 "//pw_bloat:bloat_this_binary", 65 "//pw_kvs", 66 "//pw_kvs:fake_flash_12_byte_partition", 67 "//pw_kvs:flash_test_partition", 68 "//pw_log", 69 ], 70) 71