Skip to content

Commit a7f14ce

Browse files
Merge pull request #23952 from protocolbuffers/33-cp
bazel: add missing rules_cc loads (#23584)
2 parents 97d4263 + d98e2ef commit a7f14ce

File tree

12 files changed

+16
-0
lines changed

12 files changed

+16
-0
lines changed

lua/BUILD.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
# license that can be found in the LICENSE file or at
66
# https://developers.google.com/open-source/licenses/bsd
77

8+
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
9+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
10+
load("@rules_cc//cc:cc_test.bzl", "cc_test")
811
load("//bazel:proto_library.bzl", "proto_library")
912
load(
1013
"//lua:lua_proto_library.bzl",

pkg/test/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Tests for CMake file list generation
22

3+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
34
load("@rules_shell//shell:sh_test.bzl", "sh_test")
45
load("//pkg:build_systems.bzl", "gen_file_lists")
56
load("//pkg:cc_dist_library.bzl", "cc_dist_library")

ruby/ext/google/protobuf_c/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
load("@build_bazel_rules_apple//apple:apple_binary.bzl", "apple_binary")
2+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
23
load("@rules_pkg//pkg:mappings.bzl", "pkg_files", "strip_prefix")
34
load("//upb/cmake:build_defs.bzl", "staleness_test")
45

ruby/lib/google/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
12
load("@rules_java//java:java_binary.bzl", "java_binary")
23
load("@rules_pkg//pkg:mappings.bzl", "pkg_files", "strip_prefix")
34
load("@rules_ruby//ruby:defs.bzl", "rb_library")

rust/defs.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""This file implements rust_proto_library."""
22

3+
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
34
load("@rules_rust//rust:defs.bzl", "rust_common")
45
load("@rules_rust//rust:rust_common.bzl", "CrateInfo", "DepInfo")
56
load("//bazel/common:proto_common.bzl", "proto_common")

src/google/protobuf/compiler/cpp/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Protocol Buffers Compiler - C++ code generator
33
################################################################################
44

5+
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
56
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
67
load("@rules_pkg//pkg:mappings.bzl", "pkg_files", "strip_prefix")
78
load("//bazel:cc_proto_library.bzl", "cc_proto_library")

src/google/protobuf/compiler/java/full/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# We use abbreviated target names in this directory to work around:
22
# https://github.com/bazelbuild/bazel/issues/18683
33

4+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
45
load("//build_defs:cpp_opts.bzl", "COPTS")
56

67
cc_library(

src/google/protobuf/compiler/java/lite/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
12
load("//build_defs:cpp_opts.bzl", "COPTS")
23

34
cc_library(

src/google/protobuf/compiler/kotlin/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
12
load("//build_defs:cpp_opts.bzl", "COPTS")
23

34
cc_library(

src/google/protobuf/compiler/php/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Protocol Buffers Compiler - PHP code generator
33
################################################################################
44

5+
load("@rules_cc//cc:cc_test.bzl", "cc_test")
56
load("@rules_cc//cc:defs.bzl", "cc_library")
67
load("@rules_pkg//pkg:mappings.bzl", "pkg_files", "strip_prefix")
78
load("//build_defs:cpp_opts.bzl", "COPTS")

0 commit comments

Comments
 (0)