From 77dbd41823c7ae30e457257fbd7753ede5eb824b Mon Sep 17 00:00:00 2001 From: Ted Pudlik Date: Wed, 3 Jan 2024 23:59:35 +0000 Subject: [PATCH] bazel: Replace pw_cc_library with cc_library 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 Pigweed-Auto-Submit: Ted Pudlik Commit-Queue: Auto-Submit Presubmit-Verified: CQ Bot Account --- pw_alignment/BUILD.bazel | 7 +-- pw_allocator/BUILD.bazel | 33 ++++++----- pw_analog/BUILD.bazel | 9 ++- pw_arduino_build/BUILD.bazel | 9 +-- pw_assert/BUILD.bazel | 15 +++-- pw_assert_basic/BUILD.bazel | 7 +-- pw_assert_log/BUILD.bazel | 9 +-- pw_assert_tokenized/BUILD.bazel | 11 +--- pw_async/BUILD.bazel | 13 ++--- pw_async2/BUILD.bazel | 9 ++- pw_async2_basic/BUILD.bazel | 7 +-- pw_async_basic/BUILD.bazel | 7 +-- pw_base64/BUILD.bazel | 3 +- pw_bloat/BUILD.bazel | 3 +- pw_blob_store/BUILD.bazel | 5 +- pw_bluetooth/BUILD.bazel | 3 +- pw_bluetooth_hci/BUILD.bazel | 7 +-- pw_bluetooth_profiles/BUILD.bazel | 3 +- pw_boot/BUILD.bazel | 5 +- pw_boot_cortex_m/BUILD.bazel | 10 +--- pw_build_info/BUILD.bazel | 9 ++- pw_bytes/BUILD.bazel | 5 +- pw_checksum/BUILD.bazel | 3 +- pw_chrono/BUILD.bazel | 15 +++-- pw_chrono_embos/BUILD.bazel | 9 +-- pw_chrono_freertos/BUILD.bazel | 9 +-- pw_chrono_rp2040/BUILD.bazel | 3 +- pw_chrono_stl/BUILD.bazel | 8 +-- pw_chrono_threadx/BUILD.bazel | 7 +-- pw_compilation_testing/BUILD.bazel | 7 +-- pw_containers/BUILD.bazel | 29 +++++----- pw_containers/size_report/BUILD.bazel | 3 +- pw_cpu_exception/BUILD.bazel | 9 ++- pw_cpu_exception_cortex_m/BUILD.bazel | 19 +++---- pw_crypto/BUILD.bazel | 13 ++--- pw_digital_io/BUILD.bazel | 7 +-- pw_digital_io_mcuxpresso/BUILD.bazel | 3 +- pw_file/BUILD.bazel | 3 +- pw_function/BUILD.bazel | 9 ++- pw_fuzzer/BUILD.bazel | 11 +--- pw_fuzzer/examples/fuzztest/BUILD.bazel | 3 +- pw_hdlc/BUILD.bazel | 11 ++-- pw_hex_dump/BUILD.bazel | 3 +- pw_i2c/BUILD.bazel | 15 +++-- pw_i2c_linux/BUILD.bazel | 3 +- pw_i2c_mcuxpresso/BUILD.bazel | 3 +- pw_interrupt/BUILD.bazel | 3 +- pw_interrupt_cortex_m/BUILD.bazel | 7 +-- pw_interrupt_xtensa/BUILD.bazel | 7 +-- pw_intrusive_ptr/BUILD.bazel | 5 +- pw_kvs/BUILD.bazel | 27 +++++---- pw_libcxx/BUILD.bazel | 7 +-- pw_log/BUILD.bazel | 9 ++- pw_log_basic/BUILD.bazel | 9 +-- pw_log_null/BUILD.bazel | 5 +- pw_log_rpc/BUILD.bazel | 13 ++--- pw_log_string/BUILD.bazel | 7 +-- pw_log_tokenized/BUILD.bazel | 15 +++-- pw_malloc/BUILD.bazel | 3 +- pw_malloc_freelist/BUILD.bazel | 5 +- pw_malloc_freertos/BUILD.bazel | 7 +-- pw_metric/BUILD.bazel | 11 ++-- pw_minimal_cpp_stdlib/BUILD.bazel | 5 +- pw_multibuf/BUILD.bazel | 7 +-- pw_multisink/BUILD.bazel | 11 ++-- pw_perf_test/BUILD.bazel | 21 ++++--- pw_persistent_ram/BUILD.bazel | 5 +- pw_polyfill/BUILD.bazel | 5 +- pw_preprocessor/BUILD.bazel | 5 +- pw_protobuf/BUILD.bazel | 7 +-- pw_protobuf/size_report/BUILD.bazel | 3 +- pw_random/BUILD.bazel | 3 +- pw_result/BUILD.bazel | 5 +- pw_ring_buffer/BUILD.bazel | 3 +- pw_router/BUILD.bazel | 9 ++- pw_rpc/BUILD.bazel | 22 ++++---- pw_rpc/nanopb/BUILD.bazel | 19 +++---- pw_rpc/pwpb/BUILD.bazel | 19 +++---- pw_rpc/raw/BUILD.bazel | 11 ++-- pw_rpc/system_server/BUILD.bazel | 11 +--- pw_rpc_transport/BUILD.bazel | 24 ++++---- pw_snapshot/BUILD.bazel | 3 +- pw_software_update/BUILD.bazel | 11 ++-- pw_span/BUILD.bazel | 3 +- pw_spi/BUILD.bazel | 13 ++--- pw_spi_mcuxpresso/BUILD.bazel | 3 +- pw_status/BUILD.bazel | 3 +- pw_stream/BUILD.bazel | 13 ++--- pw_stream_shmem_mcuxpresso/BUILD.bazel | 3 +- pw_stream_uart_linux/BUILD.bazel | 3 +- pw_stream_uart_mcuxpresso/BUILD.bazel | 3 +- pw_string/BUILD.bazel | 15 +++-- pw_sync/BUILD.bazel | 55 +++++++++---------- pw_sync_baremetal/BUILD.bazel | 11 +--- pw_sync_embos/BUILD.bazel | 17 ++---- pw_sync_freertos/BUILD.bazel | 19 +++---- pw_sync_stl/BUILD.bazel | 18 +++--- pw_sync_threadx/BUILD.bazel | 15 ++--- pw_sys_io/BUILD.bazel | 5 +- pw_sys_io_ambiq_sdk/BUILD.bazel | 7 +-- pw_sys_io_arduino/BUILD.bazel | 9 +-- pw_sys_io_baremetal_lm3s6965evb/BUILD.bazel | 7 +-- pw_sys_io_baremetal_stm32f429/BUILD.bazel | 7 +-- pw_sys_io_emcraft_sf2/BUILD.bazel | 7 +-- pw_sys_io_mcuxpresso/BUILD.bazel | 7 +-- pw_sys_io_rp2040/BUILD.bazel | 7 +-- pw_sys_io_stdio/BUILD.bazel | 6 +- pw_sys_io_stm32cube/BUILD.bazel | 7 +-- pw_system/BUILD.bazel | 39 +++++++------ pw_thread/BUILD.bazel | 39 +++++++------ pw_thread_embos/BUILD.bazel | 19 +++---- pw_thread_freertos/BUILD.bazel | 21 ++++--- pw_thread_stl/BUILD.bazel | 15 +++-- pw_thread_threadx/BUILD.bazel | 15 +++-- pw_tls_client/BUILD.bazel | 11 ++-- pw_tls_client_boringssl/BUILD.bazel | 3 +- pw_tls_client_mbedtls/BUILD.bazel | 3 +- pw_tokenizer/BUILD.bazel | 11 ++-- pw_tokenizer/size_report/BUILD.bazel | 3 +- pw_toolchain/BUILD.bazel | 5 +- pw_toolchain/arm_gcc/BUILD.bazel | 8 +-- pw_trace/BUILD.bazel | 11 ++-- pw_trace_tokenized/BUILD.bazel | 27 +++++---- pw_transfer/BUILD.bazel | 16 +++--- pw_unit_test/BUILD.bazel | 37 ++++++------- pw_varint/BUILD.bazel | 5 +- pw_work_queue/BUILD.bazel | 9 ++- targets/arduino/BUILD.bazel | 7 +-- targets/emcraft_sf2_som/BUILD.bazel | 3 +- targets/host/BUILD.bazel | 7 +-- targets/host_device_simulator/BUILD.bazel | 7 +-- targets/lm3s6965evb_qemu/BUILD.bazel | 7 +-- targets/mimxrt595_evk/BUILD.bazel | 7 +-- targets/mimxrt595_evk_freertos/BUILD.bazel | 7 +-- targets/rp2040/BUILD.bazel | 7 +-- targets/stm32f429i_disc1/BUILD.bazel | 3 +- .../stm32f429i_disc1_stm32cube/BUILD.bazel | 7 +-- third_party/boringssl/BUILD.bazel | 7 +-- third_party/chromium_verifier/BUILD.bazel | 7 +-- third_party/freertos/BUILD.bazel | 19 +++---- third_party/fuchsia/BUILD.bazel | 9 +-- third_party/mbedtls/BUILD.bazel | 7 +-- third_party/mcuxpresso/BUILD.bazel | 7 +-- third_party/smartfusion_mss/BUILD.bazel | 7 +-- third_party/stm32cube/BUILD.bazel | 7 +-- 145 files changed, 553 insertions(+), 882 deletions(-) diff --git a/pw_alignment/BUILD.bazel b/pw_alignment/BUILD.bazel index 298605fc95..8ec664515a 100644 --- a/pw_alignment/BUILD.bazel +++ b/pw_alignment/BUILD.bazel @@ -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"], diff --git a/pw_allocator/BUILD.bazel b/pw_allocator/BUILD.bazel index 401e36eb9a..07cab83e1d 100644 --- a/pw_allocator/BUILD.bazel +++ b/pw_allocator/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -24,7 +23,7 @@ licenses(["notice"]) # TODO(b/310035978): Support heap poisoning. -pw_cc_library( +cc_library( name = "allocator", srcs = [ "allocator.cc", @@ -40,7 +39,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "allocator_metric_proxy", hdrs = [ "public/pw_allocator/allocator_metric_proxy.h", @@ -55,7 +54,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "block", srcs = ["block.cc"], hdrs = [ @@ -72,7 +71,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "buffer", hdrs = [ "public/pw_allocator/buffer.h", @@ -80,7 +79,7 @@ pw_cc_library( includes = ["public"], ) -pw_cc_library( +cc_library( name = "fallback_allocator", hdrs = [ "public/pw_allocator/fallback_allocator.h", @@ -96,7 +95,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "freelist", srcs = [ "freelist.cc", @@ -112,7 +111,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "freelist_heap", srcs = [ "freelist_heap.cc", @@ -128,7 +127,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "libc_allocator", srcs = [ "libc_allocator.cc", @@ -145,7 +144,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "metrics", srcs = [ "metrics.cc", @@ -161,7 +160,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "multiplex_allocator", hdrs = [ "public/pw_allocator/multiplex_allocator.h", @@ -174,7 +173,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "null_allocator", hdrs = [ "public/pw_allocator/null_allocator.h", @@ -185,7 +184,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "simple_allocator", hdrs = [ "public/pw_allocator/simple_allocator.h", @@ -198,7 +197,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "split_free_list_allocator", srcs = [ "split_free_list_allocator.cc", @@ -217,7 +216,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "allocator_testing", testonly = True, srcs = [ @@ -240,7 +239,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "allocator_test_harness", testonly = True, srcs = [ @@ -259,7 +258,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "allocator_fuzzing", testonly = True, srcs = [ diff --git a/pw_analog/BUILD.bazel b/pw_analog/BUILD.bazel index ad96f25024..128b401b0e 100644 --- a/pw_analog/BUILD.bazel +++ b/pw_analog/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "analog_input", hdrs = [ "public/pw_analog/analog_input.h", @@ -34,7 +33,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "microvolt_input", hdrs = [ "public/pw_analog/microvolt_input.h", @@ -48,7 +47,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "microvolt_input_gmock", testonly = True, hdrs = [ @@ -61,7 +60,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "analog_input_gmock", testonly = True, hdrs = [ diff --git a/pw_arduino_build/BUILD.bazel b/pw_arduino_build/BUILD.bazel index 95146e47c9..e4a70735bb 100644 --- a/pw_arduino_build/BUILD.bazel +++ b/pw_arduino_build/BUILD.bazel @@ -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"], @@ -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"], diff --git a/pw_assert/BUILD.bazel b/pw_assert/BUILD.bazel index 8832be023a..796d25ad9c 100644 --- a/pw_assert/BUILD.bazel +++ b/pw_assert/BUILD.bazel @@ -15,7 +15,6 @@ load( "//pw_build:pigweed.bzl", "pw_cc_facade", - "pw_cc_library", "pw_cc_test", ) @@ -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", @@ -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", @@ -85,7 +84,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "print_and_abort", hdrs = ["public/pw_assert/internal/print_and_abort.h"], includes = ["public"], @@ -93,7 +92,7 @@ pw_cc_library( 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"], @@ -103,7 +102,7 @@ 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"], @@ -111,7 +110,7 @@ pw_cc_library( deps = [":print_and_abort"], ) -pw_cc_library( +cc_library( name = "backend_multiplexer", visibility = ["@pigweed//targets:__pkg__"], deps = [ diff --git a/pw_assert_basic/BUILD.bazel b/pw_assert_basic/BUILD.bazel index b19cd2bbe5..20b193273d 100644 --- a/pw_assert_basic/BUILD.bazel +++ b/pw_assert_basic/BUILD.bazel @@ -15,7 +15,6 @@ load( "//pw_build:pigweed.bzl", "pw_cc_facade", - "pw_cc_library", ) package(default_visibility = ["//visibility:public"]) @@ -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", @@ -45,7 +44,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "impl", srcs = [ "assert_basic.cc", @@ -71,7 +70,7 @@ pw_cc_facade( ], ) -pw_cc_library( +cc_library( name = "pw_assert_basic_handler", srcs = [ "basic_handler.cc", diff --git a/pw_assert_log/BUILD.bazel b/pw_assert_log/BUILD.bazel index 2f58bdfde6..92551b9a38 100644 --- a/pw_assert_log/BUILD.bazel +++ b/pw_assert_log/BUILD.bazel @@ -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", @@ -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", diff --git a/pw_assert_tokenized/BUILD.bazel b/pw_assert_tokenized/BUILD.bazel index fe6e774122..29e4a0682a 100644 --- a/pw_assert_tokenized/BUILD.bazel +++ b/pw_assert_tokenized/BUILD.bazel @@ -12,11 +12,6 @@ # 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"]) @@ -28,7 +23,7 @@ licenses(["notice"]) # If you point the @pigweed//targets:pw_assert_backend to # //pw_assert_tokenized, then @pigweed//targets:pw_assert_backend_impl should # point to //pw_assert_tokenized:impl. -pw_cc_library( +cc_library( name = "pw_assert_tokenized", hdrs = [ "assert_public_overrides/pw_assert_backend/assert_backend.h", @@ -50,7 +45,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "handler", hdrs = [ "public/pw_assert_tokenized/handler.h", @@ -61,7 +56,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "impl", srcs = [ "log_handler.cc", diff --git a/pw_async/BUILD.bazel b/pw_async/BUILD.bazel index 4c14811009..13403164d0 100644 --- a/pw_async/BUILD.bazel +++ b/pw_async/BUILD.bazel @@ -15,7 +15,6 @@ load( "//pw_build:pigweed.bzl", "pw_cc_facade", - "pw_cc_library", "pw_cc_test", ) @@ -23,7 +22,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "dispatcher", hdrs = [ "public/pw_async/dispatcher.h", @@ -50,7 +49,7 @@ pw_cc_facade( ], ) -pw_cc_library( +cc_library( name = "task", hdrs = ["public/pw_async/task.h"], includes = ["public"], @@ -63,7 +62,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "types", hdrs = [ "public/pw_async/context.h", @@ -83,7 +82,7 @@ pw_cc_facade( deps = [":dispatcher"], ) -pw_cc_library( +cc_library( name = "fake_dispatcher", hdrs = ["public/pw_async/fake_dispatcher.h"], includes = ["public"], @@ -106,14 +105,14 @@ pw_cc_test( ], ) -pw_cc_library( +cc_library( name = "fake_dispatcher_fixture", hdrs = ["public/pw_async/fake_dispatcher_fixture.h"], includes = ["public"], deps = [":fake_dispatcher"], ) -pw_cc_library( +cc_library( name = "heap_dispatcher", srcs = ["heap_dispatcher.cc"], hdrs = ["public/pw_async/heap_dispatcher.h"], diff --git a/pw_async2/BUILD.bazel b/pw_async2/BUILD.bazel index b50186f2e4..39414b11d9 100644 --- a/pw_async2/BUILD.bazel +++ b/pw_async2/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "poll", hdrs = [ "public/pw_async2/poll.h", @@ -40,7 +39,7 @@ pw_cc_test( # NOTE: this target should only be used directly by implementors of the # `dispatcher` facade. -pw_cc_library( +cc_library( name = "dispatcher_base", srcs = [ "dispatcher_base.cc", @@ -62,7 +61,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "dispatcher", hdrs = [ "public/pw_async2/dispatcher.h", @@ -76,7 +75,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "dispatcher_backend_multiplexer", visibility = ["@pigweed//targets:__pkg__"], deps = select({ diff --git a/pw_async2_basic/BUILD.bazel b/pw_async2_basic/BUILD.bazel index 4c7394531b..274d68f51d 100644 --- a/pw_async2_basic/BUILD.bazel +++ b/pw_async2_basic/BUILD.bazel @@ -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 = "dispatcher", srcs = ["dispatcher.cc"], hdrs = [ diff --git a/pw_async_basic/BUILD.bazel b/pw_async_basic/BUILD.bazel index b490bc1865..ed30f32801 100644 --- a/pw_async_basic/BUILD.bazel +++ b/pw_async_basic/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -23,7 +22,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) # Backend for //pw_async:task -pw_cc_library( +cc_library( name = "task", hdrs = [ "public/pw_async_basic/task.h", @@ -40,7 +39,7 @@ pw_cc_library( ) # Backend for //pw_async:fake_dispatcher -pw_cc_library( +cc_library( name = "fake_dispatcher", srcs = ["fake_dispatcher.cc"], hdrs = [ @@ -64,7 +63,7 @@ pw_cc_test( deps = ["//pw_async:fake_dispatcher_fixture"], ) -pw_cc_library( +cc_library( name = "dispatcher", srcs = ["dispatcher.cc"], hdrs = ["public/pw_async_basic/dispatcher.h"], diff --git a/pw_base64/BUILD.bazel b/pw_base64/BUILD.bazel index f9b0a75a74..fe6da90161 100644 --- a/pw_base64/BUILD.bazel +++ b/pw_base64/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_base64", srcs = [ "base64.cc", diff --git a/pw_bloat/BUILD.bazel b/pw_bloat/BUILD.bazel index 73c4628064..a86d72d1fe 100644 --- a/pw_bloat/BUILD.bazel +++ b/pw_bloat/BUILD.bazel @@ -15,7 +15,6 @@ load( "//pw_build:pigweed.bzl", "pw_cc_binary", - "pw_cc_library", ) package(default_visibility = ["//visibility:public"]) @@ -24,7 +23,7 @@ licenses(["notice"]) # Library which uses standard C/C++ functions such as memcpy to prevent them # from showing up within bloat diff reports. -pw_cc_library( +cc_library( name = "bloat_this_binary", srcs = ["bloat_this_binary.cc"], hdrs = ["public/pw_bloat/bloat_this_binary.h"], diff --git a/pw_blob_store/BUILD.bazel b/pw_blob_store/BUILD.bazel index c752ae15a3..09df02429a 100644 --- a/pw_blob_store/BUILD.bazel +++ b/pw_blob_store/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_blob_store", srcs = ["blob_store.cc"], hdrs = [ @@ -44,7 +43,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "flat_file_system_entry", srcs = ["flat_file_system_entry.cc"], hdrs = ["public/pw_blob_store/flat_file_system_entry.h"], diff --git a/pw_bluetooth/BUILD.bazel b/pw_bluetooth/BUILD.bazel index df2c6bc3df..0c915b6705 100644 --- a/pw_bluetooth/BUILD.bazel +++ b/pw_bluetooth/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_bluetooth", hdrs = [ "public/pw_bluetooth/address.h", diff --git a/pw_bluetooth_hci/BUILD.bazel b/pw_bluetooth_hci/BUILD.bazel index 33353c9a45..e46a7457c0 100644 --- a/pw_bluetooth_hci/BUILD.bazel +++ b/pw_bluetooth_hci/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) load("//pw_fuzzer:fuzzer.bzl", "pw_cc_fuzz_test") @@ -23,7 +22,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_bluetooth_hci", deps = [ ":packet", @@ -31,7 +30,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "packet", srcs = [ "packet.cc", @@ -49,7 +48,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "uart_transport", srcs = [ "uart_transport.cc", diff --git a/pw_bluetooth_profiles/BUILD.bazel b/pw_bluetooth_profiles/BUILD.bazel index 680f9f0f83..313aef18f3 100644 --- a/pw_bluetooth_profiles/BUILD.bazel +++ b/pw_bluetooth_profiles/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -29,7 +28,7 @@ filegroup( ) # Device Information Service 1.1 -pw_cc_library( +cc_library( name = "device_info_service", srcs = [ "device_info_service.cc", diff --git a/pw_boot/BUILD.bazel b/pw_boot/BUILD.bazel index edce1884f6..e5484ddc7c 100644 --- a/pw_boot/BUILD.bazel +++ b/pw_boot/BUILD.bazel @@ -15,7 +15,6 @@ load( "//pw_build:pigweed.bzl", "pw_cc_facade", - "pw_cc_library", ) package(default_visibility = ["//visibility:public"]) @@ -33,7 +32,7 @@ pw_cc_facade( ], ) -pw_cc_library( +cc_library( name = "pw_boot", hdrs = [ "public/pw_boot/boot.h", @@ -45,7 +44,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "backend_multiplexer", deps = select({ "@platforms//cpu:armv7-m": ["//pw_boot_cortex_m"], diff --git a/pw_boot_cortex_m/BUILD.bazel b/pw_boot_cortex_m/BUILD.bazel index 9e35ea419c..bb971c27e2 100644 --- a/pw_boot_cortex_m/BUILD.bazel +++ b/pw_boot_cortex_m/BUILD.bazel @@ -11,10 +11,6 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # 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"]) @@ -24,7 +20,7 @@ licenses(["notice"]) # different targets (platforms). exports_files(["basic_cortex_m.ld"]) -pw_cc_library( +cc_library( name = "pw_boot_cortex_m", srcs = [ "core_init.c", @@ -46,7 +42,7 @@ pw_cc_library( ) # The following targets are deprecated, depend on ":pw_boot_cortex_m" instead. -pw_cc_library( +cc_library( name = "armv7m", target_compatible_with = select({ "@platforms//cpu:armv7-m": [], @@ -57,7 +53,7 @@ pw_cc_library( deps = [":pw_boot_cortex_m"], ) -pw_cc_library( +cc_library( name = "armv8m", target_compatible_with = select({ "@platforms//cpu:armv8-m": [], diff --git a/pw_build_info/BUILD.bazel b/pw_build_info/BUILD.bazel index 09c6e45982..ae497b6a44 100644 --- a/pw_build_info/BUILD.bazel +++ b/pw_build_info/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "build_id_header", hdrs = [ "public/pw_build_info/build_id.h", @@ -33,7 +32,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "build_id", srcs = [ "build_id.cc", @@ -52,7 +51,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "build_id_noop", srcs = [ "build_id_noop.cc", @@ -63,7 +62,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "build_id_or_noop", deps = select({ "@platforms//os:windows": [":build_id_noop"], diff --git a/pw_bytes/BUILD.bazel b/pw_bytes/BUILD.bazel index 9a8ded1875..8996d1ae70 100644 --- a/pw_bytes/BUILD.bazel +++ b/pw_bytes/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_bytes", srcs = [ "byte_builder.cc", @@ -47,7 +46,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "bit", hdrs = ["public/pw_bytes/bit.h"], includes = ["public"], diff --git a/pw_checksum/BUILD.bazel b/pw_checksum/BUILD.bazel index adf33dd532..174cdc4933 100644 --- a/pw_checksum/BUILD.bazel +++ b/pw_checksum/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_perf_test", "pw_cc_test", ) @@ -23,7 +22,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_checksum", srcs = [ "crc16_ccitt.cc", diff --git a/pw_chrono/BUILD.bazel b/pw_chrono/BUILD.bazel index c4a0e8c4f4..47515adc76 100644 --- a/pw_chrono/BUILD.bazel +++ b/pw_chrono/BUILD.bazel @@ -16,7 +16,6 @@ load("@rules_python//python:proto.bzl", "py_proto_library") load( "//pw_build:pigweed.bzl", "pw_cc_facade", - "pw_cc_library", "pw_cc_test", ) load("//pw_protobuf_compiler:pw_proto_library.bzl", "pw_proto_library") @@ -25,7 +24,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "epoch", hdrs = [ "public/pw_chrono/epoch.h", @@ -46,7 +45,7 @@ pw_cc_facade( ], ) -pw_cc_library( +cc_library( name = "system_clock", srcs = [ "system_clock.cc", @@ -63,7 +62,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "system_clock_backend_multiplexer", visibility = ["@pigweed//targets:__pkg__"], deps = select({ @@ -74,7 +73,7 @@ pw_cc_library( }), ) -pw_cc_library( +cc_library( name = "system_timer_facade", hdrs = [ "public/pw_chrono/system_timer.h", @@ -86,7 +85,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "system_timer", deps = [ ":system_timer_facade", @@ -94,7 +93,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "system_timer_backend_multiplexer", visibility = ["@pigweed//targets:__pkg__"], deps = select({ @@ -123,7 +122,7 @@ pw_proto_library( deps = [":chrono_proto"], ) -pw_cc_library( +cc_library( name = "simulated_system_clock", hdrs = [ "public/pw_chrono/simulated_system_clock.h", diff --git a/pw_chrono_embos/BUILD.bazel b/pw_chrono_embos/BUILD.bazel index 1a6549bf78..ced8f09a23 100644 --- a/pw_chrono_embos/BUILD.bazel +++ b/pw_chrono_embos/BUILD.bazel @@ -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 = "system_clock", srcs = [ "system_clock.cc", @@ -46,7 +41,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "system_timer", srcs = [ "system_timer.cc", diff --git a/pw_chrono_freertos/BUILD.bazel b/pw_chrono_freertos/BUILD.bazel index 7bc74d958e..35a277817d 100644 --- a/pw_chrono_freertos/BUILD.bazel +++ b/pw_chrono_freertos/BUILD.bazel @@ -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 = "system_clock", srcs = [ "system_clock.cc", @@ -48,7 +43,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "system_timer", srcs = [ "system_timer.cc", diff --git a/pw_chrono_rp2040/BUILD.bazel b/pw_chrono_rp2040/BUILD.bazel index fbbac24b57..7f98c7ab04 100644 --- a/pw_chrono_rp2040/BUILD.bazel +++ b/pw_chrono_rp2040/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "system_clock", hdrs = [ "public/pw_chrono_rp2040/system_clock_config.h", diff --git a/pw_chrono_stl/BUILD.bazel b/pw_chrono_stl/BUILD.bazel index c4a6d7c213..7db08743d7 100644 --- a/pw_chrono_stl/BUILD.bazel +++ b/pw_chrono_stl/BUILD.bazel @@ -12,10 +12,6 @@ # License for the specific language governing permissions and limitations under # the License. -load( - "//pw_build:pigweed.bzl", - "pw_cc_library", -) load( "//pw_build:selects.bzl", "TARGET_COMPATIBLE_WITH_HOST_SELECT", @@ -25,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "system_clock", hdrs = [ "public/pw_chrono_stl/system_clock_config.h", @@ -44,7 +40,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "system_timer", srcs = [ "system_timer.cc", diff --git a/pw_chrono_threadx/BUILD.bazel b/pw_chrono_threadx/BUILD.bazel index cf1f164ba8..c677b20ef6 100644 --- a/pw_chrono_threadx/BUILD.bazel +++ b/pw_chrono_threadx/BUILD.bazel @@ -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 = "system_clock", srcs = [ "system_clock.cc", diff --git a/pw_compilation_testing/BUILD.bazel b/pw_compilation_testing/BUILD.bazel index 5a6fb9f091..71a7b69441 100644 --- a/pw_compilation_testing/BUILD.bazel +++ b/pw_compilation_testing/BUILD.bazel @@ -12,15 +12,10 @@ # License for the specific language governing permissions and limitations under # the License. -load( - "//pw_build:pigweed.bzl", - "pw_cc_library", -) - licenses(["notice"]) # Negative compilation testing is not yet supported in Bazel. -pw_cc_library( +cc_library( name = "negative_compilation_testing", hdrs = ["public/pw_compilation_testing/negative_compilation.h"], includes = ["public"], diff --git a/pw_containers/BUILD.bazel b/pw_containers/BUILD.bazel index 9907950ebd..417ba3f320 100644 --- a/pw_containers/BUILD.bazel +++ b/pw_containers/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_containers", deps = [ ":algorithm", @@ -34,7 +33,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "algorithm", hdrs = [ "public/pw_containers/algorithm.h", @@ -43,7 +42,7 @@ pw_cc_library( includes = ["public"], ) -pw_cc_library( +cc_library( name = "intrusive_list", srcs = [ "intrusive_list.cc", @@ -59,13 +58,13 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "iterator", hdrs = ["public/pw_containers/iterator.h"], includes = ["public"], ) -pw_cc_library( +cc_library( name = "inline_deque", hdrs = [ "public/pw_containers/inline_deque.h", @@ -79,7 +78,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "inline_queue", hdrs = [ "public/pw_containers/inline_queue.h", @@ -90,7 +89,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "variable_length_entry_queue", srcs = ["variable_length_entry_queue.c"], hdrs = ["public/pw_containers/variable_length_entry_queue.h"], @@ -101,7 +100,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "vector", hdrs = [ "public/pw_containers/vector.h", @@ -114,7 +113,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "filtered_view", hdrs = ["public/pw_containers/filtered_view.h"], includes = ["public"], @@ -124,14 +123,14 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "flat_map", hdrs = ["public/pw_containers/flat_map.h"], includes = ["public"], deps = ["//pw_assert"], ) -pw_cc_library( +cc_library( name = "raw_storage", hdrs = [ "public/pw_containers/internal/raw_storage.h", @@ -140,20 +139,20 @@ pw_cc_library( visibility = [":__subpackages__"], ) -pw_cc_library( +cc_library( name = "test_helpers", srcs = ["test_helpers.cc"], hdrs = ["pw_containers_private/test_helpers.h"], visibility = [":__subpackages__"], ) -pw_cc_library( +cc_library( name = "to_array", hdrs = ["public/pw_containers/to_array.h"], includes = ["public"], ) -pw_cc_library( +cc_library( name = "wrapped_iterator", hdrs = ["public/pw_containers/wrapped_iterator.h"], includes = ["public"], diff --git a/pw_containers/size_report/BUILD.bazel b/pw_containers/size_report/BUILD.bazel index 6c64f609bc..c0aa8129bb 100644 --- a/pw_containers/size_report/BUILD.bazel +++ b/pw_containers/size_report/BUILD.bazel @@ -15,10 +15,9 @@ load( "//pw_build:pigweed.bzl", "pw_cc_binary", - "pw_cc_library", ) -pw_cc_library( +cc_library( name = "base_lib", hdrs = ["base.h"], ) diff --git a/pw_cpu_exception/BUILD.bazel b/pw_cpu_exception/BUILD.bazel index 4af80c9ace..b97ea9d164 100644 --- a/pw_cpu_exception/BUILD.bazel +++ b/pw_cpu_exception/BUILD.bazel @@ -15,7 +15,6 @@ load( "//pw_build:pigweed.bzl", "pw_cc_facade", - "pw_cc_library", ) package(default_visibility = ["//visibility:public"]) @@ -59,7 +58,7 @@ pw_cc_facade( deps = ["//pw_preprocessor"], ) -pw_cc_library( +cc_library( name = "entry", hdrs = [ "public/pw_cpu_exception/entry.h", @@ -79,7 +78,7 @@ pw_cc_facade( deps = [":entry"], ) -pw_cc_library( +cc_library( name = "handler", srcs = ["start_exception_handler.cc"], hdrs = ["public/pw_cpu_exception/handler.h"], @@ -97,7 +96,7 @@ pw_cc_facade( deps = [":entry"], ) -pw_cc_library( +cc_library( name = "support", hdrs = ["public/pw_cpu_exception/support.h"], includes = ["public"], @@ -112,7 +111,7 @@ constraint_value( constraint_setting = "//pw_cpu_exception:handler_constraint_setting", ) -pw_cc_library( +cc_library( name = "basic_handler", srcs = ["basic_handler.cc"], deps = [ diff --git a/pw_cpu_exception_cortex_m/BUILD.bazel b/pw_cpu_exception_cortex_m/BUILD.bazel index d0ca9473df..fe410963aa 100644 --- a/pw_cpu_exception_cortex_m/BUILD.bazel +++ b/pw_cpu_exception_cortex_m/BUILD.bazel @@ -15,7 +15,6 @@ load("@rules_python//python:proto.bzl", "py_proto_library") load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) load("//pw_protobuf_compiler:pw_proto_library.bzl", "pw_proto_library") @@ -34,12 +33,12 @@ constraint_value( constraint_setting = "//pw_cpu_exception:support_constraint_setting", ) -pw_cc_library( +cc_library( name = "config", hdrs = ["pw_cpu_exception_cortex_m_private/config.h"], ) -pw_cc_library( +cc_library( name = "cpu_state", hdrs = ["public/pw_cpu_exception_cortex_m/cpu_state.h"], includes = ["public"], @@ -49,7 +48,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "util", srcs = ["util.cc"], hdrs = ["public/pw_cpu_exception_cortex_m/util.h"], @@ -70,7 +69,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "support", srcs = ["support.cc"], deps = [ @@ -86,7 +85,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "proto_dump", srcs = ["proto_dump.cc"], hdrs = ["public/pw_cpu_exception_cortex_m/proto_dump.h"], @@ -119,7 +118,7 @@ pw_proto_library( deps = [":cpu_state_protos"], ) -pw_cc_library( +cc_library( name = "cpu_exception", hdrs = [ "public_overrides/pw_cpu_exception_backend/state.h", @@ -135,7 +134,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "cpu_exception_impl", srcs = ["entry.cc"], deps = [ @@ -149,7 +148,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "snapshot", srcs = ["snapshot.cc"], hdrs = ["public/pw_cpu_exception_cortex_m/snapshot.h"], @@ -168,7 +167,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "cortex_m_constants", hdrs = ["pw_cpu_exception_cortex_m_private/cortex_m_constants.h"], visibility = ["//visibility:private"], diff --git a/pw_crypto/BUILD.bazel b/pw_crypto/BUILD.bazel index 56364710ee..79d6134ebf 100644 --- a/pw_crypto/BUILD.bazel +++ b/pw_crypto/BUILD.bazel @@ -15,7 +15,6 @@ load( "//pw_build:pigweed.bzl", "pw_cc_facade", - "pw_cc_library", "pw_cc_test", ) @@ -38,7 +37,7 @@ pw_cc_facade( ], ) -pw_cc_library( +cc_library( name = "sha256", hdrs = [ "public/pw_crypto/sha256.h", @@ -71,7 +70,7 @@ alias( }), ) -pw_cc_library( +cc_library( name = "sha256_mbedtls", srcs = ["sha256_mbedtls.cc"], hdrs = [ @@ -94,7 +93,7 @@ pw_cc_test( ], ) -pw_cc_library( +cc_library( name = "sha256_mock", srcs = ["sha256_mock.cc"], hdrs = [ @@ -129,7 +128,7 @@ pw_cc_facade( ], ) -pw_cc_library( +cc_library( name = "ecdsa", hdrs = [ "public/pw_crypto/ecdsa.h", @@ -165,7 +164,7 @@ alias( }), ) -pw_cc_library( +cc_library( name = "ecdsa_mbedtls", srcs = ["ecdsa_mbedtls.cc"], deps = [ @@ -176,7 +175,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "ecdsa_uecc", srcs = [ "ecdsa_uecc.cc", diff --git a/pw_digital_io/BUILD.bazel b/pw_digital_io/BUILD.bazel index 9ef4e12314..4f835e559a 100644 --- a/pw_digital_io/BUILD.bazel +++ b/pw_digital_io/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) load( @@ -26,7 +25,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_digital_io", srcs = ["digital_io.cc"], hdrs = [ @@ -52,13 +51,13 @@ pw_cc_test( ], ) -pw_cc_library( +cc_library( name = "digital_io_controller", hdrs = ["public/pw_digital_io/digital_io_controller.h"], includes = ["public"], ) -pw_cc_library( +cc_library( name = "digital_io_service", srcs = ["digital_io_service.cc"], hdrs = ["public/pw_digital_io/digital_io_service.h"], diff --git a/pw_digital_io_mcuxpresso/BUILD.bazel b/pw_digital_io_mcuxpresso/BUILD.bazel index 1842701577..bfbd11835c 100644 --- a/pw_digital_io_mcuxpresso/BUILD.bazel +++ b/pw_digital_io_mcuxpresso/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_digital_io_mcuxpresso", srcs = [ "digital_io.cc", diff --git a/pw_file/BUILD.bazel b/pw_file/BUILD.bazel index 245c47e799..0f74fe1fe8 100644 --- a/pw_file/BUILD.bazel +++ b/pw_file/BUILD.bazel @@ -15,7 +15,6 @@ load("@rules_python//python:proto.bzl", "py_proto_library") load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) load("//pw_protobuf_compiler:pw_proto_library.bzl", "pw_proto_library") @@ -45,7 +44,7 @@ py_proto_library( deps = [":file_proto"], ) -pw_cc_library( +cc_library( name = "flat_file_system", srcs = [ "flat_file_system.cc", diff --git a/pw_function/BUILD.bazel b/pw_function/BUILD.bazel index e130d1c87c..d88fb8e6e1 100644 --- a/pw_function/BUILD.bazel +++ b/pw_function/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,13 +21,13 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "config", hdrs = ["public/pw_function/config.h"], includes = ["public"], ) -pw_cc_library( +cc_library( name = "pw_function", hdrs = ["public/pw_function/function.h"], includes = ["public"], @@ -49,7 +48,7 @@ pw_cc_test( ], ) -pw_cc_library( +cc_library( name = "pointer", srcs = ["public/pw_function/internal/static_invoker.h"], hdrs = ["public/pw_function/pointer.h"], @@ -65,7 +64,7 @@ pw_cc_test( ], ) -pw_cc_library( +cc_library( name = "scope_guard", hdrs = ["public/pw_function/scope_guard.h"], includes = ["public"], diff --git a/pw_fuzzer/BUILD.bazel b/pw_fuzzer/BUILD.bazel index 0a2db9ed8a..32d6b0c5e9 100644 --- a/pw_fuzzer/BUILD.bazel +++ b/pw_fuzzer/BUILD.bazel @@ -12,11 +12,6 @@ # 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"]) @@ -35,7 +30,7 @@ config_setting( }, ) -pw_cc_library( +cc_library( name = "fuzztest", testonly = True, hdrs = ["public/pw_fuzzer/fuzztest.h"] + select({ @@ -55,7 +50,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "fuzztest_stub", testonly = True, hdrs = [ @@ -75,7 +70,7 @@ pw_cc_library( # Create libFuzzer-style fuzzers by using the `pw_fuzzer` template from # fuzzer.gni. -pw_cc_library( +cc_library( name = "libfuzzer", hdrs = [ "public/pw_fuzzer/asan_interface.h", diff --git a/pw_fuzzer/examples/fuzztest/BUILD.bazel b/pw_fuzzer/examples/fuzztest/BUILD.bazel index b1ed906d21..4ffa0339cc 100644 --- a/pw_fuzzer/examples/fuzztest/BUILD.bazel +++ b/pw_fuzzer/examples/fuzztest/BUILD.bazel @@ -14,11 +14,10 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) -pw_cc_library( +cc_library( name = "metrics_lib", srcs = [ "metrics.cc", diff --git a/pw_hdlc/BUILD.bazel b/pw_hdlc/BUILD.bazel index 8fb126f235..78833aa918 100644 --- a/pw_hdlc/BUILD.bazel +++ b/pw_hdlc/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_hdlc", srcs = [ "decoder.cc", @@ -48,7 +47,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "rpc_channel_output", hdrs = ["public/pw_hdlc/rpc_channel.h"], includes = ["public"], @@ -59,7 +58,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "pw_rpc", srcs = ["rpc_packets.cc"], hdrs = ["public/pw_hdlc/rpc_packets.h"], @@ -71,7 +70,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "packet_parser", srcs = ["wire_packet_parser.cc"], hdrs = ["public/pw_hdlc/wire_packet_parser.h"], @@ -91,7 +90,7 @@ pw_cc_library( # Warning: This system server is polling and blocking, so it's not # production-ready. This exists for simplifying initial bringup/testing, and # should not be used in any performance-sensitive application. -pw_cc_library( +cc_library( name = "hdlc_sys_io_system_server", srcs = [ "hdlc_sys_io_system_server.cc", diff --git a/pw_hex_dump/BUILD.bazel b/pw_hex_dump/BUILD.bazel index ed7709fd55..760d05410a 100644 --- a/pw_hex_dump/BUILD.bazel +++ b/pw_hex_dump/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_hex_dump", srcs = [ "hex_dump.cc", diff --git a/pw_i2c/BUILD.bazel b/pw_i2c/BUILD.bazel index a9d0af3547..1641939643 100644 --- a/pw_i2c/BUILD.bazel +++ b/pw_i2c/BUILD.bazel @@ -15,7 +15,6 @@ load("@rules_proto//proto:defs.bzl", "proto_library") load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) load( @@ -28,7 +27,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "address", srcs = [ "address.cc", @@ -42,7 +41,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "initiator", hdrs = [ "public/pw_i2c/initiator.h", @@ -55,7 +54,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "device", hdrs = [ "public/pw_i2c/device.h", @@ -70,7 +69,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "register_device", srcs = ["register_device.cc"], hdrs = [ @@ -99,7 +98,7 @@ pw_cc_test( ], ) -pw_cc_library( +cc_library( name = "initiator_mock", testonly = True, srcs = ["initiator_mock.cc"], @@ -115,7 +114,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "initiator_gmock", testonly = True, hdrs = [ @@ -181,7 +180,7 @@ pw_proto_library( deps = [":i2c_proto"], ) -pw_cc_library( +cc_library( name = "i2c_service", srcs = ["i2c_service.cc"], hdrs = ["public/pw_i2c/i2c_service.h"], diff --git a/pw_i2c_linux/BUILD.bazel b/pw_i2c_linux/BUILD.bazel index 2cd7cf96a8..6ef3e0a572 100644 --- a/pw_i2c_linux/BUILD.bazel +++ b/pw_i2c_linux/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "initiator", srcs = [ "initiator.cc", diff --git a/pw_i2c_mcuxpresso/BUILD.bazel b/pw_i2c_mcuxpresso/BUILD.bazel index f71be2d04e..e804d7215c 100644 --- a/pw_i2c_mcuxpresso/BUILD.bazel +++ b/pw_i2c_mcuxpresso/BUILD.bazel @@ -13,7 +13,6 @@ # the License. load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -21,7 +20,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_i2c_mcuxpresso", srcs = ["initiator.cc"], hdrs = ["public/pw_i2c_mcuxpresso/initiator.h"], diff --git a/pw_interrupt/BUILD.bazel b/pw_interrupt/BUILD.bazel index 00b7598c90..f61d705d1a 100644 --- a/pw_interrupt/BUILD.bazel +++ b/pw_interrupt/BUILD.bazel @@ -15,7 +15,6 @@ load( "//pw_build:pigweed.bzl", "pw_cc_facade", - "pw_cc_library", ) package(default_visibility = ["//visibility:public"]) @@ -34,7 +33,7 @@ pw_cc_facade( includes = ["public"], ) -pw_cc_library( +cc_library( name = "context", hdrs = [ "public/pw_interrupt/context.h", diff --git a/pw_interrupt_cortex_m/BUILD.bazel b/pw_interrupt_cortex_m/BUILD.bazel index 6ec8321308..764e298545 100644 --- a/pw_interrupt_cortex_m/BUILD.bazel +++ b/pw_interrupt_cortex_m/BUILD.bazel @@ -12,11 +12,6 @@ # 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"]) @@ -26,7 +21,7 @@ constraint_value( constraint_setting = "//pw_interrupt:backend_constraint_setting", ) -pw_cc_library( +cc_library( name = "context", hdrs = [ "public/pw_interrupt_cortex_m/context_inline.h", diff --git a/pw_interrupt_xtensa/BUILD.bazel b/pw_interrupt_xtensa/BUILD.bazel index c3ab8e2aaa..e5dff91fcf 100644 --- a/pw_interrupt_xtensa/BUILD.bazel +++ b/pw_interrupt_xtensa/BUILD.bazel @@ -12,11 +12,6 @@ # 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"]) @@ -26,7 +21,7 @@ constraint_value( constraint_setting = "//pw_interrupt:backend_constraint_setting", ) -pw_cc_library( +cc_library( name = "context", srcs = ["context.cc"], target_compatible_with = [":backend"], diff --git a/pw_intrusive_ptr/BUILD.bazel b/pw_intrusive_ptr/BUILD.bazel index 257c2a7d2f..bff66bbcd0 100644 --- a/pw_intrusive_ptr/BUILD.bazel +++ b/pw_intrusive_ptr/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_intrusive_ptr", srcs = ["ref_counted_base.cc"], hdrs = [ @@ -36,7 +35,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "pw_recyclable", hdrs = [ "public/pw_intrusive_ptr/recyclable.h", diff --git a/pw_kvs/BUILD.bazel b/pw_kvs/BUILD.bazel index 80bf3a5bb8..dc5a24c216 100644 --- a/pw_kvs/BUILD.bazel +++ b/pw_kvs/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_kvs", srcs = [ "alignment.cc", @@ -66,7 +65,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "crc16", hdrs = [ "public/pw_kvs/crc16_checksum.h", @@ -78,13 +77,13 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "flash_test_partition", hdrs = ["public/pw_kvs/flash_test_partition.h"], deps = [":pw_kvs"], ) -pw_cc_library( +cc_library( name = "fake_flash", srcs = [ "fake_flash_memory.cc", @@ -103,7 +102,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "flash_partition_with_logical_sectors", hdrs = [ "public/pw_kvs/flash_partition_with_logical_sectors.h", @@ -114,7 +113,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "fake_flash_1_aligned_partition", srcs = [ "fake_flash_test_partition.cc", @@ -133,7 +132,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "fake_flash_1_aligned_4_logical_partition", srcs = [ "fake_flash_test_logical_sector_partition.cc", @@ -154,7 +153,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "fake_flash_12_byte_partition", srcs = ["fake_flash_test_partition.cc"], hdrs = ["public/pw_kvs/flash_test_partition.h"], @@ -170,7 +169,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "fake_flash_16_aligned_partition", srcs = [ "fake_flash_test_partition.cc", @@ -189,7 +188,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "fake_flash_64_aligned_partition", srcs = [ "fake_flash_test_partition.cc", @@ -208,7 +207,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "fake_flash_256_aligned_partition", srcs = [ "fake_flash_test_partition.cc", @@ -227,7 +226,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "fake_flash_test_key_value_store", srcs = [ "fake_flash_test_key_value_store.cc", @@ -243,7 +242,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "test_partition", srcs = [ "flash_partition_with_stats.cc", diff --git a/pw_libcxx/BUILD.bazel b/pw_libcxx/BUILD.bazel index 0ef580840e..1b9371afce 100644 --- a/pw_libcxx/BUILD.bazel +++ b/pw_libcxx/BUILD.bazel @@ -12,12 +12,7 @@ # License for the specific language governing permissions and limitations under # the License. -load( - "//pw_build:pigweed.bzl", - "pw_cc_library", -) - -pw_cc_library( +cc_library( name = "pw_libcxx", srcs = [ "__cxa_deleted_virtual.cc", diff --git a/pw_log/BUILD.bazel b/pw_log/BUILD.bazel index f2a528dfdc..799cb0f330 100644 --- a/pw_log/BUILD.bazel +++ b/pw_log/BUILD.bazel @@ -16,7 +16,6 @@ load("@rules_python//python:proto.bzl", "py_proto_library") load( "//pw_build:pigweed.bzl", "pw_cc_facade", - "pw_cc_library", "pw_cc_test", ) load("//pw_protobuf_compiler:pw_proto_library.bzl", "pw_proto_library") @@ -41,7 +40,7 @@ pw_cc_facade( ], ) -pw_cc_library( +cc_library( name = "pw_log", hdrs = [ "public/pw_log/config.h", @@ -64,7 +63,7 @@ label_flag( build_setting_default = "//pw_log_basic:impl", ) -pw_cc_library( +cc_library( name = "glog_adapter", hdrs = [ "public/pw_log/glog_adapter.h", @@ -80,7 +79,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "proto_utils", srcs = [ "proto_utils.cc", @@ -126,7 +125,7 @@ pw_proto_library( deps = [":log_proto"], ) -pw_cc_library( +cc_library( name = "backend_multiplexer", visibility = ["@pigweed//targets:__pkg__"], deps = ["//pw_log_basic"], diff --git a/pw_log_basic/BUILD.bazel b/pw_log_basic/BUILD.bazel index 89e40fb54e..cf843590fa 100644 --- a/pw_log_basic/BUILD.bazel +++ b/pw_log_basic/BUILD.bazel @@ -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 = "headers", hdrs = [ "public/pw_log_basic/log_basic.h", @@ -36,7 +31,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "pw_log_basic", srcs = [ "log_basic.cc", diff --git a/pw_log_null/BUILD.bazel b/pw_log_null/BUILD.bazel index 7feeec0b29..83bc6cf708 100644 --- a/pw_log_null/BUILD.bazel +++ b/pw_log_null/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "headers", srcs = [ "public/pw_log_null/log_null.h", @@ -39,7 +38,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "pw_log_null", deps = [ "//pw_log:facade", diff --git a/pw_log_rpc/BUILD.bazel b/pw_log_rpc/BUILD.bazel index b072dbf98c..d46bd32ff5 100644 --- a/pw_log_rpc/BUILD.bazel +++ b/pw_log_rpc/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "log_service", srcs = [ "log_service.cc", @@ -39,7 +38,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "log_filter_service", srcs = ["log_filter_service.cc"], hdrs = ["public/pw_log_rpc/log_filter_service.h"], @@ -54,7 +53,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "log_filter", srcs = [ "log_filter.cc", @@ -76,7 +75,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "rpc_log_drain", srcs = [ "public/pw_log_rpc/internal/config.h", @@ -103,7 +102,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "rpc_log_drain_thread", hdrs = ["public/pw_log_rpc/rpc_log_drain_thread.h"], includes = ["public"], @@ -120,7 +119,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "test_utils", srcs = ["test_utils.cc"], hdrs = ["pw_log_rpc_private/test_utils.h"], diff --git a/pw_log_string/BUILD.bazel b/pw_log_string/BUILD.bazel index 6ba51d52eb..37338d2051 100644 --- a/pw_log_string/BUILD.bazel +++ b/pw_log_string/BUILD.bazel @@ -15,14 +15,13 @@ load( "//pw_build:pigweed.bzl", "pw_cc_facade", - "pw_cc_library", ) package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_log_string", hdrs = [ "public_overrides/pw_log_backend/log_backend.h", @@ -51,7 +50,7 @@ alias( actual = ":handler", ) -pw_cc_library( +cc_library( name = "handler", srcs = ["handler.cc"], hdrs = [ @@ -66,7 +65,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "handler_backend_multiplexer", visibility = ["@pigweed//targets:__pkg__"], # TODO: b/257539200 - This probably should default to diff --git a/pw_log_tokenized/BUILD.bazel b/pw_log_tokenized/BUILD.bazel index b598ad3ccd..66e774a934 100644 --- a/pw_log_tokenized/BUILD.bazel +++ b/pw_log_tokenized/BUILD.bazel @@ -15,7 +15,6 @@ load( "//pw_build:pigweed.bzl", "pw_cc_facade", - "pw_cc_library", "pw_cc_test", ) @@ -23,7 +22,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "headers", hdrs = [ "public/pw_log_tokenized/config.h", @@ -39,7 +38,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "pw_log_tokenized", srcs = ["log_tokenized.cc"], hdrs = [ @@ -56,7 +55,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "gcc_partially_tokenized", srcs = ["log_tokenized.cc"], hdrs = [ @@ -87,7 +86,7 @@ pw_cc_facade( deps = ["//pw_preprocessor"], ) -pw_cc_library( +cc_library( name = "handler", hdrs = ["public/pw_log_tokenized/handler.h"], includes = ["public"], @@ -98,12 +97,12 @@ pw_cc_library( ) # There is no default backend for now. -pw_cc_library( +cc_library( name = "backend_multiplexer", visibility = ["@pigweed//targets:__pkg__"], ) -pw_cc_library( +cc_library( name = "base64", hdrs = ["public/pw_log_tokenized/base64.h"], includes = ["public"], @@ -113,7 +112,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "base64_over_hdlc", srcs = ["base64_over_hdlc.cc"], deps = [ diff --git a/pw_malloc/BUILD.bazel b/pw_malloc/BUILD.bazel index e0582eff13..9dc147dbe8 100644 --- a/pw_malloc/BUILD.bazel +++ b/pw_malloc/BUILD.bazel @@ -15,7 +15,6 @@ load( "//pw_build:pigweed.bzl", "pw_cc_facade", - "pw_cc_library", ) package(default_visibility = ["//visibility:public"]) @@ -34,7 +33,7 @@ pw_cc_facade( includes = ["public"], ) -pw_cc_library( +cc_library( name = "pw_malloc", hdrs = [ "public/pw_malloc/malloc.h", diff --git a/pw_malloc_freelist/BUILD.bazel b/pw_malloc_freelist/BUILD.bazel index aabc132f1b..66318af342 100644 --- a/pw_malloc_freelist/BUILD.bazel +++ b/pw_malloc_freelist/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -27,7 +26,7 @@ constraint_value( constraint_setting = "//pw_malloc:backend_constraint_setting", ) -pw_cc_library( +cc_library( name = "headers", hdrs = [ "public/pw_malloc_freelist/freelist_malloc.h", @@ -37,7 +36,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "pw_malloc_freelist", srcs = [ "freelist_malloc.cc", diff --git a/pw_malloc_freertos/BUILD.bazel b/pw_malloc_freertos/BUILD.bazel index 8f22880430..297e481d94 100644 --- a/pw_malloc_freertos/BUILD.bazel +++ b/pw_malloc_freertos/BUILD.bazel @@ -12,11 +12,6 @@ # 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"]) @@ -26,7 +21,7 @@ constraint_value( constraint_setting = "//pw_malloc:backend_constraint_setting", ) -pw_cc_library( +cc_library( name = "pw_malloc_freertos", srcs = [ "freertos_malloc.cc", diff --git a/pw_metric/BUILD.bazel b/pw_metric/BUILD.bazel index f689204baa..0bed21e46c 100644 --- a/pw_metric/BUILD.bazel +++ b/pw_metric/BUILD.bazel @@ -15,7 +15,6 @@ load("@rules_python//python:proto.bzl", "py_proto_library") load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) load("//pw_protobuf_compiler:pw_proto_library.bzl", "pw_proto_library") @@ -24,7 +23,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "metric", srcs = ["metric.cc"], hdrs = [ @@ -41,7 +40,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "global", srcs = ["global.cc"], hdrs = [ @@ -53,7 +52,7 @@ pw_cc_library( ) # Common MetricWalker/MetricWriter used by RPC service. -pw_cc_library( +cc_library( name = "metric_walker", hdrs = ["pw_metric_private/metric_walker.h"], visibility = ["//visibility:private"], @@ -66,7 +65,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "metric_service_nanopb", srcs = ["metric_service_nanopb.cc"], hdrs = ["public/pw_metric/metric_service_nanopb.h"], @@ -79,7 +78,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "metric_service_pwpb", srcs = ["metric_service_pwpb.cc"], hdrs = ["public/pw_metric/metric_service_pwpb.h"], diff --git a/pw_minimal_cpp_stdlib/BUILD.bazel b/pw_minimal_cpp_stdlib/BUILD.bazel index 7e8968e301..3efde14f9a 100644 --- a/pw_minimal_cpp_stdlib/BUILD.bazel +++ b/pw_minimal_cpp_stdlib/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_minimal_cpp_stdlib", srcs = [ "public/pw_minimal_cpp_stdlib/internal/algorithm.h", @@ -75,7 +74,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "minimal_cpp_stdlib_isolated_test", srcs = ["isolated_test.cc"], copts = ["-nostdinc++"], diff --git a/pw_multibuf/BUILD.bazel b/pw_multibuf/BUILD.bazel index 8afc5a09e0..a6ea90c573 100644 --- a/pw_multibuf/BUILD.bazel +++ b/pw_multibuf/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "chunk", srcs = ["chunk.cc"], hdrs = ["public/pw_multibuf/chunk.h"], @@ -36,7 +35,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "chunk_region_tracker", hdrs = ["public/pw_multibuf/chunk_region_tracker.h"], includes = ["public"], @@ -69,7 +68,7 @@ pw_cc_test( ], ) -pw_cc_library( +cc_library( name = "pw_multibuf", srcs = ["multibuf.cc"], hdrs = ["public/pw_multibuf/multibuf.h"], diff --git a/pw_multisink/BUILD.bazel b/pw_multisink/BUILD.bazel index acd90027ef..d22ad10cc7 100644 --- a/pw_multisink/BUILD.bazel +++ b/pw_multisink/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) load( @@ -26,7 +25,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_multisink", srcs = [ "multisink.cc", @@ -51,7 +50,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "util", srcs = ["util.cc"], hdrs = ["public/pw_multisink/util.h"], @@ -66,7 +65,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "test_thread", hdrs = ["public/pw_multisink/test_thread.h"], includes = ["public"], @@ -89,7 +88,7 @@ pw_cc_test( ], ) -pw_cc_library( +cc_library( name = "multisink_threaded_test", srcs = [ "multisink_threaded_test.cc", @@ -104,7 +103,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "stl_test_thread", srcs = [ "stl_test_thread.cc", diff --git a/pw_perf_test/BUILD.bazel b/pw_perf_test/BUILD.bazel index e3e616a7e0..d8f445ff07 100644 --- a/pw_perf_test/BUILD.bazel +++ b/pw_perf_test/BUILD.bazel @@ -15,7 +15,6 @@ load( "//pw_build:pigweed.bzl", "pw_cc_facade", - "pw_cc_library", "pw_cc_perf_test", "pw_cc_test", ) @@ -28,7 +27,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_perf_test", srcs = [ "framework.cc", @@ -49,7 +48,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "state", srcs = [ "state.cc", @@ -74,14 +73,14 @@ pw_cc_test( # Event handlers -pw_cc_library( +cc_library( name = "event_handler", hdrs = ["public/pw_perf_test/event_handler.h"], includes = ["public"], deps = [":timer"], ) -pw_cc_library( +cc_library( name = "logging_event_handler", srcs = ["logging_event_handler.cc"], hdrs = [ @@ -97,7 +96,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "logging_main", srcs = ["logging_main.cc"], deps = [ @@ -108,7 +107,7 @@ pw_cc_library( # Timer facade -pw_cc_library( +cc_library( name = "duration_unit", hdrs = [ "public/pw_perf_test/internal/duration_unit.h", @@ -129,7 +128,7 @@ pw_cc_facade( ], ) -pw_cc_library( +cc_library( name = "timer", hdrs = [ "public/pw_perf_test/internal/timer.h", @@ -141,7 +140,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "timer_multiplexer", visibility = ["@pigweed//targets:__pkg__"], deps = select({ @@ -161,7 +160,7 @@ pw_cc_test( # Chrono timer facade implementation -pw_cc_library( +cc_library( name = "chrono_timer", hdrs = [ "chrono_public_overrides/pw_perf_test_timer_backend/timer.h", @@ -191,7 +190,7 @@ pw_cc_test( # ARM Cortex timer facade implementation -pw_cc_library( +cc_library( name = "arm_cortex_timer", hdrs = [ "arm_cortex_cyccnt_public_overrides/pw_perf_test_timer_backend/timer.h", diff --git a/pw_persistent_ram/BUILD.bazel b/pw_persistent_ram/BUILD.bazel index 76d986feb1..8abbe4f10a 100644 --- a/pw_persistent_ram/BUILD.bazel +++ b/pw_persistent_ram/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_persistent_ram", srcs = ["persistent_buffer.cc"], hdrs = [ @@ -38,7 +37,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "flat_file_system_entry", hdrs = [ "public/pw_persistent_ram/flat_file_system_entry.h", diff --git a/pw_polyfill/BUILD.bazel b/pw_polyfill/BUILD.bazel index eca11f07a5..432708e3b2 100644 --- a/pw_polyfill/BUILD.bazel +++ b/pw_polyfill/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_polyfill", hdrs = [ "public/pw_polyfill/language_feature_macros.h", @@ -31,7 +30,7 @@ pw_cc_library( includes = ["public"], ) -pw_cc_library( +cc_library( name = "standard_library", hdrs = [ "standard_library_public/pw_polyfill/standard_library/namespace.h", diff --git a/pw_preprocessor/BUILD.bazel b/pw_preprocessor/BUILD.bazel index 76cf4ac0a1..9aac3c996e 100644 --- a/pw_preprocessor/BUILD.bazel +++ b/pw_preprocessor/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_preprocessor", srcs = [ "public/pw_preprocessor/internal/arg_count_impl.h", @@ -37,7 +36,7 @@ pw_cc_library( includes = ["public"], ) -pw_cc_library( +cc_library( name = "cortex_m", hdrs = [ "public/pw_preprocessor/arch.h", diff --git a/pw_protobuf/BUILD.bazel b/pw_protobuf/BUILD.bazel index 86aa964669..d7f50efbe4 100644 --- a/pw_protobuf/BUILD.bazel +++ b/pw_protobuf/BUILD.bazel @@ -16,7 +16,6 @@ load("@rules_proto//proto:defs.bzl", "proto_library") load("@rules_python//python:proto.bzl", "py_proto_library") load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_perf_test", "pw_cc_test", ) @@ -27,13 +26,13 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "config", hdrs = ["public/pw_protobuf/config.h"], includes = ["public"], ) -pw_cc_library( +cc_library( name = "pw_protobuf", srcs = [ "decoder.cc", @@ -75,7 +74,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "bytes_utils", hdrs = ["public/pw_protobuf/bytes_utils.h"], includes = ["public"], diff --git a/pw_protobuf/size_report/BUILD.bazel b/pw_protobuf/size_report/BUILD.bazel index 3e4d7c0cae..38efd2b9de 100644 --- a/pw_protobuf/size_report/BUILD.bazel +++ b/pw_protobuf/size_report/BUILD.bazel @@ -15,7 +15,6 @@ load( "//pw_build:pigweed.bzl", "pw_cc_binary", - "pw_cc_library", ) package(default_visibility = ["//visibility:public"]) @@ -46,7 +45,7 @@ pw_cc_binary( ], ) -pw_cc_library( +cc_library( name = "proto_bloat", srcs = [ "proto_bloat.cc", diff --git a/pw_random/BUILD.bazel b/pw_random/BUILD.bazel index c347a903a0..b3b28e0515 100644 --- a/pw_random/BUILD.bazel +++ b/pw_random/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_random", hdrs = [ "public/pw_random/random.h", diff --git a/pw_result/BUILD.bazel b/pw_result/BUILD.bazel index 522170f3b1..9463600479 100644 --- a/pw_result/BUILD.bazel +++ b/pw_result/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_result", srcs = ["public/pw_result/internal/result_internal.h"], hdrs = ["public/pw_result/result.h"], @@ -33,7 +32,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "expected", srcs = ["public/pw_result/internal/expected_impl.h"], hdrs = ["public/pw_result/expected.h"], diff --git a/pw_ring_buffer/BUILD.bazel b/pw_ring_buffer/BUILD.bazel index 7b13cbf4cc..89c2ef4c27 100644 --- a/pw_ring_buffer/BUILD.bazel +++ b/pw_ring_buffer/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_ring_buffer", srcs = [ "prefixed_entry_ring_buffer.cc", diff --git a/pw_router/BUILD.bazel b/pw_router/BUILD.bazel index 5e5cc3f73f..31b2b457bf 100644 --- a/pw_router/BUILD.bazel +++ b/pw_router/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "static_router", srcs = ["static_router.cc"], hdrs = ["public/pw_router/static_router.h"], @@ -35,7 +34,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "egress", hdrs = ["public/pw_router/egress.h"], deps = [ @@ -44,14 +43,14 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "packet_parser", hdrs = ["public/pw_router/packet_parser.h"], includes = ["public"], deps = ["//pw_bytes"], ) -pw_cc_library( +cc_library( name = "egress_function", hdrs = ["public/pw_router/egress_function.h"], deps = [ diff --git a/pw_rpc/BUILD.bazel b/pw_rpc/BUILD.bazel index 7a0032d63f..b5c2fae51a 100644 --- a/pw_rpc/BUILD.bazel +++ b/pw_rpc/BUILD.bazel @@ -14,7 +14,7 @@ load("@rules_proto//proto:defs.bzl", "proto_library") load("@rules_python//python:proto.bzl", "py_proto_library") -load("//pw_build:pigweed.bzl", "pw_cc_library", "pw_cc_test") +load("//pw_build:pigweed.bzl", "pw_cc_test") load("//pw_protobuf_compiler:pw_proto_library.bzl", "pw_proto_filegroup", "pw_proto_library") package(default_visibility = ["//visibility:public"]) @@ -33,7 +33,7 @@ pw_proto_library( deps = [":benchmark_proto"], ) -pw_cc_library( +cc_library( name = "benchmark", srcs = ["benchmark.cc"], hdrs = ["public/pw_rpc/benchmark.h"], @@ -55,14 +55,14 @@ filegroup( # ], ) -pw_cc_library( +cc_library( name = "client_server", srcs = ["client_server.cc"], hdrs = ["public/pw_rpc/client_server.h"], deps = [":pw_rpc"], ) -pw_cc_library( +cc_library( name = "pw_rpc", srcs = [ "call.cc", @@ -127,7 +127,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "synchronous_client_api", srcs = ["public/pw_rpc/internal/synchronous_call_impl.h"], hdrs = [ @@ -142,7 +142,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "client_server_testing", hdrs = ["public/pw_rpc/internal/client_server_testing.h"], includes = ["public"], @@ -154,7 +154,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "client_server_testing_threaded", hdrs = ["public/pw_rpc/internal/client_server_testing_threaded.h"], includes = ["public"], @@ -169,7 +169,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "test_helpers", hdrs = ["public/pw_rpc/test_helpers.h"], includes = ["public"], @@ -186,14 +186,14 @@ pw_cc_library( # thread_testing target is kept for backward compatibility. # New code should use test_helpers instead. -pw_cc_library( +cc_library( name = "thread_testing", hdrs = ["public/pw_rpc/thread_testing.h"], includes = ["public"], deps = [":test_helpers"], ) -pw_cc_library( +cc_library( name = "internal_test_utils", srcs = ["fake_channel_output.cc"], hdrs = [ @@ -224,7 +224,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "integration_testing", srcs = [ "integration_testing.cc", diff --git a/pw_rpc/nanopb/BUILD.bazel b/pw_rpc/nanopb/BUILD.bazel index e28f6bf59c..845ab0b169 100644 --- a/pw_rpc/nanopb/BUILD.bazel +++ b/pw_rpc/nanopb/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) load( @@ -26,7 +25,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "server_api", srcs = [ "method.cc", @@ -44,7 +43,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "client_api", hdrs = ["public/pw_rpc/nanopb/client_reader_writer.h"], includes = ["public"], @@ -53,7 +52,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "common", srcs = ["common.cc"], hdrs = [ @@ -67,7 +66,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "test_method_context", hdrs = [ "public/pw_rpc/nanopb/fake_channel_output.h", @@ -80,7 +79,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "client_testing", hdrs = [ "public/pw_rpc/nanopb/client_testing.h", @@ -93,7 +92,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "client_server_testing", hdrs = [ "public/pw_rpc/nanopb/client_server_testing.h", @@ -105,7 +104,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "client_server_testing_threaded", hdrs = [ "public/pw_rpc/nanopb/client_server_testing_threaded.h", @@ -117,13 +116,13 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "internal_test_utils", hdrs = ["pw_rpc_nanopb_private/internal_test_utils.h"], deps = ["//pw_rpc:internal_test_utils"], ) -pw_cc_library( +cc_library( name = "echo_service", hdrs = ["public/pw_rpc/echo_service_nanopb.h"], deps = [ diff --git a/pw_rpc/pwpb/BUILD.bazel b/pw_rpc/pwpb/BUILD.bazel index 0fd8ff7267..b8c62044c9 100644 --- a/pw_rpc/pwpb/BUILD.bazel +++ b/pw_rpc/pwpb/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) load( @@ -26,7 +25,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "server_api", srcs = [ "server_reader_writer.cc", @@ -43,7 +42,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "client_api", hdrs = [ "public/pw_rpc/pwpb/client_reader_writer.h", @@ -54,7 +53,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "common", hdrs = [ "public/pw_rpc/pwpb/internal/common.h", @@ -67,7 +66,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "test_method_context", hdrs = [ "public/pw_rpc/pwpb/fake_channel_output.h", @@ -84,7 +83,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "client_testing", hdrs = [ "public/pw_rpc/pwpb/client_testing.h", @@ -97,7 +96,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "client_server_testing", hdrs = [ "public/pw_rpc/pwpb/client_server_testing.h", @@ -110,7 +109,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "client_server_testing_threaded", hdrs = [ "public/pw_rpc/pwpb/client_server_testing_threaded.h", @@ -122,13 +121,13 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "internal_test_utils", hdrs = ["pw_rpc_pwpb_private/internal_test_utils.h"], deps = ["//pw_rpc:internal_test_utils"], ) -pw_cc_library( +cc_library( name = "echo_service", hdrs = ["public/pw_rpc/echo_service_pwpb.h"], deps = [ diff --git a/pw_rpc/raw/BUILD.bazel b/pw_rpc/raw/BUILD.bazel index 7d9033296c..bdb1154843 100644 --- a/pw_rpc/raw/BUILD.bazel +++ b/pw_rpc/raw/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "server_api", srcs = [ "method.cc", @@ -41,7 +40,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "client_api", hdrs = ["public/pw_rpc/raw/client_reader_writer.h"], includes = ["public"], @@ -52,7 +51,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "fake_channel_output", hdrs = ["public/pw_rpc/raw/fake_channel_output.h"], includes = ["public"], @@ -63,7 +62,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "test_method_context", hdrs = ["public/pw_rpc/raw/test_method_context.h"], includes = ["public"], @@ -78,7 +77,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "client_testing", srcs = ["client_testing.cc"], hdrs = ["public/pw_rpc/raw/client_testing.h"], diff --git a/pw_rpc/system_server/BUILD.bazel b/pw_rpc/system_server/BUILD.bazel index eca9534d07..c7996dfa7d 100644 --- a/pw_rpc/system_server/BUILD.bazel +++ b/pw_rpc/system_server/BUILD.bazel @@ -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 = "facade", hdrs = ["public/pw_rpc_system_server/rpc_server.h"], includes = ["public"], @@ -32,7 +27,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "system_server", hdrs = [ "public/pw_rpc_system_server/rpc_server.h", @@ -48,7 +43,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "system_server_backend_multiplexer", visibility = ["@pigweed//targets:__pkg__"], deps = select({ diff --git a/pw_rpc_transport/BUILD.bazel b/pw_rpc_transport/BUILD.bazel index 2fa24197e8..c9db5cb527 100644 --- a/pw_rpc_transport/BUILD.bazel +++ b/pw_rpc_transport/BUILD.bazel @@ -13,7 +13,7 @@ # the License. load("@rules_proto//proto:defs.bzl", "proto_library") -load("//pw_build:pigweed.bzl", "pw_cc_library", "pw_cc_test") +load("//pw_build:pigweed.bzl", "pw_cc_test") load( "//pw_build:selects.bzl", "TARGET_COMPATIBLE_WITH_HOST_SELECT", @@ -29,7 +29,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "rpc_transport", hdrs = ["public/pw_rpc_transport/rpc_transport.h"], includes = ["public"], @@ -40,7 +40,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "service_registry", hdrs = ["public/pw_rpc_transport/service_registry.h"], includes = ["public"], @@ -52,7 +52,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "test_loopback_service_registry", hdrs = ["public/pw_rpc_transport/test_loopback_service_registry.h"], includes = ["public"], @@ -64,7 +64,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "packet_buffer_queue", hdrs = ["public/pw_rpc_transport/internal/packet_buffer_queue.h"], includes = ["public"], @@ -96,7 +96,7 @@ pw_cc_test( ], ) -pw_cc_library( +cc_library( name = "local_rpc_egress", srcs = ["local_rpc_egress.cc"], hdrs = ["public/pw_rpc_transport/local_rpc_egress.h"], @@ -136,7 +136,7 @@ pw_cc_test( ], ) -pw_cc_library( +cc_library( name = "hdlc_framing", hdrs = [ "public/pw_rpc_transport/hdlc_framing.h", @@ -164,7 +164,7 @@ pw_cc_test( ], ) -pw_cc_library( +cc_library( name = "simple_framing", srcs = [ "simple_framing.cc", @@ -190,7 +190,7 @@ pw_cc_test( ], ) -pw_cc_library( +cc_library( name = "egress_ingress", srcs = [ "egress_ingress.cc", @@ -223,7 +223,7 @@ pw_cc_test( ], ) -pw_cc_library( +cc_library( name = "socket_rpc_transport", srcs = ["socket_rpc_transport.cc"], hdrs = ["public/pw_rpc_transport/socket_rpc_transport.h"], @@ -245,7 +245,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "stream_rpc_frame_sender", hdrs = ["public/pw_rpc_transport/stream_rpc_frame_sender.h"], deps = [ @@ -255,7 +255,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "stream_rpc_dispatcher", hdrs = ["public/pw_rpc_transport/stream_rpc_dispatcher.h"], deps = [ diff --git a/pw_snapshot/BUILD.bazel b/pw_snapshot/BUILD.bazel index d72204e8db..ace6335f4e 100644 --- a/pw_snapshot/BUILD.bazel +++ b/pw_snapshot/BUILD.bazel @@ -15,7 +15,6 @@ load("@rules_python//python:proto.bzl", "py_proto_library") load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) load("//pw_protobuf_compiler:pw_proto_library.bzl", "pw_proto_library") @@ -24,7 +23,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "uuid", srcs = [ "uuid.cc", diff --git a/pw_software_update/BUILD.bazel b/pw_software_update/BUILD.bazel index d2d768a29f..b7d09b6bb5 100644 --- a/pw_software_update/BUILD.bazel +++ b/pw_software_update/BUILD.bazel @@ -16,7 +16,6 @@ load("@rules_proto//proto:defs.bzl", "proto_library") load("@rules_python//python:proto.bzl", "py_proto_library") load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) load("//pw_protobuf_compiler:pw_proto_library.bzl", "pw_proto_library") @@ -76,7 +75,7 @@ py_proto_library( # deps = [":bundled_update_proto"], # ) -pw_cc_library( +cc_library( name = "openable_reader", hdrs = [ "public/pw_software_update/openable_reader.h", @@ -86,7 +85,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "blob_store_openable_reader", hdrs = [ "public/pw_software_update/blob_store_openable_reader.h", @@ -96,7 +95,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "update_bundle", srcs = [ "manifest_accessor.cc", @@ -128,7 +127,7 @@ pw_cc_library( # TODO: b/258074401 - Depends on bundled_update_proto_cc.nanopb_rpc, which # doesn't build yet. -pw_cc_library( +cc_library( name = "bundled_update_service", srcs = ["bundled_update_service.cc"], hdrs = ["public/pw_software_update/bundled_update_service.h"], @@ -153,7 +152,7 @@ pw_cc_library( # TODO: b/258074401 - Depends on bundled_update_proto_cc.nanopb_rpc, which # doesn't build yet. -pw_cc_library( +cc_library( name = "bundled_update_service_pwpb", srcs = ["bundled_update_service_pwpb.cc"], hdrs = ["public/pw_software_update/bundled_update_service_pwpb.h"], diff --git a/pw_span/BUILD.bazel b/pw_span/BUILD.bazel index bd17239900..87765c7a1b 100644 --- a/pw_span/BUILD.bazel +++ b/pw_span/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_span", srcs = [ "public/pw_span/internal/config.h", diff --git a/pw_spi/BUILD.bazel b/pw_spi/BUILD.bazel index bb8335a612..0193f94970 100644 --- a/pw_spi/BUILD.bazel +++ b/pw_spi/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "initiator", hdrs = [ "public/pw_spi/initiator.h", @@ -35,7 +34,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "responder", hdrs = [ "public/pw_spi/responder.h", @@ -48,7 +47,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "chip_selector", hdrs = [ "public/pw_spi/chip_selector.h", @@ -59,7 +58,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "initiator_mock", testonly = True, srcs = ["initiator_mock.cc"], @@ -91,7 +90,7 @@ pw_cc_test( ], ) -pw_cc_library( +cc_library( name = "device", hdrs = [ "public/pw_spi/device.h", @@ -121,7 +120,7 @@ pw_cc_test( ) # Linux-specific spidev implementation. -pw_cc_library( +cc_library( name = "linux_spi", srcs = ["linux_spi.cc"], hdrs = ["public/pw_spi/linux_spi.h"], diff --git a/pw_spi_mcuxpresso/BUILD.bazel b/pw_spi_mcuxpresso/BUILD.bazel index 78b54f71f0..87b5b057ef 100644 --- a/pw_spi_mcuxpresso/BUILD.bazel +++ b/pw_spi_mcuxpresso/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_spi_mcuxpresso", srcs = [ "flexspi.cc", diff --git a/pw_status/BUILD.bazel b/pw_status/BUILD.bazel index 2d2c2c9f62..61cf2e4d6b 100644 --- a/pw_status/BUILD.bazel +++ b/pw_status/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_status", srcs = [ "public/pw_status/internal/config.h", diff --git a/pw_stream/BUILD.bazel b/pw_stream/BUILD.bazel index 733878ad0a..b877a24ab6 100644 --- a/pw_stream/BUILD.bazel +++ b/pw_stream/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_stream", srcs = [ "memory_stream.cc", @@ -44,7 +43,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "socket_stream", srcs = ["socket_stream.cc"], hdrs = ["public/pw_stream/socket_stream.h"], @@ -57,7 +56,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "sys_io_stream", hdrs = ["public/pw_stream/sys_io_stream.h"], deps = [ @@ -66,7 +65,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "std_file_stream", srcs = ["std_file_stream.cc"], hdrs = ["public/pw_stream/std_file_stream.h"], @@ -76,14 +75,14 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "interval_reader", srcs = ["interval_reader.cc"], hdrs = ["public/pw_stream/interval_reader.h"], deps = [":pw_stream"], ) -pw_cc_library( +cc_library( name = "mpsc_stream", srcs = ["mpsc_stream.cc"], hdrs = ["public/pw_stream/mpsc_stream.h"], diff --git a/pw_stream_shmem_mcuxpresso/BUILD.bazel b/pw_stream_shmem_mcuxpresso/BUILD.bazel index 9d9a307a12..d3e07bb271 100644 --- a/pw_stream_shmem_mcuxpresso/BUILD.bazel +++ b/pw_stream_shmem_mcuxpresso/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_stream_shmem_mcuxpresso", srcs = ["stream.cc"], hdrs = ["public/pw_stream_shmem_mcuxpresso/stream.h"], diff --git a/pw_stream_uart_linux/BUILD.bazel b/pw_stream_uart_linux/BUILD.bazel index 901be32aca..7041d32cfe 100644 --- a/pw_stream_uart_linux/BUILD.bazel +++ b/pw_stream_uart_linux/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_stream_uart_linux", srcs = ["stream.cc"], hdrs = ["public/pw_stream_uart_linux/stream.h"], diff --git a/pw_stream_uart_mcuxpresso/BUILD.bazel b/pw_stream_uart_mcuxpresso/BUILD.bazel index b4c4184069..64e5dc3029 100644 --- a/pw_stream_uart_mcuxpresso/BUILD.bazel +++ b/pw_stream_uart_mcuxpresso/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_stream_uart_mcuxpresso", srcs = ["stream.cc"], hdrs = ["public/pw_stream_uart_mcuxpresso/stream.h"], diff --git a/pw_string/BUILD.bazel b/pw_string/BUILD.bazel index c0ccfe8662..61df9f824e 100644 --- a/pw_string/BUILD.bazel +++ b/pw_string/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,13 +21,13 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "config", hdrs = ["public/pw_string/internal/config.h"], includes = ["public"], ) -pw_cc_library( +cc_library( name = "pw_string", deps = [ ":builder", @@ -38,7 +37,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "builder", srcs = ["string_builder.cc"], hdrs = ["public/pw_string/string_builder.h"], @@ -53,7 +52,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "format", srcs = ["format.cc"], hdrs = ["public/pw_string/format.h"], @@ -66,7 +65,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "string", srcs = [ "public/pw_string/internal/string_common_functions.inc", @@ -80,7 +79,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "to_string", srcs = ["type_to_string.cc"], hdrs = [ @@ -97,7 +96,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "util", srcs = ["public/pw_string/internal/length.h"], hdrs = ["public/pw_string/util.h"], diff --git a/pw_sync/BUILD.bazel b/pw_sync/BUILD.bazel index 76d93c4dee..48e028f909 100644 --- a/pw_sync/BUILD.bazel +++ b/pw_sync/BUILD.bazel @@ -15,7 +15,6 @@ load( "//pw_build:pigweed.bzl", "pw_cc_facade", - "pw_cc_library", "pw_cc_test", ) load( @@ -39,7 +38,7 @@ pw_cc_facade( ], ) -pw_cc_library( +cc_library( name = "binary_semaphore", srcs = [ "binary_semaphore.cc", @@ -54,7 +53,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "binary_semaphore_backend_multiplexer", visibility = ["@pigweed//targets:__pkg__"], deps = select({ @@ -77,7 +76,7 @@ pw_cc_facade( ], ) -pw_cc_library( +cc_library( name = "counting_semaphore", srcs = [ "counting_semaphore.cc", @@ -92,7 +91,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "counting_semaphore_backend_multiplexer", visibility = ["@pigweed//targets:__pkg__"], deps = select({ @@ -103,7 +102,7 @@ pw_cc_library( }), ) -pw_cc_library( +cc_library( name = "lock_annotations", hdrs = [ "public/pw_sync/lock_annotations.h", @@ -114,7 +113,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "lock_traits", hdrs = [ "public/pw_sync/lock_traits.h", @@ -122,7 +121,7 @@ pw_cc_library( includes = ["public"], ) -pw_cc_library( +cc_library( name = "borrow", hdrs = [ "public/pw_sync/borrow.h", @@ -136,7 +135,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "inline_borrowable", hdrs = [ "public/pw_sync/inline_borrowable.h", @@ -150,7 +149,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "virtual_basic_lockable", hdrs = [ "public/pw_sync/virtual_basic_lockable.h", @@ -175,7 +174,7 @@ pw_cc_facade( ], ) -pw_cc_library( +cc_library( name = "mutex", srcs = [ "mutex.cc", @@ -191,7 +190,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "mutex_backend_multiplexer", visibility = ["@pigweed//targets:__pkg__"], deps = select({ @@ -217,7 +216,7 @@ pw_cc_facade( ], ) -pw_cc_library( +cc_library( name = "timed_mutex", srcs = [ "timed_mutex.cc", @@ -235,7 +234,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "timed_mutex_backend_multiplexer", visibility = ["@pigweed//targets:__pkg__"], deps = select({ @@ -246,7 +245,7 @@ pw_cc_library( }), ) -pw_cc_library( +cc_library( name = "recursive_mutex_facade", hdrs = ["public/pw_sync/recursive_mutex.h"], includes = ["public"], @@ -256,7 +255,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "recursive_mutex", srcs = ["recursive_mutex.cc"], visibility = ["//pw_sync_baremetal:__pkg__"], @@ -266,7 +265,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "recursive_mutex_backend_multiplexer", visibility = ["@pigweed//targets:__pkg__"], deps = select({ @@ -288,7 +287,7 @@ pw_cc_facade( ], ) -pw_cc_library( +cc_library( name = "interrupt_spin_lock", srcs = [ "interrupt_spin_lock.cc", @@ -304,7 +303,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "interrupt_spin_lock_backend_multiplexer", visibility = ["@pigweed//targets:__pkg__"], deps = select({ @@ -323,7 +322,7 @@ pw_cc_facade( includes = ["public"], ) -pw_cc_library( +cc_library( name = "thread_notification", hdrs = [ "public/pw_sync/thread_notification.h", @@ -333,7 +332,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "thread_notification_backend_multiplexer", visibility = ["@pigweed//targets:__pkg__"], deps = select({ @@ -354,7 +353,7 @@ pw_cc_facade( ], ) -pw_cc_library( +cc_library( name = "timed_thread_notification", hdrs = [ "public/pw_sync/timed_thread_notification.h", @@ -366,7 +365,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "timed_thread_notification_backend_multiplexer", visibility = ["@pigweed//targets:__pkg__"], deps = select({ @@ -375,7 +374,7 @@ pw_cc_library( }), ) -pw_cc_library( +cc_library( name = "binary_semaphore_thread_notification_backend", hdrs = [ "public/pw_sync/backends/binary_semaphore_thread_notification_inline.h", @@ -394,7 +393,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "binary_semaphore_timed_thread_notification_backend", hdrs = [ "public/pw_sync/backends/binary_semaphore_timed_thread_notification_inline.h", @@ -412,7 +411,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "yield_core", hdrs = [ "public/pw_sync/yield_core.h", @@ -456,7 +455,7 @@ filegroup( srcs = ["condition_variable_test.cc"], ) -pw_cc_library( +cc_library( name = "lock_testing", srcs = ["lock_testing.cc"], hdrs = ["public/pw_sync/lock_testing.h"], @@ -467,7 +466,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "borrow_lockable_tests", hdrs = ["pw_sync_private/borrow_lockable_tests.h"], deps = [ diff --git a/pw_sync_baremetal/BUILD.bazel b/pw_sync_baremetal/BUILD.bazel index 3295b9591f..656af326fc 100644 --- a/pw_sync_baremetal/BUILD.bazel +++ b/pw_sync_baremetal/BUILD.bazel @@ -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 = "interrupt_spin_lock", hdrs = [ "public/pw_sync_baremetal/interrupt_spin_lock_inline.h", @@ -41,7 +36,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "mutex", hdrs = [ "public/pw_sync_baremetal/mutex_inline.h", @@ -60,7 +55,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "recursive_mutex", hdrs = [ "public/pw_sync_baremetal/recursive_mutex_inline.h", diff --git a/pw_sync_embos/BUILD.bazel b/pw_sync_embos/BUILD.bazel index be83756b56..ad994fa843 100644 --- a/pw_sync_embos/BUILD.bazel +++ b/pw_sync_embos/BUILD.bazel @@ -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 = "binary_semaphore", srcs = [ "binary_semaphore.cc", @@ -48,7 +43,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "counting_semaphore", srcs = [ "counting_semaphore.cc", @@ -75,7 +70,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "mutex", hdrs = [ "public/pw_sync_embos/mutex_inline.h", @@ -98,7 +93,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "timed_mutex", srcs = [ "timed_mutex.cc", @@ -123,14 +118,14 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "interrupt_spin_lock_headers", target_compatible_with = [ "//pw_build/constraints/rtos:embos", ], ) -pw_cc_library( +cc_library( name = "interrupt_spin_lock", srcs = [ "interrupt_spin_lock.cc", diff --git a/pw_sync_freertos/BUILD.bazel b/pw_sync_freertos/BUILD.bazel index 4bbaa6dc8c..68eb46e6bc 100644 --- a/pw_sync_freertos/BUILD.bazel +++ b/pw_sync_freertos/BUILD.bazel @@ -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 = "binary_semaphore", srcs = [ "binary_semaphore.cc", @@ -48,7 +43,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "counting_semaphore", srcs = [ "counting_semaphore.cc", @@ -83,7 +78,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "mutex", hdrs = [ "public/pw_sync_freertos/mutex_inline.h", @@ -106,7 +101,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "thread_notification", srcs = [ "thread_notification.cc", @@ -136,7 +131,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "timed_thread_notification", srcs = [ "timed_thread_notification.cc", @@ -161,7 +156,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "timed_mutex", srcs = [ "timed_mutex.cc", @@ -187,7 +182,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "interrupt_spin_lock", srcs = [ "interrupt_spin_lock.cc", diff --git a/pw_sync_stl/BUILD.bazel b/pw_sync_stl/BUILD.bazel index f8ec59b6b4..618645c9a2 100644 --- a/pw_sync_stl/BUILD.bazel +++ b/pw_sync_stl/BUILD.bazel @@ -12,10 +12,6 @@ # License for the specific language governing permissions and limitations under # the License. -load( - "//pw_build:pigweed.bzl", - "pw_cc_library", -) load( "//pw_build:selects.bzl", "TARGET_COMPATIBLE_WITH_HOST_SELECT", @@ -25,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "binary_semaphore", srcs = [ "binary_semaphore.cc", @@ -48,7 +44,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "counting_semaphore", srcs = [ "counting_semaphore.cc", @@ -71,7 +67,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "mutex", srcs = ["mutex.cc"], hdrs = [ @@ -91,7 +87,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "timed_mutex", hdrs = [ "public/pw_sync_stl/timed_mutex_inline.h", @@ -108,7 +104,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "recursive_mutex", hdrs = [ "public/pw_sync_stl/recursive_mutex_inline.h", @@ -127,7 +123,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "interrupt_spin_lock", hdrs = [ "public/pw_sync_stl/interrupt_spin_lock_inline.h", @@ -146,7 +142,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "condition_variable", hdrs = [ "public/pw_sync_stl/condition_variable_inline.h", diff --git a/pw_sync_threadx/BUILD.bazel b/pw_sync_threadx/BUILD.bazel index 85ae37e6ec..004c77be64 100644 --- a/pw_sync_threadx/BUILD.bazel +++ b/pw_sync_threadx/BUILD.bazel @@ -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 = "binary_semaphore", srcs = [ "binary_semaphore.cc", @@ -47,7 +42,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "counting_semaphore", srcs = [ "counting_semaphore.cc", @@ -73,7 +68,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "mutex", hdrs = [ "public/pw_sync_threadx/mutex_inline.h", @@ -94,7 +89,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "timed_mutex", srcs = [ "timed_mutex.cc", @@ -118,7 +113,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "interrupt_spin_lock", srcs = [ "interrupt_spin_lock.cc", diff --git a/pw_sys_io/BUILD.bazel b/pw_sys_io/BUILD.bazel index 4fa404f4b2..80d2334163 100644 --- a/pw_sys_io/BUILD.bazel +++ b/pw_sys_io/BUILD.bazel @@ -16,7 +16,6 @@ load( "//pw_build:pigweed.bzl", "host_backend_alias", "pw_cc_facade", - "pw_cc_library", ) package(default_visibility = ["//visibility:public"]) @@ -37,7 +36,7 @@ pw_cc_facade( ], ) -pw_cc_library( +cc_library( name = "default_putget_bytes", srcs = ["sys_io.cc"], deps = [ @@ -47,7 +46,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "pw_sys_io", hdrs = ["public/pw_sys_io/sys_io.h"], includes = ["public"], diff --git a/pw_sys_io_ambiq_sdk/BUILD.bazel b/pw_sys_io_ambiq_sdk/BUILD.bazel index 59fba72844..f7b12d6469 100644 --- a/pw_sys_io_ambiq_sdk/BUILD.bazel +++ b/pw_sys_io_ambiq_sdk/BUILD.bazel @@ -12,11 +12,6 @@ # 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"]) @@ -26,7 +21,7 @@ constraint_value( constraint_setting = "//pw_sys_io:backend_constraint_setting", ) -pw_cc_library( +cc_library( name = "pw_sys_ambiq_sdk", srcs = ["sys_io.cc"], hdrs = ["public/pw_sys_io_ambiq_sdk/init.h"], diff --git a/pw_sys_io_arduino/BUILD.bazel b/pw_sys_io_arduino/BUILD.bazel index 4b88a368ef..54ff9b3c5d 100644 --- a/pw_sys_io_arduino/BUILD.bazel +++ b/pw_sys_io_arduino/BUILD.bazel @@ -12,11 +12,6 @@ # 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"]) @@ -26,7 +21,7 @@ constraint_value( constraint_setting = "//pw_sys_io:backend_constraint_setting", ) -pw_cc_library( +cc_library( name = "pw_sys_io_arduino", srcs = ["sys_io_arduino.cc"], hdrs = ["public/pw_sys_io_arduino/init.h"], @@ -40,7 +35,7 @@ pw_cc_library( ) # Used in targets/arduino -pw_cc_library( +cc_library( name = "pw_sys_io_arduino_header", hdrs = ["public/pw_sys_io_arduino/init.h"], includes = ["public"], diff --git a/pw_sys_io_baremetal_lm3s6965evb/BUILD.bazel b/pw_sys_io_baremetal_lm3s6965evb/BUILD.bazel index e2e9984f36..60a824f292 100644 --- a/pw_sys_io_baremetal_lm3s6965evb/BUILD.bazel +++ b/pw_sys_io_baremetal_lm3s6965evb/BUILD.bazel @@ -12,11 +12,6 @@ # 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"]) @@ -26,7 +21,7 @@ constraint_value( constraint_setting = "//pw_sys_io:backend_constraint_setting", ) -pw_cc_library( +cc_library( name = "pw_sys_io_baremetal_lm3s6965evb", srcs = ["sys_io_baremetal.cc"], hdrs = ["public/pw_sys_io_baremetal_lm3s6965evb/init.h"], diff --git a/pw_sys_io_baremetal_stm32f429/BUILD.bazel b/pw_sys_io_baremetal_stm32f429/BUILD.bazel index 8147ce1a50..d4903faa75 100644 --- a/pw_sys_io_baremetal_stm32f429/BUILD.bazel +++ b/pw_sys_io_baremetal_stm32f429/BUILD.bazel @@ -12,11 +12,6 @@ # 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"]) @@ -26,7 +21,7 @@ constraint_value( constraint_setting = "//pw_sys_io:backend_constraint_setting", ) -pw_cc_library( +cc_library( name = "pw_sys_io_baremetal_stm32f429", srcs = ["sys_io_baremetal.cc"], hdrs = ["public/pw_sys_io_baremetal_stm32f429/init.h"], diff --git a/pw_sys_io_emcraft_sf2/BUILD.bazel b/pw_sys_io_emcraft_sf2/BUILD.bazel index 026fa6eee3..52f47c0d53 100644 --- a/pw_sys_io_emcraft_sf2/BUILD.bazel +++ b/pw_sys_io_emcraft_sf2/BUILD.bazel @@ -12,11 +12,6 @@ # 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"]) @@ -26,7 +21,7 @@ constraint_value( constraint_setting = "//pw_sys_io:backend_constraint_setting", ) -pw_cc_library( +cc_library( name = "pw_sys_io_emcraft_sf2", srcs = [ "pw_sys_io_emcraft_sf2_private/config.h", diff --git a/pw_sys_io_mcuxpresso/BUILD.bazel b/pw_sys_io_mcuxpresso/BUILD.bazel index 51cb0d8297..a030f825cf 100644 --- a/pw_sys_io_mcuxpresso/BUILD.bazel +++ b/pw_sys_io_mcuxpresso/BUILD.bazel @@ -12,11 +12,6 @@ # 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"]) @@ -26,7 +21,7 @@ constraint_value( constraint_setting = "//pw_sys_io:backend_constraint_setting", ) -pw_cc_library( +cc_library( name = "pw_sys_io_mcuxpresso", srcs = ["sys_io.cc"], hdrs = ["public/pw_sys_io_mcuxpresso/init.h"], diff --git a/pw_sys_io_rp2040/BUILD.bazel b/pw_sys_io_rp2040/BUILD.bazel index 9017aa7fdb..6d3084461c 100644 --- a/pw_sys_io_rp2040/BUILD.bazel +++ b/pw_sys_io_rp2040/BUILD.bazel @@ -12,11 +12,6 @@ # 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"]) @@ -26,7 +21,7 @@ constraint_value( constraint_setting = "//pw_sys_io:backend_constraint_setting", ) -pw_cc_library( +cc_library( name = "pw_sys_io_rp2040", srcs = [ "sys_io.cc", diff --git a/pw_sys_io_stdio/BUILD.bazel b/pw_sys_io_stdio/BUILD.bazel index 381ce98107..ee3ca50162 100644 --- a/pw_sys_io_stdio/BUILD.bazel +++ b/pw_sys_io_stdio/BUILD.bazel @@ -12,10 +12,6 @@ # License for the specific language governing permissions and limitations under # the License. -load( - "//pw_build:pigweed.bzl", - "pw_cc_library", -) load( "//pw_build:selects.bzl", "TARGET_COMPATIBLE_WITH_HOST_SELECT", @@ -30,7 +26,7 @@ constraint_value( constraint_setting = "//pw_sys_io:backend_constraint_setting", ) -pw_cc_library( +cc_library( name = "pw_sys_io_stdio", srcs = ["sys_io.cc"], target_compatible_with = select(TARGET_COMPATIBLE_WITH_HOST_SELECT), diff --git a/pw_sys_io_stm32cube/BUILD.bazel b/pw_sys_io_stm32cube/BUILD.bazel index 4e97350fcc..c0881408cc 100644 --- a/pw_sys_io_stm32cube/BUILD.bazel +++ b/pw_sys_io_stm32cube/BUILD.bazel @@ -12,11 +12,6 @@ # 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"]) @@ -26,7 +21,7 @@ constraint_value( constraint_setting = "//pw_sys_io:backend_constraint_setting", ) -pw_cc_library( +cc_library( name = "pw_sys_io_stm32cube", srcs = [ "pw_sys_io_stm32cube_private/config.h", diff --git a/pw_system/BUILD.bazel b/pw_system/BUILD.bazel index 5bdd83dbc6..ecad380f34 100644 --- a/pw_system/BUILD.bazel +++ b/pw_system/BUILD.bazel @@ -15,7 +15,6 @@ load( "//pw_build:pigweed.bzl", "pw_cc_binary", - "pw_cc_library", ) package(default_visibility = ["//visibility:public"]) @@ -31,7 +30,7 @@ constraint_value( constraint_setting = ":system_example_tracing_setting", ) -pw_cc_library( +cc_library( name = "config", hdrs = [ "public/pw_system/config.h", @@ -43,7 +42,7 @@ pw_cc_library( }), ) -pw_cc_library( +cc_library( name = "log", srcs = [ "log.cc", @@ -63,7 +62,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "log_backend", srcs = [ "log_backend.cc", @@ -94,7 +93,7 @@ pw_cc_library( alwayslink = 1, ) -pw_cc_library( +cc_library( name = "rpc_server", srcs = [ "hdlc_rpc_server.cc", @@ -116,7 +115,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "thread_snapshot_service", srcs = [ "thread_snapshot_service.cc", @@ -131,7 +130,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "io", hdrs = [ "public/pw_system/io.h", @@ -141,7 +140,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "init", srcs = [ "init.cc", @@ -173,7 +172,7 @@ pw_cc_library( }), ) -pw_cc_library( +cc_library( name = "work_queue", srcs = [ "work_queue.cc", @@ -188,7 +187,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "target_io", srcs = [ "target_io.cc", @@ -201,7 +200,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "socket_target_io", srcs = [ "socket_target_io.cc", @@ -216,7 +215,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "transfer_handlers", srcs = [ "transfer_handlers.cc", @@ -232,7 +231,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "file_manager", srcs = [ "file_manager.cc", @@ -255,7 +254,7 @@ pw_cc_library( }), ) -pw_cc_library( +cc_library( name = "transfer_service", srcs = [ "transfer_service.cc", @@ -270,7 +269,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "file_service", srcs = [ "file_service.cc", @@ -284,7 +283,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "trace_service", srcs = [ "trace_service.cc", @@ -300,7 +299,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "target_hooks", hdrs = [ "public/pw_system/target_hooks.h", @@ -315,7 +314,7 @@ pw_cc_library( # This isn't the best solution, but it's close enough for now. Target hooks are # not generically related to an OS, and should be inject-able by downstream # projects. For now, assume the pre-baked OS-specific hooks are good enough. -pw_cc_library( +cc_library( name = "target_hooks_multiplexer", visibility = ["@pigweed//targets:__pkg__"], deps = select({ @@ -324,7 +323,7 @@ pw_cc_library( }), ) -pw_cc_library( +cc_library( name = "stl_target_hooks", srcs = [ "stl_target_hooks.cc", @@ -337,7 +336,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "freertos_target_hooks", srcs = [ "freertos_target_hooks.cc", diff --git a/pw_thread/BUILD.bazel b/pw_thread/BUILD.bazel index 21fe9c5b17..b844edc458 100644 --- a/pw_thread/BUILD.bazel +++ b/pw_thread/BUILD.bazel @@ -16,7 +16,6 @@ load("@rules_python//python:proto.bzl", "py_proto_library") load( "//pw_build:pigweed.bzl", "pw_cc_facade", - "pw_cc_library", "pw_cc_test", ) load("//pw_protobuf_compiler:pw_proto_library.bzl", "pw_proto_library") @@ -33,7 +32,7 @@ pw_cc_facade( includes = ["public"], ) -pw_cc_library( +cc_library( name = "id", hdrs = [ "public/pw_thread/id.h", @@ -44,7 +43,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "id_backend_multiplexer", visibility = ["@pigweed//targets:__pkg__"], deps = select({ @@ -55,13 +54,13 @@ pw_cc_library( }), ) -pw_cc_library( +cc_library( name = "config", hdrs = ["public/pw_thread/config.h"], includes = ["public"], ) -pw_cc_library( +cc_library( name = "thread_info", hdrs = ["public/pw_thread/thread_info.h"], includes = ["public"], @@ -81,7 +80,7 @@ pw_cc_facade( ], ) -pw_cc_library( +cc_library( name = "thread_iteration", hdrs = [ "public/pw_thread/thread_iteration.h", @@ -95,7 +94,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "iteration_backend_multiplexer", visibility = ["@pigweed//targets:__pkg__"], deps = select({ @@ -118,7 +117,7 @@ pw_cc_facade( ], ) -pw_cc_library( +cc_library( name = "sleep", srcs = [ "sleep.cc", @@ -135,7 +134,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "sleep_backend_multiplexer", visibility = ["@pigweed//targets:__pkg__"], deps = select({ @@ -159,7 +158,7 @@ pw_cc_facade( ], ) -pw_cc_library( +cc_library( name = "thread", srcs = [ "thread.cc", @@ -177,7 +176,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "thread_backend_multiplexer", visibility = ["@pigweed//targets:__pkg__"], deps = select({ @@ -188,7 +187,7 @@ pw_cc_library( }), ) -pw_cc_library( +cc_library( name = "thread_core", hdrs = [ "public/pw_thread/thread_core.h", @@ -200,7 +199,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "thread_snapshot_service", srcs = [ "pw_thread_private/thread_snapshot_service.h", @@ -224,7 +223,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "test_thread_context_backend_multiplexer", visibility = ["@pigweed//targets:__pkg__"], deps = select({ @@ -240,7 +239,7 @@ pw_cc_facade( includes = ["public"], ) -pw_cc_library( +cc_library( name = "test_thread_context", hdrs = [ "public/pw_thread/test_thread_context.h", @@ -262,7 +261,7 @@ pw_cc_facade( ], ) -pw_cc_library( +cc_library( name = "yield", srcs = [ "yield.cc", @@ -278,7 +277,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "yield_backend_multiplexer", visibility = ["@pigweed//targets:__pkg__"], deps = select({ @@ -289,7 +288,7 @@ pw_cc_library( }), ) -pw_cc_library( +cc_library( name = "snapshot", srcs = [ "snapshot.cc", @@ -308,7 +307,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "non_portable_test_thread_options", hdrs = [ "public/pw_thread/non_portable_test_thread_options.h", @@ -321,7 +320,7 @@ pw_cc_library( # To instantiate this as a pw_cc_test, depend on this pw_cc_library and the # pw_cc_library which implements the backend for non_portable_test_thread_options. See # //pw_thread_stl:thread_backend_test as an example. -pw_cc_library( +cc_library( name = "thread_facade_test", srcs = [ "thread_facade_test.cc", diff --git a/pw_thread_embos/BUILD.bazel b/pw_thread_embos/BUILD.bazel index 83e080408c..1536a9ae95 100644 --- a/pw_thread_embos/BUILD.bazel +++ b/pw_thread_embos/BUILD.bazel @@ -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 = "id", hdrs = [ "id_public_overrides/pw_thread_backend/id_inline.h", @@ -43,7 +38,7 @@ pw_cc_library( # currently do not have Bazel support. ) -pw_cc_library( +cc_library( name = "sleep", srcs = [ "sleep.cc", @@ -68,7 +63,7 @@ pw_cc_library( # currently do not have Bazel support. ) -pw_cc_library( +cc_library( name = "thread", srcs = [ "thread.cc", @@ -96,7 +91,7 @@ pw_cc_library( # currently do not have Bazel support. ) -pw_cc_library( +cc_library( name = "non_portable_test_thread_options", srcs = [ "test_threads.cc", @@ -112,7 +107,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "yield", hdrs = [ "public/pw_thread_embos/yield_inline.h", @@ -129,7 +124,7 @@ pw_cc_library( # currently do not have Bazel support. ) -pw_cc_library( +cc_library( name = "util", srcs = [ "util.cc", @@ -148,7 +143,7 @@ pw_cc_library( # currently do not have Bazel support. ) -pw_cc_library( +cc_library( name = "snapshot", srcs = [ "snapshot.cc", diff --git a/pw_thread_freertos/BUILD.bazel b/pw_thread_freertos/BUILD.bazel index 61f6221436..e8dd37cf72 100644 --- a/pw_thread_freertos/BUILD.bazel +++ b/pw_thread_freertos/BUILD.bazel @@ -16,7 +16,6 @@ load("@bazel_skylib//rules:run_binary.bzl", "run_binary") load( "//pw_build:pigweed.bzl", "pw_cc_facade", - "pw_cc_library", "pw_cc_test", ) @@ -24,7 +23,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "id", hdrs = [ "id_public_overrides/pw_thread_backend/id_inline.h", @@ -46,7 +45,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "sleep", srcs = [ "sleep.cc", @@ -71,7 +70,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "thread", srcs = [ "thread.cc", @@ -107,7 +106,7 @@ label_flag( build_setting_default = "//pw_build:default_module_config", ) -pw_cc_library( +cc_library( name = "dynamic_test_threads", srcs = [ "dynamic_test_threads.cc", @@ -133,7 +132,7 @@ pw_cc_test( ], ) -pw_cc_library( +cc_library( name = "static_test_threads", srcs = [ "static_test_threads.cc", @@ -159,7 +158,7 @@ pw_cc_test( ], ) -pw_cc_library( +cc_library( name = "yield", hdrs = [ "public/pw_thread_freertos/yield_inline.h", @@ -175,7 +174,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "thread_iteration", srcs = [ "pw_thread_freertos_private/thread_iteration.h", @@ -219,7 +218,7 @@ pw_cc_test( ], ) -pw_cc_library( +cc_library( name = "util", srcs = [ "util.cc", @@ -240,7 +239,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "snapshot", srcs = [ "snapshot.cc", @@ -279,7 +278,7 @@ pw_cc_facade( ], ) -pw_cc_library( +cc_library( name = "freertos_tasktcb", hdrs = [ "public/pw_thread_freertos/freertos_tsktcb.h", diff --git a/pw_thread_stl/BUILD.bazel b/pw_thread_stl/BUILD.bazel index 01e53da4d3..86d612ac86 100644 --- a/pw_thread_stl/BUILD.bazel +++ b/pw_thread_stl/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) load( @@ -26,7 +25,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "id", hdrs = [ "id_public_overrides/pw_thread_backend/id_inline.h", @@ -44,7 +43,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "sleep", hdrs = [ "public/pw_thread_stl/sleep_inline.h", @@ -61,7 +60,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "thread", hdrs = [ "public/pw_thread_stl/options.h", @@ -83,7 +82,7 @@ pw_cc_library( # This target provides a stub backend for pw::this_thread::thread_iteration. # Iterating over child threads isn't supported by STL, so this only exists # for portability reasons. -pw_cc_library( +cc_library( name = "thread_iteration", srcs = ["thread_iteration.cc"], deps = [ @@ -92,7 +91,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "non_portable_test_thread_options", srcs = [ "test_threads.cc", @@ -118,7 +117,7 @@ pw_cc_test( ], ) -pw_cc_library( +cc_library( name = "yield", hdrs = [ "public/pw_thread_stl/yield_inline.h", @@ -134,7 +133,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "test_thread_context", hdrs = [ "public/pw_thread_stl/test_thread_context_native.h", diff --git a/pw_thread_threadx/BUILD.bazel b/pw_thread_threadx/BUILD.bazel index 57536677c1..c08e8c5e35 100644 --- a/pw_thread_threadx/BUILD.bazel +++ b/pw_thread_threadx/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "id", hdrs = [ "id_public_overrides/pw_thread_backend/id_inline.h", @@ -40,7 +39,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "thread", srcs = [ "thread.cc", @@ -68,7 +67,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "non_portable_test_thread_options", srcs = [ "test_threads.cc", @@ -93,7 +92,7 @@ pw_cc_test( ], ) -pw_cc_library( +cc_library( name = "sleep", srcs = [ "sleep.cc", @@ -117,7 +116,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "yield", hdrs = [ "public/pw_thread_threadx/yield_inline.h", @@ -134,7 +133,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "util", srcs = [ "util.cc", @@ -151,7 +150,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "snapshot", srcs = [ "snapshot.cc", diff --git a/pw_tls_client/BUILD.bazel b/pw_tls_client/BUILD.bazel index 6b256af429..45ac0d28b6 100644 --- a/pw_tls_client/BUILD.bazel +++ b/pw_tls_client/BUILD.bazel @@ -15,7 +15,6 @@ load( "//pw_build:pigweed.bzl", "pw_cc_facade", - "pw_cc_library", "pw_cc_test", ) @@ -41,7 +40,7 @@ pw_cc_facade( ], ) -pw_cc_library( +cc_library( name = "pw_tls_client", hdrs = [ "public/pw_tls_client/options.h", @@ -73,7 +72,7 @@ pw_cc_facade( ], ) -pw_cc_library( +cc_library( name = "fake_entropy", srcs = ["fake_entropy.cc"], hdrs = [ @@ -91,7 +90,7 @@ pw_cc_library( # 'constexpr size_t kBuildTimeMicrosecondsUTC' variable for storing the build time. # In gn build, this is generated by a python action target. Need to figure out a # solution in bazel build. -pw_cc_library( +cc_library( name = "build_time", srcs = [ "build_time.cc", @@ -100,7 +99,7 @@ pw_cc_library( tags = ["manual"], ) -pw_cc_library( +cc_library( name = "crlset", hdrs = ["public/pw_tls_client/crlset.h"], includes = ["public"], @@ -109,7 +108,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "test_server", srcs = ["test_server.cc"], hdrs = ["public/pw_tls_client/test/test_server.h"], diff --git a/pw_tls_client_boringssl/BUILD.bazel b/pw_tls_client_boringssl/BUILD.bazel index 084bda7b50..00b8e55585 100644 --- a/pw_tls_client_boringssl/BUILD.bazel +++ b/pw_tls_client_boringssl/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_tls_client_boringssl", srcs = ["tls_client_boringssl.cc"], hdrs = [ diff --git a/pw_tls_client_mbedtls/BUILD.bazel b/pw_tls_client_mbedtls/BUILD.bazel index 9b0a340401..e8b8bbd0e9 100644 --- a/pw_tls_client_mbedtls/BUILD.bazel +++ b/pw_tls_client_mbedtls/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_tls_client_mbedtls", srcs = ["tls_client_mbedtls.cc"], hdrs = [ diff --git a/pw_tokenizer/BUILD.bazel b/pw_tokenizer/BUILD.bazel index 221aa742ac..e998c6f6cf 100644 --- a/pw_tokenizer/BUILD.bazel +++ b/pw_tokenizer/BUILD.bazel @@ -16,7 +16,6 @@ load("@rules_python//python:proto.bzl", "py_proto_library") load( "//pw_build:pigweed.bzl", "pw_cc_binary", - "pw_cc_library", "pw_cc_test", "pw_linker_script", ) @@ -26,7 +25,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_tokenizer", srcs = [ "encode_args.cc", @@ -64,12 +63,12 @@ pw_linker_script( linker_script = "pw_tokenizer_linker_sections.ld", ) -pw_cc_library( +cc_library( name = "test_backend", visibility = ["@pigweed//targets:__pkg__"], ) -pw_cc_library( +cc_library( name = "base64", srcs = [ "base64.cc", @@ -87,7 +86,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "decoder", srcs = [ "decode.cc", @@ -277,7 +276,7 @@ pw_cc_test( ], ) -pw_cc_library( +cc_library( name = "tokenize_c99_test_c", srcs = ["tokenize_c99_test.c"], copts = ["-std=c99"], diff --git a/pw_tokenizer/size_report/BUILD.bazel b/pw_tokenizer/size_report/BUILD.bazel index 3d2ae23e07..de080169fd 100644 --- a/pw_tokenizer/size_report/BUILD.bazel +++ b/pw_tokenizer/size_report/BUILD.bazel @@ -15,11 +15,10 @@ load( "//pw_build:pigweed.bzl", "pw_cc_binary", - "pw_cc_library", ) # Baseline size report library. -pw_cc_library( +cc_library( name = "base_lib", hdrs = ["base.h"], ) diff --git a/pw_toolchain/BUILD.bazel b/pw_toolchain/BUILD.bazel index 512ea27e1c..6e9c8d6aed 100644 --- a/pw_toolchain/BUILD.bazel +++ b/pw_toolchain/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "no_destructor", hdrs = ["public/pw_toolchain/no_destructor.h"], includes = ["public"], @@ -37,7 +36,7 @@ pw_cc_test( ], ) -pw_cc_library( +cc_library( name = "wrap_abort", srcs = ["wrap_abort.cc"], linkopts = ["-Wl,--wrap=abort"], diff --git a/pw_toolchain/arm_gcc/BUILD.bazel b/pw_toolchain/arm_gcc/BUILD.bazel index 7d0a54050e..a17724335b 100644 --- a/pw_toolchain/arm_gcc/BUILD.bazel +++ b/pw_toolchain/arm_gcc/BUILD.bazel @@ -21,14 +21,10 @@ load( "pw_cc_flag_set", "pw_cc_toolchain", ) -load( - "//pw_build:pigweed.bzl", - "pw_cc_library", -) licenses(["notice"]) -pw_cc_library( +cc_library( name = "newlib_os_interface_stubs", srcs = ["newlib_os_interface_stubs.cc"], linkopts = [ @@ -42,7 +38,7 @@ pw_cc_library( alwayslink = 1, ) -pw_cc_library( +cc_library( name = "arm_none_eabi_gcc_support", visibility = ["//visibility:public"], deps = [ diff --git a/pw_trace/BUILD.bazel b/pw_trace/BUILD.bazel index f88d15c920..f948465231 100644 --- a/pw_trace/BUILD.bazel +++ b/pw_trace/BUILD.bazel @@ -16,7 +16,6 @@ load( "//pw_build:pigweed.bzl", "pw_cc_binary", "pw_cc_facade", - "pw_cc_library", "pw_cc_test", ) @@ -36,7 +35,7 @@ pw_cc_facade( ], ) -pw_cc_library( +cc_library( name = "pw_trace", hdrs = [ "public/pw_trace/internal/trace_internal.h", @@ -49,13 +48,13 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "backend_multiplexer", visibility = ["@pigweed//targets:__pkg__"], deps = ["//pw_trace:null"], ) -pw_cc_library( +cc_library( name = "null", hdrs = [ "public/pw_trace/internal/null.h", @@ -120,7 +119,7 @@ pw_cc_test( ], ) -pw_cc_library( +cc_library( name = "trace_null_test", srcs = [ "trace_null_test.cc", @@ -133,7 +132,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "pw_trace_sample_app", srcs = ["example/sample_app.cc"], hdrs = ["example/public/pw_trace/example/sample_app.h"], diff --git a/pw_trace_tokenized/BUILD.bazel b/pw_trace_tokenized/BUILD.bazel index c289bf0f4b..7cf636d897 100644 --- a/pw_trace_tokenized/BUILD.bazel +++ b/pw_trace_tokenized/BUILD.bazel @@ -16,7 +16,6 @@ load("@rules_python//python:proto.bzl", "py_proto_library") load( "//pw_build:pigweed.bzl", "pw_cc_binary", - "pw_cc_library", "pw_cc_test", ) load("//pw_protobuf_compiler:pw_proto_library.bzl", "pw_proto_library") @@ -25,13 +24,13 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "linux_config_overrides", hdrs = ["linux_config_overrides.h"], tags = ["manual"], ) -pw_cc_library( +cc_library( name = "config", hdrs = [ "public/pw_trace_tokenized/config.h", @@ -41,7 +40,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "pw_trace_tokenized", srcs = [ "trace.cc", @@ -68,7 +67,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "base_trace_service", srcs = [ "base_trace_service.cc", @@ -87,7 +86,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "trace_service_pwpb", srcs = [ "trace_service_pwpb.cc", @@ -105,7 +104,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "trace_rpc_service", srcs = [ "trace_rpc_service_nanopb.cc", @@ -126,7 +125,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "buffer", srcs = [ "trace_buffer.cc", @@ -146,7 +145,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "buffer_log", srcs = [ "trace_buffer_log.cc", @@ -189,7 +188,7 @@ py_proto_library( deps = [":protos"], ) -pw_cc_library( +cc_library( name = "pw_trace_tokenized_fake_time", srcs = [ "fake_trace_time.cc", @@ -263,14 +262,14 @@ pw_cc_test( ], ) -pw_cc_library( +cc_library( name = "pw_trace_host_trace_time", srcs = ["host_trace_time.cc"], includes = ["example/public"], deps = [":pw_trace_tokenized"], ) -pw_cc_library( +cc_library( name = "pw_trace_example_to_file", hdrs = ["example/public/pw_trace_tokenized/example/trace_to_file.h"], includes = ["example/public"], @@ -319,7 +318,7 @@ pw_cc_binary( ], ) -pw_cc_library( +cc_library( name = "trace_tokenized_example_rpc", srcs = ["example/rpc.cc"], # TODO: b/258071921 - Fix puzzling compiler errors @@ -334,7 +333,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "trace_tokenized_example_linux_group_by_tid", srcs = ["example/linux_group_by_tid.cc"], # TODO: b/258071921 - Fix puzzling compiler errors diff --git a/pw_transfer/BUILD.bazel b/pw_transfer/BUILD.bazel index d7d5942a43..67ae0a05af 100644 --- a/pw_transfer/BUILD.bazel +++ b/pw_transfer/BUILD.bazel @@ -14,14 +14,14 @@ load("@rules_proto//proto:defs.bzl", "proto_library") load("@rules_python//python:proto.bzl", "py_proto_library") -load("//pw_build:pigweed.bzl", "pw_cc_library", "pw_cc_test") +load("//pw_build:pigweed.bzl", "pw_cc_test") load("//pw_protobuf_compiler:pw_proto_library.bzl", "pw_proto_library") package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "config", hdrs = ["public/pw_transfer/internal/config.h"], includes = ["public"], @@ -30,7 +30,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "core", srcs = [ "chunk.cc", @@ -76,7 +76,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "pw_transfer", srcs = [ "transfer.cc", @@ -98,7 +98,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "client", srcs = [ "client.cc", @@ -116,7 +116,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "atomic_file_transfer_handler", srcs = ["atomic_file_transfer_handler.cc"], hdrs = [ @@ -131,14 +131,14 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "atomic_file_transfer_handler_internal", srcs = [ "pw_transfer_private/filename_generator.h", ], ) -pw_cc_library( +cc_library( name = "test_helpers", srcs = [ "pw_transfer_private/chunk_testing.h", diff --git a/pw_unit_test/BUILD.bazel b/pw_unit_test/BUILD.bazel index 86a8c617c3..2a1ba85ab4 100644 --- a/pw_unit_test/BUILD.bazel +++ b/pw_unit_test/BUILD.bazel @@ -16,7 +16,6 @@ load("@rules_python//python:proto.bzl", "py_proto_library") load( "//pw_build:pigweed.bzl", "pw_cc_binary", - "pw_cc_library", "pw_cc_test", ) load("//pw_protobuf_compiler:pw_proto_library.bzl", "pw_proto_library") @@ -25,7 +24,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "config", hdrs = ["public/pw_unit_test/config.h"], includes = ["public"], @@ -39,13 +38,13 @@ alias( actual = "@pigweed//targets:pw_unit_test_backend", ) -pw_cc_library( +cc_library( name = "framework", hdrs = ["public/pw_unit_test/framework.h"], includes = ["public"], ) -pw_cc_library( +cc_library( name = "light", srcs = ["framework_light.cc"], hdrs = [ @@ -73,7 +72,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "googletest", hdrs = [ "googletest_public_overrides/pw_unit_test/framework_backend.h", @@ -100,13 +99,13 @@ config_setting( }, ) -pw_cc_library( +cc_library( name = "event_handler", hdrs = ["public/pw_unit_test/event_handler.h"], includes = ["public"], ) -pw_cc_library( +cc_library( name = "googletest_style_event_handler", srcs = ["googletest_style_event_handler.cc"], hdrs = ["public/pw_unit_test/googletest_style_event_handler.h"], @@ -116,7 +115,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "googletest_handler_adapter", testonly = True, srcs = ["googletest_handler_adapter.cc"], @@ -133,7 +132,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "googletest_test_matchers", testonly = True, hdrs = ["public/pw_unit_test/googletest_test_matchers.h"], @@ -161,7 +160,7 @@ pw_cc_test( ], ) -pw_cc_library( +cc_library( name = "simple_printing_event_handler", srcs = ["simple_printing_event_handler.cc"], hdrs = [ @@ -176,7 +175,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "simple_printing_main", srcs = [ "simple_printing_main.cc", @@ -189,7 +188,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "printf_event_handler", hdrs = ["public/pw_unit_test/printf_event_handler.h"], deps = [ @@ -198,7 +197,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "printf_main", srcs = ["printf_main.cc"], deps = [ @@ -207,7 +206,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "logging_event_handler", srcs = [ "logging_event_handler.cc", @@ -225,7 +224,7 @@ pw_cc_library( ) # Provides logging to either the light framework or an external GoogleTest. -pw_cc_library( +cc_library( name = "logging", deps = [":logging_event_handler"] + select({ ":gtest_setting": [":googletest_handler_adapter"], @@ -260,7 +259,7 @@ pw_proto_library( deps = [":unit_test_proto"], ) -pw_cc_library( +cc_library( name = "rpc_service", srcs = ["unit_test_service.cc"] + select({ ":light_setting": ["rpc_light_event_handler.cc"], @@ -290,7 +289,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "rpc_main", srcs = [ "rpc_main.cc", @@ -305,7 +304,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "static_library_support", srcs = ["static_library_support.cc"], hdrs = ["public/pw_unit_test/static_library_support.h"], @@ -313,7 +312,7 @@ pw_cc_library( deps = [":light"], # This library only works with the light backend ) -pw_cc_library( +cc_library( name = "tests_in_archive", srcs = [ "static_library_archived_tests.cc", diff --git a/pw_varint/BUILD.bazel b/pw_varint/BUILD.bazel index 4688787d61..d1a811000c 100644 --- a/pw_varint/BUILD.bazel +++ b/pw_varint/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) @@ -22,7 +21,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_varint", srcs = [ "varint.cc", @@ -40,7 +39,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "stream", srcs = [ "stream.cc", diff --git a/pw_work_queue/BUILD.bazel b/pw_work_queue/BUILD.bazel index ec5813b395..fd00eb4ff4 100644 --- a/pw_work_queue/BUILD.bazel +++ b/pw_work_queue/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_cc_test", ) load( @@ -26,7 +25,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pw_work_queue", srcs = ["work_queue.cc"], hdrs = [ @@ -45,13 +44,13 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "test_thread_header", hdrs = ["public/pw_work_queue/test_thread.h"], includes = ["public"], ) -pw_cc_library( +cc_library( name = "work_queue_test", srcs = [ "work_queue_test.cc", @@ -64,7 +63,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "stl_test_thread", srcs = [ "stl_test_thread.cc", diff --git a/targets/arduino/BUILD.bazel b/targets/arduino/BUILD.bazel index 39c178e95f..3c55727d61 100644 --- a/targets/arduino/BUILD.bazel +++ b/targets/arduino/BUILD.bazel @@ -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 = "pre_init", srcs = [ "init.cc", diff --git a/targets/emcraft_sf2_som/BUILD.bazel b/targets/emcraft_sf2_som/BUILD.bazel index d1cd31268b..7b767284f8 100644 --- a/targets/emcraft_sf2_som/BUILD.bazel +++ b/targets/emcraft_sf2_som/BUILD.bazel @@ -15,14 +15,13 @@ load( "//pw_build:pigweed.bzl", "pw_cc_binary", - "pw_cc_library", ) package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "pre_init", srcs = [ "boot.cc", diff --git a/targets/host/BUILD.bazel b/targets/host/BUILD.bazel index 1ea37dcdec..8ffb64d77f 100644 --- a/targets/host/BUILD.bazel +++ b/targets/host/BUILD.bazel @@ -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 = "system_rpc_server", srcs = ["system_rpc_server.cc"], deps = [ diff --git a/targets/host_device_simulator/BUILD.bazel b/targets/host_device_simulator/BUILD.bazel index 2c758fb01a..13253a6897 100644 --- a/targets/host_device_simulator/BUILD.bazel +++ b/targets/host_device_simulator/BUILD.bazel @@ -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 = "boot", srcs = [ "boot.cc", diff --git a/targets/lm3s6965evb_qemu/BUILD.bazel b/targets/lm3s6965evb_qemu/BUILD.bazel index 533460f6c3..cb448144d0 100644 --- a/targets/lm3s6965evb_qemu/BUILD.bazel +++ b/targets/lm3s6965evb_qemu/BUILD.bazel @@ -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 = "pre_init", srcs = [ "boot.cc", diff --git a/targets/mimxrt595_evk/BUILD.bazel b/targets/mimxrt595_evk/BUILD.bazel index 64e72a2c1c..3a23ba7402 100644 --- a/targets/mimxrt595_evk/BUILD.bazel +++ b/targets/mimxrt595_evk/BUILD.bazel @@ -12,18 +12,13 @@ # 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"]) # TODO(pwbug/545): These just list sources files to pass presubmit and aren't # expected to actually work. -pw_cc_library( +cc_library( name = "boot", srcs = [ "boot.cc", diff --git a/targets/mimxrt595_evk_freertos/BUILD.bazel b/targets/mimxrt595_evk_freertos/BUILD.bazel index aea2350edd..374cad3025 100644 --- a/targets/mimxrt595_evk_freertos/BUILD.bazel +++ b/targets/mimxrt595_evk_freertos/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_linker_script", ) @@ -37,7 +36,7 @@ pw_linker_script( linker_script = "mimxrt595_flash.ld", ) -pw_cc_library( +cc_library( name = "boot", srcs = [ "boot.cc", @@ -61,7 +60,7 @@ pw_cc_library( alwayslink = 1, ) -pw_cc_library( +cc_library( name = "freertos_config", hdrs = [ "FreeRTOSConfig.h", @@ -70,7 +69,7 @@ pw_cc_library( deps = ["//third_party/freertos:config_assert"], ) -pw_cc_library( +cc_library( name = "tasks", srcs = [ "tasks.c", diff --git a/targets/rp2040/BUILD.bazel b/targets/rp2040/BUILD.bazel index d37fe0d8c2..5125c90d0d 100644 --- a/targets/rp2040/BUILD.bazel +++ b/targets/rp2040/BUILD.bazel @@ -12,11 +12,6 @@ # 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"]) @@ -26,7 +21,7 @@ licenses(["notice"]) # the Pi Pico. # # TODO: b/260639642 - Support Pico in the Bazel build. -pw_cc_library( +cc_library( name = "pico_logging_test_main", srcs = [ "pico_logging_test_main.cc", diff --git a/targets/stm32f429i_disc1/BUILD.bazel b/targets/stm32f429i_disc1/BUILD.bazel index 6aef9ad8f6..d80fee16f5 100644 --- a/targets/stm32f429i_disc1/BUILD.bazel +++ b/targets/stm32f429i_disc1/BUILD.bazel @@ -14,7 +14,6 @@ load( "//pw_build:pigweed.bzl", - "pw_cc_library", "pw_linker_script", ) @@ -40,7 +39,7 @@ pw_linker_script( linker_script = "//pw_boot_cortex_m:basic_cortex_m.ld", ) -pw_cc_library( +cc_library( name = "pre_init", srcs = [ "boot.cc", diff --git a/targets/stm32f429i_disc1_stm32cube/BUILD.bazel b/targets/stm32f429i_disc1_stm32cube/BUILD.bazel index 113a05faad..0a9c83bc97 100644 --- a/targets/stm32f429i_disc1_stm32cube/BUILD.bazel +++ b/targets/stm32f429i_disc1_stm32cube/BUILD.bazel @@ -15,7 +15,6 @@ load( "//pw_build:pigweed.bzl", "pw_cc_binary", - "pw_cc_library", "pw_linker_script", ) @@ -23,7 +22,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "freertos_config", hdrs = [ "config/FreeRTOSConfig.h", @@ -62,7 +61,7 @@ platform( ], ) -pw_cc_library( +cc_library( name = "hal_config", hdrs = [ "config/stm32f4xx_hal_conf.h", @@ -70,7 +69,7 @@ pw_cc_library( includes = ["config"], ) -pw_cc_library( +cc_library( name = "pre_init", srcs = [ "boot.cc", diff --git a/third_party/boringssl/BUILD.bazel b/third_party/boringssl/BUILD.bazel index b4179fdf02..b33ffd441e 100644 --- a/third_party/boringssl/BUILD.bazel +++ b/third_party/boringssl/BUILD.bazel @@ -13,12 +13,7 @@ # the License. # -load( - "//pw_build:pigweed.bzl", - "pw_cc_library", -) - -pw_cc_library( +cc_library( name = "sysdeps", hdrs = ["sysdeps/sys/socket.h"], copts = ["-Wno-unused-parameter"], diff --git a/third_party/chromium_verifier/BUILD.bazel b/third_party/chromium_verifier/BUILD.bazel index c644d3c979..3d8028eb48 100644 --- a/third_party/chromium_verifier/BUILD.bazel +++ b/third_party/chromium_verifier/BUILD.bazel @@ -12,12 +12,7 @@ # License for the specific language governing permissions and limitations under # the License. -load( - "//pw_build:pigweed.bzl", - "pw_cc_library", -) - -pw_cc_library( +cc_library( name = "pthread", hdrs = [ "public/chromium_verifier/pthread/pthread.h", diff --git a/third_party/freertos/BUILD.bazel b/third_party/freertos/BUILD.bazel index c5a31ae45a..175c342db5 100644 --- a/third_party/freertos/BUILD.bazel +++ b/third_party/freertos/BUILD.bazel @@ -12,16 +12,11 @@ # License for the specific language governing permissions and limitations under # the License. -load( - "@pigweed//pw_build:pigweed.bzl", - "pw_cc_library", -) - package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -pw_cc_library( +cc_library( name = "config_assert", hdrs = [ "public/pw_third_party/freertos/config_assert.h", @@ -57,7 +52,7 @@ constraint_value( constraint_setting = ":port", ) -pw_cc_library( +cc_library( name = "freertos", srcs = [ "croutine.c", @@ -120,7 +115,7 @@ pw_cc_library( alwayslink = 1, ) -pw_cc_library( +cc_library( name = "freertos_port_headers", hdrs = select({ ":port_ARM_CM33_NTZ": [ @@ -151,7 +146,7 @@ pw_cc_library( ) # Headers transitively included by using "FreeRTOS.h" -pw_cc_library( +cc_library( name = "freertos_headers", hdrs = [ "include/FreeRTOS.h", @@ -190,7 +185,7 @@ constraint_value( constraint_setting = ":disable_tasks_statics_setting", ) -pw_cc_library( +cc_library( name = "pigweed_tasks_c", srcs = ["tasks.c"], defines = select({ @@ -221,7 +216,7 @@ alias( }), ) -pw_cc_library( +cc_library( name = "default_freertos_config", # The "default" config is not compatible with any configuration: you can't # build FreeRTOS without choosing a config. @@ -259,7 +254,7 @@ constraint_value( constraint_setting = ":malloc", ) -pw_cc_library( +cc_library( name = "freertos_malloc", srcs = select({ ":malloc_heap_1": ["portable/MemMang/heap_1.c"], diff --git a/third_party/fuchsia/BUILD.bazel b/third_party/fuchsia/BUILD.bazel index e373015df8..563dfc1d4e 100644 --- a/third_party/fuchsia/BUILD.bazel +++ b/third_party/fuchsia/BUILD.bazel @@ -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 = "fit", srcs = [ "repo/sdk/lib/fit/include/lib/fit/internal/compiler.h", @@ -42,7 +37,7 @@ pw_cc_library( ], ) -pw_cc_library( +cc_library( name = "stdcompat", srcs = [ "repo/sdk/lib/stdcompat/include/lib/stdcompat/bit.h", diff --git a/third_party/mbedtls/BUILD.bazel b/third_party/mbedtls/BUILD.bazel index 55c9d0af5b..348e18d3ea 100644 --- a/third_party/mbedtls/BUILD.bazel +++ b/third_party/mbedtls/BUILD.bazel @@ -12,17 +12,12 @@ # 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"], ) # Config targets. -pw_cc_library( +cc_library( name = "default_config", hdrs = [ "configs/config_default.h", diff --git a/third_party/mcuxpresso/BUILD.bazel b/third_party/mcuxpresso/BUILD.bazel index a230f4ca60..054aba87e2 100644 --- a/third_party/mcuxpresso/BUILD.bazel +++ b/third_party/mcuxpresso/BUILD.bazel @@ -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 = "default_mcuxpresso_sdk", # The "default" config is not compatible with any configuration: you can't # build MCUXpresso targets without choosing an SDK. diff --git a/third_party/smartfusion_mss/BUILD.bazel b/third_party/smartfusion_mss/BUILD.bazel index bf4dfa0d7e..5d66a45637 100644 --- a/third_party/smartfusion_mss/BUILD.bazel +++ b/third_party/smartfusion_mss/BUILD.bazel @@ -12,11 +12,6 @@ # License for the specific language governing permissions and limitations under # the License. -load( - "//pw_build:pigweed.bzl", - "pw_cc_library", -) - # Ready-made configurations liberosoc_configs = [ ("default", "configs/config_default.h"), @@ -25,7 +20,7 @@ liberosoc_configs = [ # Config targets. [ - pw_cc_library( + cc_library( name = "%s_config" % config_name, hdrs = [ config_header, diff --git a/third_party/stm32cube/BUILD.bazel b/third_party/stm32cube/BUILD.bazel index 94e3537f48..d0a786a3bc 100644 --- a/third_party/stm32cube/BUILD.bazel +++ b/third_party/stm32cube/BUILD.bazel @@ -12,11 +12,6 @@ # 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"]) @@ -24,7 +19,7 @@ licenses(["notice"]) # NOTE: To depend on this target, you must set the STM32CUBE_HEADER # preprocessor variable, perhaps using copts associated with the target # platform. See the module documentation for details. -pw_cc_library( +cc_library( name = "stm32cube", hdrs = [ "public/stm32cube/init.h",