Add bzl_libraries to protobuf

PiperOrigin-RevId: 623784182
pull/16461/head
Protobuf Team Bot 2024-04-11 04:32:18 -07:00 committed by Copybara-Service
parent fd19d7439c
commit 7a7efe9e64
5 changed files with 110 additions and 26 deletions

View File

@ -1,26 +0,0 @@
# Copyright (c) 2009-2021, Google LLC
# All rights reserved.
#
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
# begin:google_only
# package(default_applicable_licenses = ["//upb:license"])
# end:google_only
licenses(["notice"])
bzl_library(
name = "upb_proto_library_bzl",
srcs = [
"upb_c_proto_library.bzl",
"upb_minitable_proto_library.bzl",
"upb_proto_library.bzl",
"upb_proto_reflection_library.bzl",
],
visibility = ["//visibility:public"],
deps = ["//bazel/private:upb_proto_library_internal_bzl"],
)

57
bazel/BUILD.bazel Normal file
View File

@ -0,0 +1,57 @@
# Copyright (c) 2009-2021, Google LLC
# All rights reserved.
#
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
licenses(["notice"])
bzl_library(
name = "proto_library_bzl",
srcs = ["proto_library.bzl"],
visibility = ["//visibility:public"],
)
bzl_library(
name = "cc_proto_library_bzl",
srcs = ["cc_proto_library.bzl"],
visibility = ["//visibility:public"],
)
bzl_library(
name = "java_proto_library_bzl",
srcs = ["java_proto_library.bzl"],
visibility = ["//visibility:public"],
)
bzl_library(
name = "java_lite_proto_library_bzl",
srcs = ["java_lite_proto_library.bzl"],
visibility = ["//visibility:public"],
)
bzl_library(
name = "py_proto_library_bzl",
srcs = ["py_proto_library.bzl"],
visibility = ["//visibility:public"],
deps = [
"//bazel/common:proto_common_bzl",
"//bazel/common:proto_info_bzl",
"@rules_python//python:py_info_bzl",
],
)
bzl_library(
name = "upb_proto_library_bzl",
srcs = [
"upb_c_proto_library.bzl",
"upb_minitable_proto_library.bzl",
"upb_proto_library.bzl",
"upb_proto_reflection_library.bzl",
],
visibility = ["//visibility:public"],
deps = ["//bazel/private:upb_proto_library_internal_bzl"],
)

View File

@ -10,3 +10,25 @@ bzl_library(
"//bazel/private:native_bzl",
],
)
bzl_library(
name = "proto_info_bzl",
srcs = [
"proto_info.bzl",
],
visibility = ["//visibility:public"],
deps = [
"//bazel/private:native_bzl",
],
)
bzl_library(
name = "proto_lang_toolchain_info_bzl",
srcs = [
"proto_lang_toolchain_info.bzl",
],
visibility = ["//visibility:public"],
deps = [
":proto_common.bzl",
],
)

View File

@ -32,3 +32,11 @@ bzl_library(
],
visibility = ["//bazel:__subpackages__"],
)
bzl_library(
name = "proto_toolchain_rule_bzl",
srcs = [
"proto_toolchain_rule.bzl",
],
visibility = ["//bazel:__subpackages__"],
)

View File

@ -0,0 +1,23 @@
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
bzl_library(
name = "proto_toolchain_bzl",
srcs = [
"proto_toolchain.bzl",
],
visibility = ["//visibility:public"],
deps = [
"//bazel/private:proto_toolchain_rule_bzl",
],
)
bzl_library(
name = "proto_lang_toolchain_bzl",
srcs = [
"proto_lang_toolchain.bzl",
],
visibility = ["//visibility:public"],
deps = [
"//bazel/common:proto_common_bzl",
],
)