66# https://developers.google.com/open-source/licenses/bsd
77
88load ("@bazel_skylib//:bzl_library.bzl" , "bzl_library" )
9- load ("@bazel_skylib//lib:selects.bzl" , "selects" )
10- load ("@rules_python//python:defs.bzl" , "py_binary" )
119
1210# begin:google_only
1311# package(default_applicable_licenses = ["//upb:license"])
1412# end:google_only
1513
1614licenses (["notice" ])
1715
18- # begin:google_only
19- # selects.config_setting_group(
20- # name = "android_opt",
21- # match_all = [
22- # "//tools/cc_target_os:android",
23- # "//tools/compilation_mode:opt",
24- # ],
25- # )
26- # end:google_only
27-
28- py_binary (
29- name = "amalgamate" ,
30- srcs = ["amalgamate.py" ],
31- visibility = ["//upb:__pkg__" ],
32- )
33-
34- # py_proto_library() is private rule, only intended for internal use by upb.
35- # Hopefully py_proto_library() will eventually be available in rules_proto or
36- # another upstream package.
37- bzl_library (
38- name = "py_proto_library_bzl" ,
39- srcs = ["py_proto_library.bzl" ],
40- deps = [
41- "@rules_python//python:py_info_bzl" ,
42- ],
43- )
44-
45- bzl_library (
46- name = "upb_proto_library_internal_bzl" ,
47- srcs = [
48- "upb_proto_library_internal/aspect.bzl" ,
49- "upb_proto_library_internal/cc_library_func.bzl" ,
50- "upb_proto_library_internal/copts.bzl" ,
51- "upb_proto_library_internal/rule.bzl" ,
52- ],
53- deps = [
54- "@bazel_skylib//lib:paths" ,
55- "@bazel_tools//tools/cpp:toolchain_utils.bzl" ,
56- "@rules_proto//proto:defs" ,
57- ],
58- )
59-
6016bzl_library (
6117 name = "upb_proto_library_bzl" ,
6218 srcs = [
@@ -67,7 +23,7 @@ bzl_library(
6723 ],
6824 visibility = ["//visibility:public" ],
6925 deps = [
70- ":upb_proto_library_internal_bzl" ,
26+ "//bazel/private :upb_proto_library_internal_bzl" ,
7127 "@rules_proto//proto:defs" ,
7228 ],
7329)
0 commit comments