• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright 2018 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#      https://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
17absl_cc_library(
18  NAME
19    hash
20  HDRS
21    "hash.h"
22  SRCS
23    "internal/hash.cc"
24    "internal/hash.h"
25  COPTS
26    ${ABSL_DEFAULT_COPTS}
27  DEPS
28    absl::core_headers
29    absl::endian
30    absl::fixed_array
31    absl::meta
32    absl::int128
33    absl::strings
34    absl::optional
35    absl::variant
36    absl::utility
37    absl::city
38  PUBLIC
39)
40
41absl_cc_library(
42  NAME
43    hash_testing
44  HDRS
45    "hash_testing.h"
46  COPTS
47    ${ABSL_TEST_COPTS}
48  DEPS
49    absl::spy_hash_state
50    absl::meta
51    absl::strings
52    absl::variant
53    gmock
54  TESTONLY
55)
56
57absl_cc_test(
58  NAME
59    hash_test
60  SRCS
61    "hash_test.cc"
62  COPTS
63    ${ABSL_TEST_COPTS}
64  DEPS
65    absl::cord_test_helpers
66    absl::hash
67    absl::hash_testing
68    absl::core_headers
69    absl::flat_hash_set
70    absl::spy_hash_state
71    absl::meta
72    absl::int128
73    gmock_main
74)
75
76absl_cc_library(
77  NAME
78    spy_hash_state
79  HDRS
80    "internal/spy_hash_state.h"
81  COPTS
82    ${ABSL_DEFAULT_COPTS}
83  DEPS
84    absl::hash
85    absl::strings
86    absl::str_format
87  TESTONLY
88)
89
90absl_cc_library(
91  NAME
92    city
93  HDRS
94    "internal/city.h"
95  SRCS
96    "internal/city.cc"
97  COPTS
98    ${ABSL_DEFAULT_COPTS}
99  DEPS
100    absl::config
101    absl::core_headers
102    absl::endian
103)
104
105absl_cc_test(
106  NAME
107    city_test
108  SRCS
109    "internal/city_test.cc"
110  COPTS
111    ${ABSL_TEST_COPTS}
112  DEPS
113    absl::city
114    gmock_main
115)
116
117