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