• Home
  • 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::city
29    absl::config
30    absl::core_headers
31    absl::endian
32    absl::fixed_array
33    absl::meta
34    absl::int128
35    absl::strings
36    absl::optional
37    absl::variant
38    absl::utility
39    absl::low_level_hash
40  PUBLIC
41)
42
43absl_cc_library(
44  NAME
45    hash_testing
46  HDRS
47    "hash_testing.h"
48  COPTS
49    ${ABSL_TEST_COPTS}
50  DEPS
51    absl::spy_hash_state
52    absl::meta
53    absl::strings
54    absl::variant
55    GTest::gmock
56  TESTONLY
57)
58
59absl_cc_test(
60  NAME
61    hash_test
62  SRCS
63    "hash_test.cc"
64  COPTS
65    ${ABSL_TEST_COPTS}
66  DEPS
67    absl::cord_test_helpers
68    absl::hash
69    absl::hash_testing
70    absl::core_headers
71    absl::flat_hash_set
72    absl::spy_hash_state
73    absl::meta
74    absl::int128
75    GTest::gmock_main
76)
77
78absl_cc_library(
79  NAME
80    spy_hash_state
81  HDRS
82    "internal/spy_hash_state.h"
83  COPTS
84    ${ABSL_DEFAULT_COPTS}
85  DEPS
86    absl::hash
87    absl::strings
88    absl::str_format
89  TESTONLY
90)
91
92absl_cc_library(
93  NAME
94    city
95  HDRS
96    "internal/city.h"
97  SRCS
98    "internal/city.cc"
99  COPTS
100    ${ABSL_DEFAULT_COPTS}
101  DEPS
102    absl::config
103    absl::core_headers
104    absl::endian
105)
106
107absl_cc_test(
108  NAME
109    city_test
110  SRCS
111    "internal/city_test.cc"
112  COPTS
113    ${ABSL_TEST_COPTS}
114  DEPS
115    absl::city
116    GTest::gmock_main
117)
118
119absl_cc_library(
120  NAME
121    low_level_hash
122  HDRS
123    "internal/low_level_hash.h"
124  SRCS
125    "internal/low_level_hash.cc"
126  COPTS
127    ${ABSL_DEFAULT_COPTS}
128  DEPS
129    absl::bits
130    absl::config
131    absl::endian
132    absl::int128
133)
134
135absl_cc_test(
136  NAME
137    low_level_hash_test
138  SRCS
139    "internal/low_level_hash_test.cc"
140  COPTS
141    ${ABSL_TEST_COPTS}
142  DEPS
143    absl::low_level_hash
144    absl::strings
145    GTest::gmock_main
146)
147