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