Skip to content

Commit

Permalink
upb: restore the mini_table:internal target
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 593861882
  • Loading branch information
ericsalo authored and copybara-github committed Dec 26, 2023
1 parent 4c74345 commit 3dac469
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 4 deletions.
11 changes: 11 additions & 0 deletions upb/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,12 @@ alias(
visibility = ["//upb:friends"],
)

alias(
name = "mini_table_internal",
actual = "//upb/mini_table:internal",
visibility = ["//upb:friends"],
)

alias(
name = "port",
actual = "//upb/port",
Expand Down Expand Up @@ -390,6 +396,7 @@ upb_amalgamation(
":mini_descriptor_internal",
":mini_table",
":mini_table_compat",
":mini_table_internal",
":port",
":reflection",
":reflection_internal",
Expand Down Expand Up @@ -437,6 +444,8 @@ upb_amalgamation(
":mini_descriptor",
":mini_descriptor_internal",
":mini_table",
":mini_table_compat",
":mini_table_internal",
":port",
":reflection",
":reflection_internal",
Expand Down Expand Up @@ -485,6 +494,8 @@ upb_amalgamation(
":mini_descriptor",
":mini_descriptor_internal",
":mini_table",
":mini_table_compat",
":mini_table_internal",
":port",
":reflection",
":reflection_internal",
Expand Down
2 changes: 2 additions & 0 deletions upb/message/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ cc_library(
"//upb:base",
"//upb:mem",
"//upb:mini_table",
"//upb:mini_table_internal",
"//upb:port",
],
)
Expand Down Expand Up @@ -118,6 +119,7 @@ cc_library(
"//upb:hash",
"//upb:mem",
"//upb:mini_table",
"//upb:mini_table_internal",
"//upb:port",
],
)
Expand Down
1 change: 1 addition & 0 deletions upb/mini_descriptor/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ cc_library(
"//upb:base_internal",
"//upb:mem",
"//upb:mini_table",
"//upb:mini_table_internal",
"//upb:port",
],
)
Expand Down
25 changes: 21 additions & 4 deletions upb/mini_table/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ cc_library(
name = "mini_table",
srcs = [
"extension_registry.c",
"internal/message.c",
"message.c",
],
hdrs = [
Expand All @@ -23,16 +22,34 @@ cc_library(
"extension_registry.h",
"field.h",
"file.h",
"message.h",
"sub.h",
"types.h",
],
copts = UPB_DEFAULT_COPTS,
visibility = ["//visibility:public"],
deps = [
":internal",
"//upb:base",
"//upb:hash",
"//upb:mem",
"//upb:port",
],
)

cc_library(
name = "internal",
srcs = [
"internal/message.c",
],
hdrs = [
"internal/enum.h",
"internal/extension.h",
"internal/field.h",
"internal/file.h",
"internal/message.h",
"internal/size_log2.h",
"internal/sub.h",
"message.h",
"sub.h",
"types.h",
],
copts = UPB_DEFAULT_COPTS,
visibility = ["//visibility:public"],
Expand Down
1 change: 1 addition & 0 deletions upb/wire/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ cc_library(
"//upb:message_tagged_ptr",
"//upb:message_types",
"//upb:mini_table",
"//upb:mini_table_internal",
"//upb:port",
"//upb/mem:internal",
"//third_party/utf8_range",
Expand Down

0 comments on commit 3dac469

Please sign in to comment.