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