diff options
author | Ted Pudlik <tpudlik@google.com> | 2024-01-08 21:33:53 +0000 |
---|---|---|
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2024-01-08 21:33:53 +0000 |
commit | e4224c5161e81d6550a1a4eaa15d17602cd660b1 (patch) | |
tree | bbe4b58758e034e764d8ba9d75dd98489f52bb6b /pw_string | |
parent | 9d38561541ad6e98e9b15fa5fd4a03b63c4579f9 (diff) | |
download | pigweed-e4224c5161e81d6550a1a4eaa15d17602cd660b1.tar.gz |
bazel: Add module configuration support
This CL adds label_flags allowing the injection of module configuration
for all Pigweed modules. It's a followup to http://pwrev.dev/181032,
which introduced and documented this pattern, but implemented it for
only one module (pw_thread_freertos).
Fixes: b/234872811
Change-Id: I8f05f7636e96a5009e3a6eb6fe7b2af89dcb9811
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/186725
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Reviewed-by: Armando Montanez <amontanez@google.com>
Pigweed-Auto-Submit: Ted Pudlik <tpudlik@google.com>
Diffstat (limited to 'pw_string')
-rw-r--r-- | pw_string/BUILD.bazel | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pw_string/BUILD.bazel b/pw_string/BUILD.bazel index 61df9f824..7a9e5d68f 100644 --- a/pw_string/BUILD.bazel +++ b/pw_string/BUILD.bazel @@ -25,6 +25,12 @@ cc_library( name = "config", hdrs = ["public/pw_string/internal/config.h"], includes = ["public"], + deps = [":config_override"], +) + +label_flag( + name = "config_override", + build_setting_default = "//pw_build:default_module_config", ) cc_library( |