2022-05-09 04:19:04 +00:00
|
|
|
# Copyright 2018 The Chromium Authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
import("//third_party/abseil-cpp/absl.gni")
|
|
|
|
|
|
|
|
absl_source_set("status") {
|
|
|
|
public = [
|
|
|
|
"status.h",
|
|
|
|
"status_payload_printer.h",
|
|
|
|
]
|
|
|
|
sources = [
|
|
|
|
"internal/status_internal.h",
|
|
|
|
"status.cc",
|
|
|
|
"status_payload_printer.cc",
|
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
"//third_party/abseil-cpp/absl/base:atomic_hook",
|
|
|
|
"//third_party/abseil-cpp/absl/base:core_headers",
|
|
|
|
"//third_party/abseil-cpp/absl/base:raw_logging_internal",
|
2022-08-29 17:59:48 +00:00
|
|
|
"//third_party/abseil-cpp/absl/base:strerror",
|
2022-05-09 04:19:04 +00:00
|
|
|
"//third_party/abseil-cpp/absl/container:inlined_vector",
|
|
|
|
"//third_party/abseil-cpp/absl/debugging:stacktrace",
|
|
|
|
"//third_party/abseil-cpp/absl/debugging:symbolize",
|
2022-08-29 17:59:48 +00:00
|
|
|
"//third_party/abseil-cpp/absl/functional:function_ref",
|
2022-05-09 04:19:04 +00:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
|
|
|
"//third_party/abseil-cpp/absl/strings:cord",
|
|
|
|
"//third_party/abseil-cpp/absl/strings:str_format",
|
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
absl_source_set("statusor") {
|
2022-08-29 17:59:48 +00:00
|
|
|
public = [ "statusor.h" ]
|
2022-05-09 04:19:04 +00:00
|
|
|
sources = [
|
|
|
|
"internal/statusor_internal.h",
|
|
|
|
"statusor.cc",
|
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":status",
|
|
|
|
"//third_party/abseil-cpp/absl/base",
|
|
|
|
"//third_party/abseil-cpp/absl/base:core_headers",
|
|
|
|
"//third_party/abseil-cpp/absl/base:raw_logging_internal",
|
|
|
|
"//third_party/abseil-cpp/absl/meta:type_traits",
|
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
|
|
|
"//third_party/abseil-cpp/absl/types:variant",
|
|
|
|
"//third_party/abseil-cpp/absl/utility",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
absl_source_set("statusor_test") {
|
|
|
|
testonly = true
|
2022-08-29 17:59:48 +00:00
|
|
|
sources = [ "statusor_test.cc" ]
|
2022-05-09 04:19:04 +00:00
|
|
|
deps = [
|
|
|
|
":status",
|
|
|
|
":statusor",
|
|
|
|
"//third_party/abseil-cpp/absl/base",
|
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
|
|
|
"//third_party/abseil-cpp/absl/types:any",
|
|
|
|
"//third_party/abseil-cpp/absl/utility",
|
|
|
|
"//third_party/googletest:gmock",
|
|
|
|
"//third_party/googletest:gtest",
|
|
|
|
]
|
|
|
|
}
|