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::hash 66 absl::hash_testing 67 absl::core_headers 68 absl::flat_hash_set 69 absl::spy_hash_state 70 absl::meta 71 absl::int128 72 gmock_main 73) 74 75absl_cc_library( 76 NAME 77 spy_hash_state 78 HDRS 79 "internal/spy_hash_state.h" 80 COPTS 81 ${ABSL_DEFAULT_COPTS} 82 DEPS 83 absl::hash 84 absl::strings 85 absl::str_format 86 TESTONLY 87) 88 89absl_cc_library( 90 NAME 91 city 92 HDRS 93 "internal/city.h" 94 SRCS 95 "internal/city.cc" 96 COPTS 97 ${ABSL_DEFAULT_COPTS} 98 DEPS 99 absl::config 100 absl::core_headers 101 absl::endian 102) 103 104absl_cc_test( 105 NAME 106 city_test 107 SRCS 108 "internal/city_test.cc" 109 COPTS 110 ${ABSL_TEST_COPTS} 111 DEPS 112 absl::city 113 gmock_main 114) 115 116