pw_build: Support specifying final link dependencies
- pw_build_LINK_DEPS is a list of build targets that are linked into
all build artifacts produced by pw_executable, pw_static_library, and
pw_shared_library.
- Add a ":deps" group to the pw_assert build interface. Require
$dir_pw_assert:deps to be listed in pw_build_LINK_DEPS if
pw_assert_BACKEND is set.
Change-Id: Icc01dbe86f95d971e76aa357c7b7174ce85546ba
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/43521
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Reviewed-by: Armando Montanez <amontanez@google.com>
diff --git a/pw_assert_log/BUILD.gn b/pw_assert_log/BUILD.gn
index 083c5e8..f6726b0 100644
--- a/pw_assert_log/BUILD.gn
+++ b/pw_assert_log/BUILD.gn
@@ -46,6 +46,11 @@
sources = [ "assert_log.cc" ]
}
+# pw_assert_log doesn't have deps with potential circular dependencies, so
+# "deps" can be empty.
+group("deps") {
+}
+
pw_doc_group("docs") {
sources = [ "docs.rst" ]
}