1load("@bazel_skylib//:bzl_library.bzl", "bzl_library") 2 3licenses(["notice"]) 4 5bzl_library( 6 name = "native_bzl", 7 srcs = [ 8 "native.bzl", 9 ], 10 visibility = [ 11 "//java:__subpackages__", 12 "@compatibility_proxy//:__pkg__", 13 ], 14) 15 16bzl_library( 17 name = "internals", 18 srcs = [ 19 "boot_class_path_info.bzl", 20 "java_common.bzl", 21 "java_common_internal.bzl", 22 "java_info.bzl", 23 "message_bundle_info.bzl", 24 ], 25 visibility = [ 26 "//java:__subpackages__", 27 "@compatibility_proxy//:__pkg__", 28 ], 29 deps = [ 30 ":native_bzl", 31 "//java/common/rules:toolchain_rules", 32 "//java/common/rules/impl:java_helper_bzl", 33 "@bazel_skylib//lib:paths", 34 "@rules_cc//cc:find_cc_toolchain_bzl", 35 "@rules_cc//cc/common", 36 ], 37) 38 39# Exposed for use by the protobuf. 40bzl_library( 41 name = "proto_support", 42 srcs = ["proto_support.bzl"], 43 visibility = ["//visibility:public"], 44 deps = ["@compatibility_proxy//:proxy_bzl"], 45) 46 47filegroup( 48 name = "srcs", 49 srcs = glob(["**"]), 50 visibility = ["//java:__pkg__"], 51) 52 53filegroup( 54 name = "for_bazel_tests", 55 testonly = 1, 56 srcs = [ 57 "BUILD", 58 ":internals", 59 ":native_bzl", 60 ":proto_support", 61 ], 62 visibility = ["//java:__pkg__"], 63) 64