bazel: Fix all buildifier warnings
Automatically generated by running,
buildifier --lint=fix $(find . -name 'BUILD.bazel' -not -path "./third_party/*")
Bug: 390694482
Change-Id: I85f541cce8116dd5f60bec794dcc7cf7beb56968
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/experimental/+/272014
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dave Roth <davidroth@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Ted Pudlik <tpudlik@google.com>
diff --git a/MODULE.bazel b/MODULE.bazel
index 157416a..0479085 100644
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -17,6 +17,7 @@
bazel_dep(name = "pico-sdk", version = "2.0.0")
bazel_dep(name = "pigweed")
bazel_dep(name = "platforms", version = "0.0.10")
+bazel_dep(name = "rules_cc", version = "0.0.17")
bazel_dep(name = "rules_python", version = "0.40.0")
local_path_override(
diff --git a/pw_display_driver/BUILD.bazel b/pw_display_driver/BUILD.bazel
index 8bb0fe8..0e9e674 100644
--- a/pw_display_driver/BUILD.bazel
+++ b/pw_display_driver/BUILD.bazel
@@ -12,6 +12,8 @@
# License for the specific language governing permissions and limitations under
# the License.
+load("@rules_cc//cc:cc_library.bzl", "cc_library")
+
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
diff --git a/pw_display_driver_null/BUILD.bazel b/pw_display_driver_null/BUILD.bazel
index ec4c241..ffb983d 100644
--- a/pw_display_driver_null/BUILD.bazel
+++ b/pw_display_driver_null/BUILD.bazel
@@ -12,6 +12,8 @@
# License for the specific language governing permissions and limitations under
# the License.
+load("@rules_cc//cc:cc_library.bzl", "cc_library")
+
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
diff --git a/pw_display_driver_st7789/BUILD.bazel b/pw_display_driver_st7789/BUILD.bazel
index 373b7a9..20bd661 100644
--- a/pw_display_driver_st7789/BUILD.bazel
+++ b/pw_display_driver_st7789/BUILD.bazel
@@ -12,6 +12,8 @@
# License for the specific language governing permissions and limitations under
# the License.
+load("@rules_cc//cc:cc_library.bzl", "cc_library")
+
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
diff --git a/pw_graphics/pw_color/BUILD.bazel b/pw_graphics/pw_color/BUILD.bazel
index c101e9c..14f9528 100644
--- a/pw_graphics/pw_color/BUILD.bazel
+++ b/pw_graphics/pw_color/BUILD.bazel
@@ -12,6 +12,7 @@
# License for the specific language governing permissions and limitations under
# the License.
load("@pigweed//pw_build:pigweed.bzl", "pw_cc_test")
+load("@rules_cc//cc:cc_library.bzl", "cc_library")
package(default_visibility = ["//visibility:public"])
diff --git a/pw_graphics/pw_display/BUILD.bazel b/pw_graphics/pw_display/BUILD.bazel
index 71196fa..175fc9e 100644
--- a/pw_graphics/pw_display/BUILD.bazel
+++ b/pw_graphics/pw_display/BUILD.bazel
@@ -16,6 +16,7 @@
"@pigweed//pw_build:pigweed.bzl",
"pw_cc_test",
)
+load("@rules_cc//cc:cc_library.bzl", "cc_library")
package(default_visibility = ["//visibility:public"])
diff --git a/pw_graphics/pw_draw/BUILD.bazel b/pw_graphics/pw_draw/BUILD.bazel
index af0583d..888502b 100644
--- a/pw_graphics/pw_draw/BUILD.bazel
+++ b/pw_graphics/pw_draw/BUILD.bazel
@@ -16,6 +16,7 @@
"@pigweed//pw_build:pigweed.bzl",
"pw_cc_test",
)
+load("@rules_cc//cc:cc_library.bzl", "cc_library")
package(default_visibility = ["//visibility:public"])
diff --git a/pw_graphics/pw_framebuffer/BUILD.bazel b/pw_graphics/pw_framebuffer/BUILD.bazel
index 8b66636..0e65727 100644
--- a/pw_graphics/pw_framebuffer/BUILD.bazel
+++ b/pw_graphics/pw_framebuffer/BUILD.bazel
@@ -16,6 +16,7 @@
"@pigweed//pw_build:pigweed.bzl",
"pw_cc_test",
)
+load("@rules_cc//cc:cc_library.bzl", "cc_library")
package(default_visibility = ["//visibility:public"])
diff --git a/pw_graphics/pw_framebuffer_pool/BUILD.bazel b/pw_graphics/pw_framebuffer_pool/BUILD.bazel
index 5505754..99ca7e7 100644
--- a/pw_graphics/pw_framebuffer_pool/BUILD.bazel
+++ b/pw_graphics/pw_framebuffer_pool/BUILD.bazel
@@ -12,6 +12,8 @@
# License for the specific language governing permissions and limitations under
# the License.
+load("@rules_cc//cc:cc_library.bzl", "cc_library")
+
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
diff --git a/pw_graphics/pw_geometry/BUILD.bazel b/pw_graphics/pw_geometry/BUILD.bazel
index 365a60d..ba26a52 100644
--- a/pw_graphics/pw_geometry/BUILD.bazel
+++ b/pw_graphics/pw_geometry/BUILD.bazel
@@ -12,6 +12,8 @@
# License for the specific language governing permissions and limitations under
# the License.
+load("@rules_cc//cc:cc_library.bzl", "cc_library")
+
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
diff --git a/pw_pixel_pusher/BUILD.bazel b/pw_pixel_pusher/BUILD.bazel
index 4642deb..240e3b4 100644
--- a/pw_pixel_pusher/BUILD.bazel
+++ b/pw_pixel_pusher/BUILD.bazel
@@ -12,6 +12,8 @@
# License for the specific language governing permissions and limitations under
# the License.
+load("@rules_cc//cc:cc_library.bzl", "cc_library")
+
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
diff --git a/pw_pixel_pusher_rp2040_pio/BUILD.bazel b/pw_pixel_pusher_rp2040_pio/BUILD.bazel
index 04c3fda..88072d5 100644
--- a/pw_pixel_pusher_rp2040_pio/BUILD.bazel
+++ b/pw_pixel_pusher_rp2040_pio/BUILD.bazel
@@ -12,6 +12,8 @@
# License for the specific language governing permissions and limitations under
# the License.
+load("@rules_cc//cc:cc_library.bzl", "cc_library")
+
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
diff --git a/pw_sys_io_baremetal_stm32f769/BUILD.bazel b/pw_sys_io_baremetal_stm32f769/BUILD.bazel
index 5a09979..e218d75 100644
--- a/pw_sys_io_baremetal_stm32f769/BUILD.bazel
+++ b/pw_sys_io_baremetal_stm32f769/BUILD.bazel
@@ -12,6 +12,8 @@
# License for the specific language governing permissions and limitations under
# the License.
+load("@rules_cc//cc:cc_library.bzl", "cc_library")
+
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
diff --git a/targets/mimxrt595_evk/BUILD.bazel b/targets/mimxrt595_evk/BUILD.bazel
index e2e58df..8acfb91 100644
--- a/targets/mimxrt595_evk/BUILD.bazel
+++ b/targets/mimxrt595_evk/BUILD.bazel
@@ -12,6 +12,8 @@
# License for the specific language governing permissions and limitations under
# the License.
+load("@rules_cc//cc:cc_library.bzl", "cc_library")
+
package(default_visibility = ["//visibility:public"])
licenses(["notice"])