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