blob: c24dcc74031e49f3aa04c1afdd8bd0f088ec9478 [file]
// Copyright 2022 The Pigweed Authors
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// License for the specific language governing permissions and limitations under
// the License.
package {
default_applicable_licenses: ["external_pigweed_license"],
}
cc_library_headers {
name: "pw_containers_headers",
defaults: [
"pw_android_common_target_support",
],
export_include_dirs: [
"public"
],
}
cc_library_static {
name: "pw_containers",
defaults: [
"pw_android_common_backends",
"pw_android_common_target_support",
],
export_include_dirs: ["public"],
header_libs: [
"pw_assert",
],
static_libs: [
"pw_allocator",
"pw_bytes",
"pw_numeric",
"pw_polyfill",
"pw_preprocessor",
"pw_span",
"pw_varint",
],
whole_static_libs: [
// TODO: https://pwbug.dev/523306525 - Remove this
// when all consumers depend on it directly.
"pw_containers_intrusive_lists",
],
export_static_lib_headers: [
"pw_allocator",
// TODO: https://pwbug.dev/523306525 - Remove this
// when all consumers depend on it directly.
"pw_containers_intrusive_lists",
],
srcs: [
"aa_tree_item.cc",
"aa_tree.cc",
"inline_var_len_entry_queue.cc",
"var_len_entry.cc",
"var_len_entry_queue_iterator.cc",
],
}
cc_library_static {
name: "pw_containers_intrusive_item",
defaults: [
"pw_android_common_backends",
"pw_android_common_target_support",
],
export_include_dirs: ["public"],
header_libs: [
"pw_assert",
],
srcs: [
"intrusive_item.cc",
],
}
// An amalgamation of:
// - intrusive_list_common
// - intrusive_forward_list
// - intrusive_list
// - intrusive_queue
//
// Does NOT include aa-based intrusive collections like:
// - intrusive_map
// - intrusive_multimap
// - intrusive_set
// - intrusive_multiset
//
cc_library_static {
name: "pw_containers_intrusive_lists",
defaults: [
"pw_android_common_backends",
"pw_android_common_target_support",
],
export_include_dirs: ["public"],
whole_static_libs: [
"pw_containers_intrusive_item",
],
export_static_lib_headers: [
"pw_containers_intrusive_item",
],
srcs: [
"intrusive_queue.cc",
],
}