From 3dac469908ad411c69595d573df54b783ec04942 Mon Sep 17 00:00:00 2001 From: Eric Salo Date: Tue, 26 Dec 2023 14:58:57 -0800 Subject: [PATCH] upb: restore the mini_table:internal target PiperOrigin-RevId: 593861882 --- upb/BUILD | 11 +++++++++++ upb/message/BUILD | 2 ++ upb/mini_descriptor/BUILD | 1 + upb/mini_table/BUILD | 25 +++++++++++++++++++++---- upb/wire/BUILD | 1 + 5 files changed, 36 insertions(+), 4 deletions(-) diff --git a/upb/BUILD b/upb/BUILD index 094054b14783e..9a70859446446 100644 --- a/upb/BUILD +++ b/upb/BUILD @@ -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", @@ -390,6 +396,7 @@ upb_amalgamation( ":mini_descriptor_internal", ":mini_table", ":mini_table_compat", + ":mini_table_internal", ":port", ":reflection", ":reflection_internal", @@ -437,6 +444,8 @@ upb_amalgamation( ":mini_descriptor", ":mini_descriptor_internal", ":mini_table", + ":mini_table_compat", + ":mini_table_internal", ":port", ":reflection", ":reflection_internal", @@ -485,6 +494,8 @@ upb_amalgamation( ":mini_descriptor", ":mini_descriptor_internal", ":mini_table", + ":mini_table_compat", + ":mini_table_internal", ":port", ":reflection", ":reflection_internal", diff --git a/upb/message/BUILD b/upb/message/BUILD index 6a2660ace90c4..8fac360429e5c 100644 --- a/upb/message/BUILD +++ b/upb/message/BUILD @@ -81,6 +81,7 @@ cc_library( "//upb:base", "//upb:mem", "//upb:mini_table", + "//upb:mini_table_internal", "//upb:port", ], ) @@ -118,6 +119,7 @@ cc_library( "//upb:hash", "//upb:mem", "//upb:mini_table", + "//upb:mini_table_internal", "//upb:port", ], ) diff --git a/upb/mini_descriptor/BUILD b/upb/mini_descriptor/BUILD index 9ea571e6bbe28..5ce1db0277cea 100644 --- a/upb/mini_descriptor/BUILD +++ b/upb/mini_descriptor/BUILD @@ -24,6 +24,7 @@ cc_library( "//upb:base_internal", "//upb:mem", "//upb:mini_table", + "//upb:mini_table_internal", "//upb:port", ], ) diff --git a/upb/mini_table/BUILD b/upb/mini_table/BUILD index 4c73d1c39a453..7fb1c1693ebf7 100644 --- a/upb/mini_table/BUILD +++ b/upb/mini_table/BUILD @@ -14,7 +14,6 @@ cc_library( name = "mini_table", srcs = [ "extension_registry.c", - "internal/message.c", "message.c", ], hdrs = [ @@ -23,6 +22,27 @@ 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", @@ -30,9 +50,6 @@ cc_library( "internal/message.h", "internal/size_log2.h", "internal/sub.h", - "message.h", - "sub.h", - "types.h", ], copts = UPB_DEFAULT_COPTS, visibility = ["//visibility:public"], diff --git a/upb/wire/BUILD b/upb/wire/BUILD index e415a1894de1c..9ee1edd0674b4 100644 --- a/upb/wire/BUILD +++ b/upb/wire/BUILD @@ -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",