1# 2# Copyright 2019 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 any_invocable 20 SRCS 21 "internal/any_invocable.h" 22 HDRS 23 "any_invocable.h" 24 COPTS 25 ${ABSL_DEFAULT_COPTS} 26 DEPS 27 absl::config 28 absl::core_headers 29 absl::type_traits 30 absl::utility 31 PUBLIC 32) 33 34absl_cc_test( 35 NAME 36 any_invocable_test 37 SRCS 38 "any_invocable_test.cc" 39 "internal/any_invocable.h" 40 COPTS 41 ${ABSL_TEST_COPTS} 42 DEPS 43 absl::any_invocable 44 absl::config 45 absl::core_headers 46 absl::type_traits 47 absl::utility 48 GTest::gmock_main 49) 50 51absl_cc_library( 52 NAME 53 bind_front 54 SRCS 55 "internal/front_binder.h" 56 HDRS 57 "bind_front.h" 58 COPTS 59 ${ABSL_DEFAULT_COPTS} 60 DEPS 61 absl::compressed_tuple 62 PUBLIC 63) 64 65absl_cc_test( 66 NAME 67 bind_front_test 68 SRCS 69 "bind_front_test.cc" 70 COPTS 71 ${ABSL_DEFAULT_COPTS} 72 DEPS 73 absl::bind_front 74 absl::memory 75 GTest::gmock_main 76) 77 78absl_cc_library( 79 NAME 80 function_ref 81 SRCS 82 "internal/function_ref.h" 83 HDRS 84 "function_ref.h" 85 COPTS 86 ${ABSL_DEFAULT_COPTS} 87 DEPS 88 absl::core_headers 89 absl::any_invocable 90 absl::meta 91 PUBLIC 92) 93 94absl_cc_test( 95 NAME 96 function_ref_test 97 SRCS 98 "function_ref_test.cc" 99 COPTS 100 ${ABSL_TEST_COPTS} 101 DEPS 102 absl::function_ref 103 absl::memory 104 absl::test_instance_tracker 105 GTest::gmock_main 106) 107 108absl_cc_library( 109 NAME 110 overload 111 HDRS 112 "overload.h" 113 COPTS 114 ${ABSL_DEFAULT_COPTS} 115 DEPS 116 absl::meta 117 PUBLIC 118) 119 120absl_cc_test( 121 NAME 122 overload_test 123 SRCS 124 "overload_test.cc" 125 COPTS 126 ${ABSL_TEST_COPTS} 127 DEPS 128 absl::config 129 absl::overload 130 absl::string_view 131 absl::strings 132 absl::variant 133 GTest::gmock_main 134) 135