• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2024 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("@rules_python//sphinxdocs:sphinx_docs_library.bzl", "sphinx_docs_library")
16load("//pw_build:compatibility.bzl", "incompatible_with_mcu")
17load("//pw_unit_test:pw_cc_test.bzl", "pw_cc_test")
18
19package(default_visibility = ["//visibility:public"])
20
21licenses(["notice"])
22
23# Examples
24
25pw_cc_test(
26    name = "flat_map",
27    srcs = ["flat_map.cc"],
28    deps = ["//pw_containers:flat_map"],
29)
30
31pw_cc_test(
32    name = "intrusive_forward_list",
33    srcs = ["intrusive_forward_list.cc"],
34    deps = ["//pw_containers:intrusive_forward_list"],
35)
36
37pw_cc_test(
38    name = "intrusive_list",
39    srcs = ["intrusive_list.cc"],
40    deps = ["//pw_containers:intrusive_list"],
41)
42
43pw_cc_test(
44    name = "intrusive_map",
45    srcs = ["intrusive_map.cc"],
46    deps = ["//pw_containers:intrusive_map"],
47)
48
49pw_cc_test(
50    name = "intrusive_multimap",
51    srcs = ["intrusive_multimap.cc"],
52    deps = ["//pw_containers:intrusive_multimap"],
53)
54
55pw_cc_test(
56    name = "intrusive_set",
57    srcs = ["intrusive_set.cc"],
58    deps = ["//pw_containers:intrusive_set"],
59)
60
61pw_cc_test(
62    name = "intrusive_multiset",
63    srcs = ["intrusive_multiset.cc"],
64    deps = ["//pw_containers:intrusive_multiset"],
65)
66
67pw_cc_test(
68    name = "multiple_containers",
69    srcs = ["multiple_containers.cc"],
70    deps = [
71        "//pw_containers:intrusive_list",
72        "//pw_containers:intrusive_map",
73        "//pw_result",
74        "//pw_status",
75    ],
76)
77
78pw_cc_test(
79    name = "vector",
80    srcs = ["vector.cc"],
81    deps = [
82        "//pw_containers:vector",
83        "//pw_function",
84        "//pw_status",
85    ],
86)
87
88pw_cc_test(
89    name = "wrapped_iterator",
90    srcs = ["wrapped_iterator.cc"],
91    deps = ["//pw_containers:wrapped_iterator"],
92)
93
94sphinx_docs_library(
95    name = "docs",
96    srcs = [
97        "flat_map.cc",
98        "intrusive_forward_list.cc",
99        "intrusive_list.cc",
100        "intrusive_map.cc",
101        "intrusive_multimap.cc",
102        "intrusive_multiset.cc",
103        "intrusive_set.cc",
104        "multiple_containers.cc",
105        "vector.cc",
106        "wrapped_iterator.cc",
107    ],
108    target_compatible_with = incompatible_with_mcu(),
109)
110