upb: split out :status as a separate build target

This should allow other upb components to depend upon the zcis without causing a cycle

PiperOrigin-RevId: 486987806
pull/13171/head
Eric Salo 2 years ago committed by Copybara-Service
parent a77b9665e1
commit aec12a466f
  1. 18
      BUILD
  2. 5
      upb/io/BUILD

18
BUILD

@ -118,7 +118,6 @@ cc_library(
"upb/internal/unicode.h",
"upb/msg.c",
"upb/msg_internal.h",
"upb/status.c",
"upb/upb.c",
"upb/wire/decode.c",
"upb/wire/encode.c",
@ -149,6 +148,7 @@ cc_library(
":fastdecode",
":mem",
":port",
":status",
":table_internal",
":unicode_internal",
":wire_internal",
@ -1013,6 +1013,19 @@ cc_library(
],
)
cc_library(
name = "status",
srcs = [
"upb/status.c",
],
hdrs = [
"upb/status.h",
],
copts = UPB_DEFAULT_COPTS,
visibility = ["//:__subpackages__"],
deps = [":port"],
)
cc_library(
name = "atoi_internal",
srcs = ["upb/internal/atoi.c"],
@ -1100,6 +1113,7 @@ upb_amalgamation(
":port",
":reflection",
":reflection_internal",
":status",
":upb",
":wire_internal",
],
@ -1135,6 +1149,7 @@ upb_amalgamation(
":port",
":reflection",
":reflection_internal",
":status",
":table_internal",
":unicode_internal",
":upb",
@ -1173,6 +1188,7 @@ upb_amalgamation(
":port",
":reflection",
":reflection_internal",
":status",
":table_internal",
":unicode_internal",
":upb",

@ -2,7 +2,7 @@ cc_library(
name = "string",
hdrs = ["string.h"],
deps = [
"//:upb",
"//:mem",
"//:port",
],
)
@ -37,8 +37,9 @@ cc_library(
"zero_copy_output_stream.h",
],
deps = [
"//:upb",
"//:mem",
"//:port",
"//:status",
],
)

Loading…
Cancel
Save