Merge pull request #1052 from protocolbuffers:srcWhl PiperOrigin-RevId: 501928730
diff --git a/BUILD b/BUILD index 55a5fce..c6dc478 100644 --- a/BUILD +++ b/BUILD
@@ -54,6 +54,7 @@ "//bazel:amalgamation.bzl", "upb_amalgamation", ) +load("@rules_pkg//:mappings.bzl", "pkg_files") # end:github_only licenses(["notice"]) @@ -1188,6 +1189,22 @@ visibility = ["//cmake:__pkg__"], ) + +pkg_files( + name = "upb_source_files", + srcs = glob( + [ + "upb/**/*.c", + "upb/**/*.h", + "upb/**/*.hpp", + "upb/**/*.inc", + ], + exclude = ["upb/conformance_upb.c"], + ), + strip_prefix = "", + visibility = ["//python/dist:__pkg__"], +) + # end:github_only # begin:google_only