Make sapi::Status and sapi::StatusOr<> public in Bazel build file.

This makes it easier to work with the generated classes from client code.

PiperOrigin-RevId: 256132914
Change-Id: If7fb24a2cac998d2cdb04e8b627272064bf9793d
This commit is contained in:
Christian Blichmann 2019-07-02 03:20:02 -07:00 committed by Copybara-Service
parent 9435f97538
commit 732252922a

View File

@ -39,6 +39,7 @@ cc_library(
"status_macros.h", "status_macros.h",
], ],
copts = sapi_platform_copts(), copts = sapi_platform_copts(),
visibility = ["//visibility:public"],
deps = [ deps = [
":status_proto_cc", ":status_proto_cc",
"@com_google_absl//absl/base:core_headers", "@com_google_absl//absl/base:core_headers",
@ -51,6 +52,7 @@ cc_library(
name = "statusor", name = "statusor",
hdrs = ["statusor.h"], hdrs = ["statusor.h"],
copts = sapi_platform_copts(), copts = sapi_platform_copts(),
visibility = ["//visibility:public"],
deps = [ deps = [
":raw_logging", ":raw_logging",
":status", ":status",
@ -67,6 +69,7 @@ cc_library(
testonly = 1, testonly = 1,
hdrs = ["status_matchers.h"], hdrs = ["status_matchers.h"],
copts = sapi_platform_copts(), copts = sapi_platform_copts(),
visibility = ["//visibility:public"],
deps = [ deps = [
":status", ":status",
":statusor", ":statusor",