1#
2# Copyright 2020 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#
16absl_cc_library(
17  NAME
18    status
19  HDRS
20    "status.h"
21  SRCS
22    "internal/status_internal.h"
23    "status.cc"
24    "status_payload_printer.h"
25    "status_payload_printer.cc"
26  COPTS
27    ${ABSL_DEFAULT_COPTS}
28  DEPS
29    absl::atomic_hook
30    absl::config
31    absl::cord
32    absl::core_headers
33    absl::function_ref
34    absl::inlined_vector
35    absl::optional
36    absl::raw_logging_internal
37    absl::stacktrace
38    absl::str_format
39    absl::strerror
40    absl::strings
41    absl::symbolize
42  PUBLIC
43)
44
45absl_cc_test(
46  NAME
47    status_test
48  SRCS
49   "status_test.cc"
50  COPTS
51    ${ABSL_TEST_COPTS}
52  DEPS
53    absl::status
54    absl::strings
55    GTest::gmock_main
56)
57
58absl_cc_library(
59  NAME
60    statusor
61  HDRS
62    "statusor.h"
63  SRCS
64    "statusor.cc"
65    "internal/statusor_internal.h"
66  COPTS
67    ${ABSL_DEFAULT_COPTS}
68  DEPS
69    absl::base
70    absl::status
71    absl::core_headers
72    absl::raw_logging_internal
73    absl::type_traits
74    absl::strings
75    absl::utility
76    absl::variant
77  PUBLIC
78)
79
80absl_cc_test(
81  NAME
82    statusor_test
83  SRCS
84   "statusor_test.cc"
85  COPTS
86    ${ABSL_TEST_COPTS}
87  DEPS
88    absl::status
89    absl::statusor
90    GTest::gmock_main
91)
92