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::core_headers
32    absl::raw_logging_internal
33    absl::inlined_vector
34    absl::stacktrace
35    absl::symbolize
36    absl::strings
37    absl::cord
38    absl::str_format
39    absl::optional
40  PUBLIC
41)
42
43absl_cc_test(
44  NAME
45    status_test
46  SRCS
47   "status_test.cc"
48  COPTS
49    ${ABSL_TEST_COPTS}
50  DEPS
51    absl::status
52    absl::strings
53    gmock_main
54)
55
56absl_cc_library(
57  NAME
58    statusor
59  HDRS
60    "statusor.h"
61  SRCS
62    "statusor.cc"
63    "internal/statusor_internal.h"
64  COPTS
65    ${ABSL_DEFAULT_COPTS}
66  DEPS
67    absl::status
68    absl::core_headers
69    absl::raw_logging_internal
70    absl::type_traits
71    absl::strings
72    absl::utility
73    absl::variant
74  PUBLIC
75)
76
77absl_cc_test(
78  NAME
79    statusor_test
80  SRCS
81   "statusor_test.cc"
82  COPTS
83    ${ABSL_TEST_COPTS}
84  DEPS
85    absl::status
86    absl::statusor
87    gmock_main
88)
89