aboutsummaryrefslogtreecommitdiff
path: root/pw_build
diff options
context:
space:
mode:
authorTed Pudlik <tpudlik@google.com>2024-01-04 22:25:23 +0000
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2024-01-04 22:25:23 +0000
commit346402f70e8f87899bd9d51bc8771eb7848556d6 (patch)
tree5e36c435cca706ec115ee04c35cc50b72c5e4fe9 /pw_build
parent4559b52b5d2f564949e8a99b5e6d94458101b0a8 (diff)
downloadpigweed-346402f70e8f87899bd9d51bc8771eb7848556d6.tar.gz
bazel: Remove references to pw_cc_library
Bug: 267498492 Change-Id: If997fe7c542916ea03170887a5f03670c2f21470 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/186765 Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Armando Montanez <amontanez@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com> Pigweed-Auto-Submit: Ted Pudlik <tpudlik@google.com>
Diffstat (limited to 'pw_build')
-rw-r--r--pw_build/bazel.rst12
-rw-r--r--pw_build/selects.bzl2
2 files changed, 7 insertions, 7 deletions
diff --git a/pw_build/bazel.rst b/pw_build/bazel.rst
index 0263eeaa4..5c222e70c 100644
--- a/pw_build/bazel.rst
+++ b/pw_build/bazel.rst
@@ -10,8 +10,8 @@ microcontrollers.
Wrapper rules
-------------
The common configuration for Bazel for all modules is in the ``pigweed.bzl``
-file. The built-in Bazel rules ``cc_binary``, ``cc_library``, and ``cc_test``
-are wrapped with ``pw_cc_binary``, ``pw_cc_library``, and ``pw_cc_test``.
+file. The built-in Bazel rules ``cc_binary``, ``cc_test`` are wrapped with
+``pw_cc_binary`` and ``pw_cc_test``.
.. _module-pw_build-bazel-pw_linker_script:
@@ -89,13 +89,13 @@ components:
#. The **library target**, i.e. both the facade (interface) and backend
(implementation). This is what *users of the module* depend on. It's a
- regular ``pw_cc_library`` that exposes the same headers as the facade, but
+ regular ``cc_library`` that exposes the same headers as the facade, but
has a dependency on the "backend label flag" (discussed next). It may also
include some source files (if these are backend-independent). For example,
.. code-block:: python
- pw_cc_library(
+ cc_library(
name = "binary_semaphore",
# A backend-independent source file.
srcs = [
@@ -129,11 +129,11 @@ components:
``//targets/BUILD.bazel``.
#. The **backend target** implements a particular backend for a facade. It's
- just a plain ``pw_cc_library``, with a dependency on the facade target. For example,
+ just a plain ``cc_library``, with a dependency on the facade target. For example,
.. code-block:: python
- pw_cc_library(
+ cc_library(
name = "binary_semaphore",
srcs = [
"binary_semaphore.cc",
diff --git a/pw_build/selects.bzl b/pw_build/selects.bzl
index 81d3d14a5..e1af70b50 100644
--- a/pw_build/selects.bzl
+++ b/pw_build/selects.bzl
@@ -19,7 +19,7 @@ _RTOS_NONE = Label("//pw_build/constraints/rtos:none")
# select implements the logic '(Windows, macOS, iOS, Linux, Android, or
# Chromium OS) and not RTOS'. Example usage:
# load("//pw_build:selects.bzl","TARGET_COMPATIBLE_WITH_HOST_SELECT")
-# pw_cc_library(
+# cc_library(
# name = "some_host_only_lib",
# hdrs = ["host.h"],
# target_compatible_with = select(TARGET_COMPATIBLE_WITH_HOST_SELECT),