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( 16 "//pw_build:pigweed.bzl", 17 "pw_cc_binary", 18) 19 20package(default_visibility = ["//visibility:public"]) 21 22licenses(["notice"]) 23 24deps = [ 25 "//pw_bloat:bloat_this_binary", 26 "//pw_bytes", 27 "//pw_checksum", 28 "//pw_hdlc", 29 "//pw_log", 30 "//pw_preprocessor", 31 "//pw_span", 32 "//pw_stream", 33] 34 35pw_cc_binary( 36 name = "base", 37 srcs = ["hdlc_size_report.cc"], 38 deps = deps, 39) 40 41pw_cc_binary( 42 name = "base_crc", 43 srcs = ["hdlc_size_report.cc"], 44 copts = ["-DENABLE_CRC=1"], 45 deps = deps, 46) 47 48pw_cc_binary( 49 name = "full", 50 srcs = ["hdlc_size_report.cc"], 51 copts = [ 52 "-DENABLE_ENCODE=1", 53 "-DENABLE_DECODE=1", 54 "-DENABLE_CRC", 55 ], 56 deps = deps, 57) 58 59pw_cc_binary( 60 name = "full_crc", 61 srcs = ["hdlc_size_report.cc"], 62 copts = [ 63 "-DENABLE_ENCODE=1", 64 "-DENABLE_DECODE=1", 65 ], 66 deps = deps, 67) 68