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    bind_front
20  SRCS
21    "internal/front_binder.h"
22  HDRS
23    "bind_front.h"
24  COPTS
25    ${ABSL_DEFAULT_COPTS}
26  DEPS
27    absl::base_internal
28    absl::compressed_tuple
29  PUBLIC
30)
31
32absl_cc_test(
33  NAME
34    bind_front_test
35  SRCS
36    "bind_front_test.cc"
37  COPTS
38    ${ABSL_DEFAULT_COPTS}
39  DEPS
40    absl::bind_front
41    absl::memory
42    gmock_main
43)
44
45absl_cc_library(
46  NAME
47    function_ref
48  SRCS
49    "internal/function_ref.h"
50  HDRS
51    "function_ref.h"
52  COPTS
53    ${ABSL_DEFAULT_COPTS}
54  DEPS
55    absl::base_internal
56    absl::meta
57  PUBLIC
58)
59
60absl_cc_test(
61  NAME
62    function_ref_test
63  SRCS
64    "function_ref_test.cc"
65  COPTS
66    ${ABSL_TEST_COPTS}
67  DEPS
68    absl::function_ref
69    absl::memory
70    absl::test_instance_tracker
71    gmock_main
72)
73