Skip to content

Commit

Permalink
pw_sys_io: Improve CMake support
Browse files Browse the repository at this point in the history
Change-Id: I947f00449a836481aaaa8919e1a6bad00542cca7
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/97744
Pigweed-Auto-Submit: Ewout van Bekkum <ewout@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Ewout van Bekkum <ewout@google.com>
  • Loading branch information
Ewout van Bekkum authored and CQ Bot Account committed Jun 10, 2022
1 parent 2f9247f commit 688f803
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
13 changes: 11 additions & 2 deletions pw_sys_io/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,18 @@
include($ENV{PW_ROOT}/pw_build/pigweed.cmake)

pw_add_facade(pw_sys_io
HEADERS
public/pw_sys_io/sys_io.h
PUBLIC_INCLUDES
public
PUBLIC_DEPS
pw_status
pw_polyfill.span
)

pw_add_module_library(pw_sys_io.default_putget_bytes
SOURCES
sys_io.cc
PUBLIC_DEPS
pw_span
pw_status
pw_sys_io.facade
)
9 changes: 6 additions & 3 deletions pw_sys_io_stdio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@

include($ENV{PW_ROOT}/pw_build/pigweed.cmake)

pw_auto_add_simple_module(pw_sys_io_stdio
IMPLEMENTS_FACADE
pw_sys_io
pw_add_module_library(pw_sys_io_stdio
SOURCES
sys_io.cc
PRIVATE_DEPS
pw_sys_io.default_putget_bytes
pw_sys_io.facade
)

0 comments on commit 688f803

Please sign in to comment.