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 9f11b14
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 4 deletions.
5 changes: 5 additions & 0 deletions upb/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ upb_amalgamation(
":wire",
":wire_reader",
"//upb/mem:internal",
"//upb/mini_table:internal",
],
strip_import_prefix = ["src"],
)
Expand Down Expand Up @@ -437,12 +438,14 @@ upb_amalgamation(
":mini_descriptor",
":mini_descriptor_internal",
":mini_table",
":mini_table_compat",
":port",
":reflection",
":reflection_internal",
":wire",
":wire_reader",
"//upb/mem:internal",
"//upb/mini_table:internal",
],
prefix = "php-",
strip_import_prefix = ["src"],
Expand Down Expand Up @@ -485,12 +488,14 @@ upb_amalgamation(
":mini_descriptor",
":mini_descriptor_internal",
":mini_table",
":mini_table_compat",
":port",
":reflection",
":reflection_internal",
":wire",
":wire_reader",
"//upb/mem:internal",
"//upb/mini_table:internal",
],
prefix = "ruby-",
strip_import_prefix = ["src"],
Expand Down
2 changes: 2 additions & 0 deletions upb/message/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ cc_library(
"//upb:mem",
"//upb:mini_table",
"//upb:port",
"//upb/mini_table:internal",
],
)

Expand Down Expand Up @@ -119,6 +120,7 @@ cc_library(
"//upb:mem",
"//upb:mini_table",
"//upb:port",
"//upb/mini_table:internal",
],
)

Expand Down
1 change: 1 addition & 0 deletions upb/mini_descriptor/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ cc_library(
"//upb:mem",
"//upb:mini_table",
"//upb:port",
"//upb/mini_table:internal",
],
)

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 @@ -38,6 +38,7 @@ cc_library(
"//upb:mini_table",
"//upb:port",
"//upb/mem:internal",
"//upb/mini_table:internal",
"//third_party/utf8_range",
],
)
Expand Down

0 comments on commit 9f11b14

Please sign in to comment.