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 20cc_library( 21 name = "base_lib", 22 hdrs = ["base.h"], 23) 24 25pw_cc_binary( 26 name = "base", 27 srcs = ["base.cc"], 28 deps = [ 29 ":base_lib", 30 "//pw_containers", 31 ], 32) 33 34pw_cc_binary( 35 name = "linked_list_one_item", 36 srcs = ["linked_list.cc"], 37 defines = ["ITEM_COUNT=1"], 38 deps = [ 39 ":base_lib", 40 "//pw_containers", 41 ], 42) 43 44pw_cc_binary( 45 name = "linked_list_two_item", 46 srcs = ["linked_list.cc"], 47 defines = ["ITEM_COUNT=2"], 48 deps = [ 49 ":base_lib", 50 "//pw_containers", 51 ], 52) 53 54pw_cc_binary( 55 name = "linked_list_four_item", 56 srcs = ["linked_list.cc"], 57 defines = ["ITEM_COUNT=4"], 58 deps = [ 59 ":base_lib", 60 "//pw_containers", 61 ], 62) 63 64pw_cc_binary( 65 name = "intrusive_list_one_item", 66 srcs = ["intrusive_list.cc"], 67 defines = ["ITEM_COUNT=1"], 68 deps = [ 69 ":base_lib", 70 "//pw_containers", 71 ], 72) 73 74pw_cc_binary( 75 name = "intrusive_list_two_item", 76 srcs = ["intrusive_list.cc"], 77 defines = ["ITEM_COUNT=2"], 78 deps = [ 79 ":base_lib", 80 "//pw_containers", 81 ], 82) 83 84pw_cc_binary( 85 name = "intrusive_list_four_item", 86 srcs = ["intrusive_list.cc"], 87 defines = ["ITEM_COUNT=4"], 88 deps = [ 89 ":base_lib", 90 "//pw_containers", 91 ], 92) 93