1- # Copyright (c) 2009-2021, Google LLC
2- # All rights reserved.
3- #
4- # Use of this source code is governed by a BSD-style
5- # license that can be found in the LICENSE file or at
6- # https://developers.google.com/open-source/licenses/bsd
7-
81load ("@bazel_skylib//:bzl_library.bzl" , "bzl_library" )
92
10- licenses ([ "notice " ])
3+ package ( default_applicable_licenses = [ "//:license " ])
114
125bzl_library (
136 name = "proto_library_bzl" ,
147 srcs = ["proto_library.bzl" ],
158 visibility = ["//visibility:public" ],
169 deps = [
1710 "//bazel/private:proto_library_rule_bzl" ,
18- "@proto_bazel_features//:features" ,
1911 ],
2012)
2113
2214bzl_library (
2315 name = "cc_proto_library_bzl" ,
2416 srcs = ["cc_proto_library.bzl" ],
2517 visibility = ["//visibility:public" ],
26- deps = ["//bazel/private:bazel_cc_proto_library_bzl" ],
18+ deps = [
19+ "//bazel/private/oss:cc_proto_library_bzl" ,
20+ ],
2721)
2822
2923bzl_library (
3024 name = "java_proto_library_bzl" ,
3125 srcs = ["java_proto_library.bzl" ],
3226 visibility = ["//visibility:public" ],
33- deps = ["//bazel/private:bazel_java_proto_library_rule_bzl" ],
27+ deps = [
28+ "//bazel/private:java_proto_library_bzl" ,
29+ ],
3430)
3531
3632bzl_library (
@@ -45,23 +41,24 @@ bzl_library(
4541 srcs = ["py_proto_library.bzl" ],
4642 visibility = ["//visibility:public" ],
4743 deps = [
48- "//bazel/common:proto_common_bzl" ,
49- "//bazel/common:proto_info_bzl" ,
50- "//bazel/private:toolchain_helpers_bzl" ,
51- "@rules_python//python:py_info_bzl" ,
44+ "//bazel/private/oss:py_proto_library_bzl" ,
5245 ],
5346)
5447
5548bzl_library (
56- name = "upb_proto_library_bzl" ,
57- srcs = [
58- "upb_c_proto_library.bzl" ,
59- "upb_minitable_proto_library.bzl" ,
60- "upb_proto_library.bzl" ,
61- "upb_proto_reflection_library.bzl" ,
62- ],
49+ name = "upb_c_proto_library_bzl" ,
50+ srcs = ["upb_c_proto_library.bzl" ],
51+ deprecation = "Use upb/bazel:upb_proto_library_bzl instead" ,
52+ visibility = ["//visibility:public" ],
53+ deps = ["//upb/bazel:upb_proto_library_bzl" ],
54+ )
55+
56+ bzl_library (
57+ name = "upb_proto_reflection_library_bzl" ,
58+ srcs = ["upb_proto_reflection_library.bzl" ],
59+ deprecation = "Use upb/bazel:upb_proto_library_bzl instead" ,
6360 visibility = ["//visibility:public" ],
64- deps = ["//bazel/private:upb_proto_library_internal_bzl " ],
61+ deps = ["//upb/bazel:upb_proto_library_bzl " ],
6562)
6663
6764bzl_library (
@@ -75,13 +72,18 @@ filegroup(
7572 name = "for_bazel_tests" ,
7673 testonly = True ,
7774 srcs = [
78- "BUILD.bazel " ,
75+ "BUILD" ,
7976 ":cc_proto_library_bzl" ,
8077 ":java_lite_proto_library_bzl" ,
8178 ":proto_library_bzl" ,
8279 ":py_proto_library_bzl" ,
80+ ":upb_c_proto_library_bzl" ,
81+ ":upb_proto_reflection_library_bzl" ,
8382 "//bazel/common:for_bazel_tests" ,
83+ "//bazel/flags:for_bazel_tests" ,
8484 "//bazel/toolchains:for_bazel_tests" ,
8585 ],
86- visibility = ["//bazel/private:__pkg__" ],
86+ visibility = [
87+ "//bazel/private:__pkg__" ,
88+ ],
8789)
0 commit comments