Skip to content

Commit

Permalink
bazel: Replace pw_cc_library with cc_library
Browse files Browse the repository at this point in the history
This change was automatically generated by running,

    buildozer 'set kind cc_library' ...:%pw_cc_library
    buildozer 'fix unusedLoads' ...:__pkg__

The first command converted all `pw_cc_library` targets to `cc_library`.
The second removed the (now unused) loads of `pw_cc_library` from the
affected BUILD.bazel files.

This change is just a no-op cleanup, since `pw_cc_library` became an
alias for `cc_library` in http://pwrev.dev/178924.

Bug: 267498492
Change-Id: Iefcc21fc5819a21612bbaffaafd1ffbec42faa26
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/186763
Reviewed-by: Armando Montanez <[email protected]>
Pigweed-Auto-Submit: Ted Pudlik <[email protected]>
Commit-Queue: Auto-Submit <[email protected]>
Presubmit-Verified: CQ Bot Account <[email protected]>
  • Loading branch information
tpudlik authored and CQ Bot Account committed Jan 3, 2024
1 parent 9fb521d commit 77dbd41
Show file tree
Hide file tree
Showing 145 changed files with 553 additions and 882 deletions.
7 changes: 1 addition & 6 deletions pw_alignment/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,9 @@
# License for the specific language governing permissions and limitations under
# the License.

load(
"//pw_build:pigweed.bzl",
"pw_cc_library",
)

package(default_visibility = ["//visibility:public"])

pw_cc_library(
cc_library(
name = "pw_alignment",
hdrs = ["public/pw_alignment/alignment.h"],
includes = ["public"],
Expand Down
33 changes: 16 additions & 17 deletions pw_allocator/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

load(
"//pw_build:pigweed.bzl",
"pw_cc_library",
"pw_cc_test",
)

Expand All @@ -24,7 +23,7 @@ licenses(["notice"])

# TODO(b/310035978): Support heap poisoning.

pw_cc_library(
cc_library(
name = "allocator",
srcs = [
"allocator.cc",
Expand All @@ -40,7 +39,7 @@ pw_cc_library(
],
)

pw_cc_library(
cc_library(
name = "allocator_metric_proxy",
hdrs = [
"public/pw_allocator/allocator_metric_proxy.h",
Expand All @@ -55,7 +54,7 @@ pw_cc_library(
],
)

pw_cc_library(
cc_library(
name = "block",
srcs = ["block.cc"],
hdrs = [
Expand All @@ -72,15 +71,15 @@ pw_cc_library(
],
)

pw_cc_library(
cc_library(
name = "buffer",
hdrs = [
"public/pw_allocator/buffer.h",
],
includes = ["public"],
)

pw_cc_library(
cc_library(
name = "fallback_allocator",
hdrs = [
"public/pw_allocator/fallback_allocator.h",
Expand All @@ -96,7 +95,7 @@ pw_cc_library(
],
)

pw_cc_library(
cc_library(
name = "freelist",
srcs = [
"freelist.cc",
Expand All @@ -112,7 +111,7 @@ pw_cc_library(
],
)

pw_cc_library(
cc_library(
name = "freelist_heap",
srcs = [
"freelist_heap.cc",
Expand All @@ -128,7 +127,7 @@ pw_cc_library(
],
)

pw_cc_library(
cc_library(
name = "libc_allocator",
srcs = [
"libc_allocator.cc",
Expand All @@ -145,7 +144,7 @@ pw_cc_library(
],
)

pw_cc_library(
cc_library(
name = "metrics",
srcs = [
"metrics.cc",
Expand All @@ -161,7 +160,7 @@ pw_cc_library(
],
)

pw_cc_library(
cc_library(
name = "multiplex_allocator",
hdrs = [
"public/pw_allocator/multiplex_allocator.h",
Expand All @@ -174,7 +173,7 @@ pw_cc_library(
],
)

pw_cc_library(
cc_library(
name = "null_allocator",
hdrs = [
"public/pw_allocator/null_allocator.h",
Expand All @@ -185,7 +184,7 @@ pw_cc_library(
],
)

pw_cc_library(
cc_library(
name = "simple_allocator",
hdrs = [
"public/pw_allocator/simple_allocator.h",
Expand All @@ -198,7 +197,7 @@ pw_cc_library(
],
)

pw_cc_library(
cc_library(
name = "split_free_list_allocator",
srcs = [
"split_free_list_allocator.cc",
Expand All @@ -217,7 +216,7 @@ pw_cc_library(
],
)

pw_cc_library(
cc_library(
name = "allocator_testing",
testonly = True,
srcs = [
Expand All @@ -240,7 +239,7 @@ pw_cc_library(
],
)

pw_cc_library(
cc_library(
name = "allocator_test_harness",
testonly = True,
srcs = [
Expand All @@ -259,7 +258,7 @@ pw_cc_library(
],
)

pw_cc_library(
cc_library(
name = "allocator_fuzzing",
testonly = True,
srcs = [
Expand Down
9 changes: 4 additions & 5 deletions pw_analog/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@

load(
"//pw_build:pigweed.bzl",
"pw_cc_library",
"pw_cc_test",
)

package(default_visibility = ["//visibility:public"])

licenses(["notice"])

pw_cc_library(
cc_library(
name = "analog_input",
hdrs = [
"public/pw_analog/analog_input.h",
Expand All @@ -34,7 +33,7 @@ pw_cc_library(
],
)

pw_cc_library(
cc_library(
name = "microvolt_input",
hdrs = [
"public/pw_analog/microvolt_input.h",
Expand All @@ -48,7 +47,7 @@ pw_cc_library(
],
)

pw_cc_library(
cc_library(
name = "microvolt_input_gmock",
testonly = True,
hdrs = [
Expand All @@ -61,7 +60,7 @@ pw_cc_library(
],
)

pw_cc_library(
cc_library(
name = "analog_input_gmock",
testonly = True,
hdrs = [
Expand Down
9 changes: 2 additions & 7 deletions pw_arduino_build/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,11 @@
# License for the specific language governing permissions and limitations under
# the License.

load(
"//pw_build:pigweed.bzl",
"pw_cc_library",
)

package(default_visibility = ["//visibility:public"])

licenses(["notice"])

pw_cc_library(
cc_library(
name = "pw_arduino_build",
srcs = ["arduino_main_wrapper.cc"],
hdrs = ["public/pw_arduino_build/init.h"],
Expand All @@ -33,7 +28,7 @@ pw_cc_library(
)

# Used in targets/arduino
pw_cc_library(
cc_library(
name = "pw_arduino_build_header",
hdrs = ["public/pw_arduino_build/init.h"],
includes = ["public"],
Expand Down
15 changes: 7 additions & 8 deletions pw_assert/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
load(
"//pw_build:pigweed.bzl",
"pw_cc_facade",
"pw_cc_library",
"pw_cc_test",
)

Expand All @@ -42,7 +41,7 @@ pw_cc_facade(
],
)

pw_cc_library(
cc_library(
name = "pw_assert",
hdrs = [
"assert_compatibility_public_overrides/pw_assert_backend/assert_backend.h",
Expand All @@ -62,13 +61,13 @@ pw_cc_library(
],
)

pw_cc_library(
cc_library(
name = "config",
hdrs = ["public/pw_assert/config.h"],
includes = ["public"],
)

pw_cc_library(
cc_library(
name = "libc_assert",
hdrs = [
"libc_assert_public_overrides/assert.h",
Expand All @@ -85,15 +84,15 @@ pw_cc_library(
],
)

pw_cc_library(
cc_library(
name = "print_and_abort",
hdrs = ["public/pw_assert/internal/print_and_abort.h"],
includes = ["public"],
visibility = ["//visibility:private"],
deps = [":config"],
)

pw_cc_library(
cc_library(
name = "print_and_abort_assert_backend",
hdrs = ["print_and_abort_assert_public_overrides/pw_assert_backend/assert_backend.h"],
includes = ["print_and_abort_assert_public_overrides"],
Expand All @@ -103,15 +102,15 @@ pw_cc_library(
],
)

pw_cc_library(
cc_library(
name = "print_and_abort_check_backend",
hdrs =
["print_and_abort_check_public_overrides/pw_assert_backend/check_backend.h"],
includes = ["print_and_abort_public_overrides"],
deps = [":print_and_abort"],
)

pw_cc_library(
cc_library(
name = "backend_multiplexer",
visibility = ["@pigweed//targets:__pkg__"],
deps = [
Expand Down
7 changes: 3 additions & 4 deletions pw_assert_basic/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
load(
"//pw_build:pigweed.bzl",
"pw_cc_facade",
"pw_cc_library",
)

package(default_visibility = ["//visibility:public"])
Expand All @@ -29,7 +28,7 @@ licenses(["notice"])
# If you point @pigweed//targets:pw_assert_backend to //pw_assert_basic, then
# @pigweed//targets:pw_assert_backend_impl should point to
# //pw_assert_basic:impl.
pw_cc_library(
cc_library(
name = "pw_assert_basic",
hdrs = [
"public/pw_assert_basic/assert_basic.h",
Expand All @@ -45,7 +44,7 @@ pw_cc_library(
],
)

pw_cc_library(
cc_library(
name = "impl",
srcs = [
"assert_basic.cc",
Expand All @@ -71,7 +70,7 @@ pw_cc_facade(
],
)

pw_cc_library(
cc_library(
name = "pw_assert_basic_handler",
srcs = [
"basic_handler.cc",
Expand Down
9 changes: 2 additions & 7 deletions pw_assert_log/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,11 @@
# License for the specific language governing permissions and limitations under
# the License.

load(
"//pw_build:pigweed.bzl",
"pw_cc_library",
)

package(default_visibility = ["//visibility:public"])

licenses(["notice"])

pw_cc_library(
cc_library(
name = "check_backend",
srcs = [
"assert_log.cc",
Expand All @@ -41,7 +36,7 @@ pw_cc_library(
],
)

pw_cc_library(
cc_library(
name = "assert_backend",
hdrs = [
"assert_backend_public_overrides/pw_assert_backend/assert_backend.h",
Expand Down
Loading

0 comments on commit 77dbd41

Please sign in to comment.