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