xref: /aosp_15_r20/external/tensorflow/third_party/absl/system.absl.container.BUILD (revision b6fb3261f9314811a0f4371741dbb8839866f948)
1load("@rules_cc//cc:defs.bzl", "cc_library")
2
3package(default_visibility = ["//visibility:public"])
4
5cc_library(
6    name = "compressed_tuple",
7    deps = [
8        "//absl/utility",
9    ],
10)
11
12cc_library(
13    name = "fixed_array",
14    deps = [
15        ":compressed_tuple",
16        "//absl/algorithm",
17        "//absl/base:config",
18        "//absl/base:core_headers",
19        "//absl/base:dynamic_annotations",
20        "//absl/base:throw_delegate",
21        "//absl/memory",
22    ],
23)
24
25cc_library(
26    name = "inlined_vector_internal",
27    deps = [
28        ":compressed_tuple",
29        "//absl/base:core_headers",
30        "//absl/memory",
31        "//absl/meta:type_traits",
32        "//absl/types:span",
33    ],
34)
35
36cc_library(
37    name = "inlined_vector",
38    deps = [
39        ":inlined_vector_internal",
40        "//absl/algorithm",
41        "//absl/base:core_headers",
42        "//absl/base:throw_delegate",
43        "//absl/memory",
44    ],
45)
46
47cc_library(
48    name = "flat_hash_map",
49    deps = [
50        ":container_memory",
51        ":hash_function_defaults",
52        ":raw_hash_map",
53        "//absl/algorithm:container",
54        "//absl/memory",
55    ],
56)
57
58cc_library(
59    name = "flat_hash_set",
60    deps = [
61        ":container_memory",
62        ":hash_function_defaults",
63        ":raw_hash_set",
64        "//absl/algorithm:container",
65        "//absl/base:core_headers",
66        "//absl/memory",
67    ],
68)
69
70cc_library(
71    name = "node_hash_map",
72    deps = [
73        ":container_memory",
74        ":hash_function_defaults",
75        ":node_hash_policy",
76        ":raw_hash_map",
77        "//absl/algorithm:container",
78        "//absl/memory",
79    ],
80)
81
82cc_library(
83    name = "node_hash_set",
84    deps = [
85        ":hash_function_defaults",
86        ":node_hash_policy",
87        ":raw_hash_set",
88        "//absl/algorithm:container",
89        "//absl/memory",
90    ],
91)
92
93cc_library(
94    name = "container_memory",
95    deps = [
96        "//absl/base:config",
97        "//absl/memory",
98        "//absl/meta:type_traits",
99        "//absl/utility",
100    ],
101)
102
103cc_library(
104    name = "hash_function_defaults",
105    deps = [
106        "//absl/base:config",
107        "//absl/hash",
108        "//absl/strings",
109        "//absl/strings:cord",
110    ],
111)
112
113cc_library(
114    name = "hash_policy_traits",
115    deps = ["//absl/meta:type_traits"],
116)
117
118cc_library(
119    name = "hashtable_debug",
120    deps = [
121        ":hashtable_debug_hooks",
122    ],
123)
124
125cc_library(
126    name = "hashtable_debug_hooks",
127    deps = [
128        "//absl/base:config",
129    ],
130)
131
132cc_library(
133    name = "hashtablez_sampler",
134    linkopts = ["-labsl_hashtablez_sampler"],
135    deps = [
136        "//absl/base",
137        "//absl/base:core_headers",
138        "//absl/base:exponential_biased",
139        "//absl/debugging:stacktrace",
140        "//absl/memory",
141        "//absl/synchronization",
142        "//absl/utility",
143    ],
144)
145
146cc_library(
147    name = "node_hash_policy",
148    deps = ["//absl/base:config"],
149)
150
151cc_library(
152    name = "raw_hash_map",
153    deps = [
154        ":container_memory",
155        ":raw_hash_set",
156        "//absl/base:throw_delegate",
157    ],
158)
159
160cc_library(
161    name = "common",
162    deps = [
163        "//absl/meta:type_traits",
164        "//absl/types:optional",
165    ],
166)
167
168cc_library(
169    name = "raw_hash_set",
170    linkopts = ["-labsl_raw_hash_set"],
171    deps = [
172        ":common",
173        ":compressed_tuple",
174        ":container_memory",
175        ":hash_policy_traits",
176        ":hashtable_debug_hooks",
177        ":hashtablez_sampler",
178        ":layout",
179        "//absl/base:config",
180        "//absl/base:core_headers",
181        "//absl/base:endian",
182        "//absl/memory",
183        "//absl/meta:type_traits",
184        "//absl/numeric:bits",
185        "//absl/utility",
186    ],
187)
188
189cc_library(
190    name = "layout",
191    deps = [
192        "//absl/base:config",
193        "//absl/base:core_headers",
194        "//absl/meta:type_traits",
195        "//absl/strings",
196        "//absl/types:span",
197        "//absl/utility",
198    ],
199)
200
201cc_library(
202    name = "btree",
203    deps = [
204        ":common",
205        ":compressed_tuple",
206        ":container_memory",
207        ":layout",
208        "//absl/base:core_headers",
209        "//absl/base:throw_delegate",
210        "//absl/memory",
211        "//absl/meta:type_traits",
212        "//absl/strings",
213        "//absl/strings:cord",
214        "//absl/types:compare",
215        "//absl/utility",
216    ],
217)
218