summaryrefslogtreecommitdiff
path: root/asl/containers/BUILD.bazel
blob: a8d6b4ee1c4c36ae2fe7fff987c2dc2bcae98fa8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# 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/base",
        "//asl/types:span",
        "//asl/hashing",
    ],
    visibility = ["//visibility:public"],
)

cc_library(
    name = "hash_set",
    hdrs = [
        "hash_set.hpp",
    ],
    deps = [
        "//asl/base",
        "//asl/memory",
        "//asl/types:maybe_uninit",
        "//asl/hashing",
    ],
    visibility = ["//visibility:public"],
)

cc_library(
    name = "hash_map",
    hdrs = [
        "hash_map.hpp",
    ],
    deps = [
        "//asl/base",
        "//asl/memory",
        "//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",
    "hash_map",
    "hash_set",
    "intrusive_list",
]]