diff options
author | Alexei Frolov <frolv@google.com> | 2020-01-17 14:15:01 -0800 |
---|---|---|
committer | CQ Bot Account <commit-bot@chromium.org> | 2020-01-17 23:37:29 +0000 |
commit | 5152d4341e99e5b0299142c06695da4c0b9c944c (patch) | |
tree | e7719205825bcf2e94f55d687aab107e49e53240 /pw_cpu_exception | |
parent | a6d5cc6fe4dceb698e61cf5c0500d275f1a97434 (diff) | |
download | pigweed-5152d4341e99e5b0299142c06695da4c0b9c944c.tar.gz |
pw_build: Expand facade template
This change updates the pw_facade template to create both a facade
interface and library. This avoids having to manually define the
interface when writing a facade module.
Change-Id: I7401c6c363b4e45a976752243d5a77e9d4599c18
Diffstat (limited to 'pw_cpu_exception')
-rw-r--r-- | pw_cpu_exception/BUILD.gn | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/pw_cpu_exception/BUILD.gn b/pw_cpu_exception/BUILD.gn index 2e6237641..580e65554 100644 --- a/pw_cpu_exception/BUILD.gn +++ b/pw_cpu_exception/BUILD.gn @@ -19,7 +19,8 @@ config("default_config") { include_dirs = [ "public" ] } -source_set("facade") { +pw_facade("pw_cpu_exception") { + backend = dir_pw_cpu_exception_backend public_configs = [ ":default_config" ] public_deps = [ "$dir_pw_preprocessor", @@ -29,14 +30,6 @@ source_set("facade") { public = [ "public/pw_cpu_exception/cpu_exception.h", ] - sources = public -} - -pw_facade("pw_cpu_exception") { - backend = dir_pw_cpu_exception_backend - public_deps = [ - ":facade", - ] } pw_doc_group("docs") { |