• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2021 The Abseil Authors.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      https://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15# Internal-only target, do not depend on directly.
16absl_cc_library(
17  NAME
18    cleanup_internal
19  HDRS
20    "internal/cleanup.h"
21  COPTS
22    ${ABSL_DEFAULT_COPTS}
23  DEPS
24    absl::base_internal
25    absl::core_headers
26    absl::utility
27  PUBLIC
28)
29
30absl_cc_library(
31  NAME
32    cleanup
33  HDRS
34    "cleanup.h"
35  COPTS
36    ${ABSL_DEFAULT_COPTS}
37  DEPS
38    absl::cleanup_internal
39    absl::config
40    absl::core_headers
41  PUBLIC
42)
43
44absl_cc_test(
45  NAME
46    cleanup_test
47  SRCS
48    "cleanup_test.cc"
49  COPTS
50    ${ABSL_TEST_COPTS}
51  DEPS
52    absl::cleanup
53    absl::config
54    absl::utility
55    GTest::gmock_main
56)
57