Redirect cc_proto_library to protobuf

PiperOrigin-RevId: 683876696
Change-Id: I0444b3b3bc3ac67bb641d82fe1d67117a6e2bcae
This commit is contained in:
Googler 2024-10-08 21:17:42 -07:00 committed by Copybara-Service
parent a2949e206e
commit 013a082858
3 changed files with 5 additions and 1 deletions

View File

@ -6,6 +6,7 @@ module(
bazel_dep(name = "bazel_skylib", version = "1.7.1") bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "platforms", version = "0.0.10") bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "protobuf", version = "27.0")
cc_configure = use_extension("//cc:extensions.bzl", "cc_configure_extension") cc_configure = use_extension("//cc:extensions.bzl", "cc_configure_extension")
use_repo(cc_configure, "local_config_cc", "local_config_cc_toolchains") use_repo(cc_configure, "local_config_cc", "local_config_cc_toolchains")

2
cc/WORKSPACE.bzlmod Normal file
View File

@ -0,0 +1,2 @@
# A completely empty WORKSPACE file to replace the original WORKSPACE content when enabling Bzlmod.
# No WORKSPACE prefix or suffix are added for this file.

View File

@ -13,6 +13,7 @@
# limitations under the License. # limitations under the License.
"""Starlark rules for building C++ projects.""" """Starlark rules for building C++ projects."""
load("@protobuf//bazel:cc_proto_library.bzl", _cc_proto_library = "cc_proto_library")
load("//cc:cc_binary.bzl", _cc_binary = "cc_binary") load("//cc:cc_binary.bzl", _cc_binary = "cc_binary")
load("//cc:cc_import.bzl", _cc_import = "cc_import") load("//cc:cc_import.bzl", _cc_import = "cc_import")
load("//cc:cc_library.bzl", _cc_library = "cc_library") load("//cc:cc_library.bzl", _cc_library = "cc_library")
@ -42,7 +43,7 @@ cc_shared_library = _cc_shared_library
objc_library = _objc_library objc_library = _objc_library
objc_import = _objc_import objc_import = _objc_import
cc_proto_library = native.cc_proto_library # For compatibility with current users cc_proto_library = _cc_proto_library # For compatibility with current users
# Toolchain rules # Toolchain rules