blob: 5cd549602778f4edfcab46827e28b30a78105868 [file] [log] [blame]
mistergc2e75482017-09-19 16:54:40 -04001#
2# Copyright 2017 The Abseil Authors.
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17load(
18 "//absl:copts.bzl",
19 "ABSL_DEFAULT_COPTS",
20 "ABSL_TEST_COPTS",
21)
mistergc2e75482017-09-19 16:54:40 -040022
23package(default_visibility = ["//visibility:public"])
24
25licenses(["notice"]) # Apache 2.0
26
27cc_library(
28 name = "algorithm",
29 hdrs = ["algorithm.h"],
30 copts = ABSL_DEFAULT_COPTS,
31)
32
33cc_test(
34 name = "algorithm_test",
35 size = "small",
36 srcs = ["algorithm_test.cc"],
37 copts = ABSL_TEST_COPTS,
Abseil Team2a62fbd2017-09-25 15:35:12 -070038 deps = [
39 ":algorithm",
40 "@com_google_googletest//:gtest_main",
41 ],
mistergc2e75482017-09-19 16:54:40 -040042)
43
Abseil Team26b789f2018-05-04 09:58:56 -070044cc_binary(
45 name = "algorithm_benchmark",
46 testonly = 1,
47 srcs = ["equal_benchmark.cc"],
48 copts = ABSL_TEST_COPTS,
49 deps = [
50 ":algorithm",
51 "//absl/base:core_headers",
52 "@com_github_google_benchmark//:benchmark",
53 ],
54)
55
mistergc2e75482017-09-19 16:54:40 -040056cc_library(
57 name = "container",
58 hdrs = [
59 "container.h",
60 ],
61 copts = ABSL_DEFAULT_COPTS,
62 deps = [
63 ":algorithm",
64 "//absl/base:core_headers",
65 "//absl/meta:type_traits",
66 ],
67)
68
69cc_test(
70 name = "container_test",
71 srcs = ["container_test.cc"],
72 copts = ABSL_TEST_COPTS,
73 deps = [
74 ":container",
75 "//absl/base",
76 "//absl/base:core_headers",
77 "//absl/memory",
78 "//absl/types:span",
Abseil Team2a62fbd2017-09-25 15:35:12 -070079 "@com_google_googletest//:gtest_main",
80 ],
mistergc2e75482017-09-19 16:54:40 -040081)