Remove defs.bzl usages

BEGIN_PUBLIC
Remove defs.bzl usages
END_PUBLIC

PiperOrigin-RevId: 693709660
Change-Id: I1c92999e23c153f865ad68ab802d907abaea74eb
This commit is contained in:
Googler 2024-11-06 06:47:33 -08:00 committed by Copybara-Service
parent 76413676fc
commit 7e5f6a9391
15 changed files with 30 additions and 16 deletions

2
BUILD
View File

@ -1,4 +1,4 @@
load("//cc:defs.bzl", "cc_library") load("//cc:cc_library.bzl", "cc_library")
package(default_visibility = ["//visibility:public"]) package(default_visibility = ["//visibility:public"])

View File

@ -1,5 +1,3 @@
load("//cc:defs.bzl", "cc_flags_supplier", "cc_library", "compiler_flag")
# Copyright 2018 The Bazel Authors. All rights reserved. # Copyright 2018 The Bazel Authors. All rights reserved.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
@ -14,6 +12,11 @@ load("//cc:defs.bzl", "cc_flags_supplier", "cc_library", "compiler_flag")
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
# #
load("//cc:cc_library.bzl", "cc_library")
load("//cc/toolchains:cc_flags_supplier.bzl", "cc_flags_supplier")
load("//cc/toolchains:compiler_flag.bzl", "compiler_flag")
package(default_visibility = ["//visibility:public"]) package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # Apache 2.0 licenses(["notice"]) # Apache 2.0

View File

@ -12,7 +12,9 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_toolchain", "cc_toolchain_suite") load("@rules_cc//cc:cc_library.bzl", "cc_library")
load("@rules_cc//cc/toolchains:cc_toolchain.bzl", "cc_toolchain")
load("@rules_cc//cc/toolchains:cc_toolchain_suite.bzl", "cc_toolchain_suite")
load(":cc_toolchain_config.bzl", "cc_toolchain_config") load(":cc_toolchain_config.bzl", "cc_toolchain_config")
package(default_visibility = ["//visibility:public"]) package(default_visibility = ["//visibility:public"])

View File

@ -14,8 +14,10 @@
# This becomes the BUILD file for @local_config_cc// under FreeBSD and OpenBSD. # This becomes the BUILD file for @local_config_cc// under FreeBSD and OpenBSD.
load("@rules_cc//cc:cc_library.bzl", "cc_library")
load("@rules_cc//cc/toolchains:cc_toolchain.bzl", "cc_toolchain")
load("@rules_cc//cc/toolchains:cc_toolchain_suite.bzl", "cc_toolchain_suite")
load(":cc_toolchain_config.bzl", "cc_toolchain_config") load(":cc_toolchain_config.bzl", "cc_toolchain_config")
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_toolchain", "cc_toolchain_suite")
package(default_visibility = ["//visibility:public"]) package(default_visibility = ["//visibility:public"])

View File

@ -16,7 +16,8 @@
load(":cc_toolchain_config.bzl", "cc_toolchain_config") load(":cc_toolchain_config.bzl", "cc_toolchain_config")
load(":armeabi_cc_toolchain_config.bzl", "armeabi_cc_toolchain_config") load(":armeabi_cc_toolchain_config.bzl", "armeabi_cc_toolchain_config")
load("@rules_cc//cc:defs.bzl", "cc_toolchain", "cc_toolchain_suite") load("@rules_cc//cc/toolchains:cc_toolchain.bzl", "cc_toolchain")
load("@rules_cc//cc/toolchains:cc_toolchain_suite.bzl", "cc_toolchain_suite")
package(default_visibility = ["//visibility:public"]) package(default_visibility = ["//visibility:public"])

View File

@ -14,7 +14,9 @@
# This becomes the BUILD file for @local_config_cc// under Windows. # This becomes the BUILD file for @local_config_cc// under Windows.
load("@rules_cc//cc:defs.bzl", "cc_toolchain", "cc_toolchain_suite", "cc_library") load("@rules_cc//cc:cc_library.bzl", "cc_library")
load("@rules_cc//cc/toolchains:cc_toolchain.bzl", "cc_toolchain")
load("@rules_cc//cc/toolchains:cc_toolchain_suite.bzl", "cc_toolchain_suite")
load(":windows_cc_toolchain_config.bzl", "cc_toolchain_config") load(":windows_cc_toolchain_config.bzl", "cc_toolchain_config")
load(":armeabi_cc_toolchain_config.bzl", "armeabi_cc_toolchain_config") load(":armeabi_cc_toolchain_config.bzl", "armeabi_cc_toolchain_config")

View File

@ -29,7 +29,9 @@
# #
# This example demonstrates both approaches. # This example demonstrates both approaches.
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_toolchain", "cc_toolchain_suite") load("@rules_cc//cc:cc_library.bzl", "cc_library")
load("@rules_cc//cc/toolchains:cc_toolchain.bzl", "cc_toolchain")
load("@rules_cc//cc/toolchains:cc_toolchain_suite.bzl", "cc_toolchain_suite")
# Load the Starlark logic defining the toolchain's behavior. For example: what # Load the Starlark logic defining the toolchain's behavior. For example: what
# program runs to compile a source file and how its command line is # program runs to compile a source file and how its command line is

View File

@ -15,7 +15,8 @@
# Example showing how to create a custom Starlark rule that rules_cc can depend on # Example showing how to create a custom Starlark rule that rules_cc can depend on
load("@bazel_skylib//:bzl_library.bzl", "bzl_library") load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library") load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
load("@rules_cc//cc:cc_library.bzl", "cc_library")
load("//examples/my_c_archive:my_c_archive.bzl", "my_c_archive") load("//examples/my_c_archive:my_c_archive.bzl", "my_c_archive")
load("//examples/my_c_compile:my_c_compile.bzl", "my_c_compile") load("//examples/my_c_compile:my_c_compile.bzl", "my_c_compile")

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
load("@rules_cc//cc:defs.bzl", "cc_test") load("@rules_cc//cc:cc_test.bzl", "cc_test")
licenses(["notice"]) licenses(["notice"])

View File

@ -12,7 +12,8 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_shared_library") load("@rules_cc//cc:cc_library.bzl", "cc_library")
load("@rules_cc//cc:cc_shared_library.bzl", "cc_shared_library")
licenses(["notice"]) licenses(["notice"])

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
load("@rules_cc//cc:defs.bzl", "cc_library") load("@rules_cc//cc:cc_library.bzl", "cc_library")
licenses(["notice"]) licenses(["notice"])

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
load("//cc:defs.bzl", "cc_binary") load("//cc:cc_binary.bzl", "cc_binary")
licenses(["notice"]) licenses(["notice"])

View File

@ -13,7 +13,7 @@
# limitations under the License. # limitations under the License.
load("@bazel_skylib//:bzl_library.bzl", "bzl_library") load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("//cc:defs.bzl", "cc_library") load("//cc:cc_library.bzl", "cc_library")
load(":tags.bzl", "TAGS") load(":tags.bzl", "TAGS")
licenses(["notice"]) licenses(["notice"])

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
load("//cc:defs.bzl", "cc_binary") load("//cc:cc_binary.bzl", "cc_binary")
licenses(["notice"]) licenses(["notice"])

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
load("//third_party/rules_shell/shell:sh_test.bzl", "sh_test") load("//third_party/bazel_rules/rules_shell/shell:sh_test.bzl", "sh_test")
sh_test( sh_test(
name = "system_library_test", name = "system_library_test",