Debian Codegraph @

ext/cwisstable/examples/BUILD

raw
1 # Copyright 2022 Google LLC
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://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,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 load(
16 "//:copts.bzl",
17 "CWISS_DEFAULT_COPTS",
18 "CWISS_DEFAULT_LINKOPTS",
19 "CWISS_C_VERSION",
20 )
21
22 cc_binary(
23 name = "arraymap",
24 srcs = ["arraymap.c"],
25 deps = ["//:cwisstable"],
26 copts = CWISS_DEFAULT_COPTS + CWISS_C_VERSION,
27 linkopts = CWISS_DEFAULT_LINKOPTS,
28 defines = ["CWISS_EXAMPLE_UNIFIED"],
29 )
30
31 cc_binary(
32 name = "arraymap_split",
33 srcs = ["arraymap.c"],
34 deps = ["//:cwisstable_split"],
35 copts = CWISS_DEFAULT_COPTS + CWISS_C_VERSION,
36 linkopts = CWISS_DEFAULT_LINKOPTS,
37 defines = ["CWISS_EXAMPLE_SPLIT"],
38 )
39
40 cc_binary(
41 name = "hashset",
42 srcs = ["hashset.c"],
43 deps = ["//:cwisstable"],
44 copts = CWISS_DEFAULT_COPTS + CWISS_C_VERSION,
45 linkopts = CWISS_DEFAULT_LINKOPTS,
46 defines = ["CWISS_EXAMPLE_UNIFIED"],
47 )
48
49 cc_binary(
50 name = "hashset_split",
51 srcs = ["hashset.c"],
52 deps = ["//:cwisstable_split"],
53 copts = CWISS_DEFAULT_COPTS + CWISS_C_VERSION,
54 linkopts = CWISS_DEFAULT_LINKOPTS,
55 defines = ["CWISS_EXAMPLE_SPLIT"],
56 )
57
58 cc_binary(
59 name = "hashmap",
60 srcs = ["hashmap.c"],
61 deps = ["//:cwisstable"],
62 copts = CWISS_DEFAULT_COPTS + CWISS_C_VERSION,
63 linkopts = CWISS_DEFAULT_LINKOPTS,
64 defines = ["CWISS_EXAMPLE_UNIFIED"],
65 )
66
67 cc_binary(
68 name = "hashmap_split",
69 srcs = ["hashmap.c"],
70 deps = ["//:cwisstable_split"],
71 copts = CWISS_DEFAULT_COPTS + CWISS_C_VERSION,
72 linkopts = CWISS_DEFAULT_LINKOPTS,
73 defines = ["CWISS_EXAMPLE_SPLIT"],
74 )
75
76 cc_binary(
77 name = "stringmap",
78 srcs = ["stringmap.c"],
79 deps = ["//:cwisstable"],
80 copts = CWISS_DEFAULT_COPTS + CWISS_C_VERSION,
81 linkopts = CWISS_DEFAULT_LINKOPTS,
82 defines = ["CWISS_EXAMPLE_UNIFIED"],
83 )
84
85 cc_binary(
86 name = "stringmap_split",
87 srcs = ["stringmap.c"],
88 deps = ["//:cwisstable_split"],
89 copts = CWISS_DEFAULT_COPTS + CWISS_C_VERSION,
90 linkopts = CWISS_DEFAULT_LINKOPTS,
91 defines = ["CWISS_EXAMPLE_SPLIT"],
92 )