99 lines
1.8 KiB
Python
99 lines
1.8 KiB
Python
# Copyright 2025 Steven Le Rouzic
|
|
#
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
package(
|
|
default_applicable_licenses = ["//:license"],
|
|
)
|
|
|
|
cc_library(
|
|
name = "buffer",
|
|
hdrs = [
|
|
"buffer.hpp",
|
|
],
|
|
deps = [
|
|
"//asl/memory",
|
|
"//asl/memory:allocator",
|
|
"//asl/base",
|
|
"//asl/types:span",
|
|
"//asl/hashing",
|
|
],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
cc_library(
|
|
name = "chunked_buffer",
|
|
hdrs = [
|
|
"chunked_buffer.hpp",
|
|
],
|
|
deps = [
|
|
"//asl/memory",
|
|
"//asl/memory:allocator",
|
|
"//asl/base",
|
|
"//asl/containers:buffer",
|
|
"//asl/types:array",
|
|
"//asl/types:maybe_uninit",
|
|
],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
cc_library(
|
|
name = "hash_set",
|
|
hdrs = [
|
|
"hash_set.hpp",
|
|
],
|
|
deps = [
|
|
"//asl/base",
|
|
"//asl/memory",
|
|
"//asl/memory:allocator",
|
|
"//asl/types:maybe_uninit",
|
|
"//asl/hashing",
|
|
],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
cc_library(
|
|
name = "hash_map",
|
|
hdrs = [
|
|
"hash_map.hpp",
|
|
],
|
|
deps = [
|
|
"//asl/base",
|
|
"//asl/memory",
|
|
"//asl/memory:allocator",
|
|
"//asl/hashing",
|
|
":hash_set",
|
|
],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
cc_library(
|
|
name = "intrusive_list",
|
|
hdrs = [
|
|
"intrusive_list.hpp",
|
|
],
|
|
deps = [
|
|
"//asl/base",
|
|
],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
[cc_test(
|
|
name = "%s_tests" % name,
|
|
srcs = [
|
|
"%s_tests.cpp" % name,
|
|
],
|
|
deps = [
|
|
":%s" % name,
|
|
"//asl/tests:utils",
|
|
"//asl/testing",
|
|
"//asl/strings:string",
|
|
],
|
|
) for name in [
|
|
"buffer",
|
|
"chunked_buffer",
|
|
"hash_map",
|
|
"hash_set",
|
|
"intrusive_list",
|
|
]]
|