xref: /aosp_15_r20/external/pigweed/CMakeLists.txt (revision 61c4878ac05f98d0ceed94b57d316916de578985)
1*61c4878aSAndroid Build Coastguard Worker# Copyright 2020 The Pigweed Authors
2*61c4878aSAndroid Build Coastguard Worker#
3*61c4878aSAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License"); you may not
4*61c4878aSAndroid Build Coastguard Worker# use this file except in compliance with the License. You may obtain a copy of
5*61c4878aSAndroid Build Coastguard Worker# the License at
6*61c4878aSAndroid Build Coastguard Worker#
7*61c4878aSAndroid Build Coastguard Worker#     https://www.apache.org/licenses/LICENSE-2.0
8*61c4878aSAndroid Build Coastguard Worker#
9*61c4878aSAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software
10*61c4878aSAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11*61c4878aSAndroid Build Coastguard Worker# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12*61c4878aSAndroid Build Coastguard Worker# License for the specific language governing permissions and limitations under
13*61c4878aSAndroid Build Coastguard Worker# the License.
14*61c4878aSAndroid Build Coastguard Worker
15*61c4878aSAndroid Build Coastguard Workercmake_minimum_required(VERSION 3.16)
16*61c4878aSAndroid Build Coastguard Workerproject(Pigweed)
17*61c4878aSAndroid Build Coastguard Worker
18*61c4878aSAndroid Build Coastguard Worker# Do not rely on the PW_ROOT environment variable being set through bootstrap.
19*61c4878aSAndroid Build Coastguard Worker# Regardless of whether it's set or not the following include will ensure it is.
20*61c4878aSAndroid Build Coastguard Workerinclude(pw_build/pigweed.cmake)
21*61c4878aSAndroid Build Coastguard Worker
22*61c4878aSAndroid Build Coastguard Workerif(CONFIG_ZEPHYR_PIGWEED_MODULE)
23*61c4878aSAndroid Build Coastguard Worker  pw_set_zephyr_backend_ifdef(CONFIG_PIGWEED_ASSERT
24*61c4878aSAndroid Build Coastguard Worker      pw_assert.assert pw_assert_zephyr.assert pw_assert/backend.cmake)
25*61c4878aSAndroid Build Coastguard Worker  pw_set_zephyr_backend_ifdef(CONFIG_PIGWEED_ASSERT
26*61c4878aSAndroid Build Coastguard Worker      pw_assert.check pw_assert_zephyr.check pw_assert/backend.cmake)
27*61c4878aSAndroid Build Coastguard Worker  pw_set_zephyr_backend_ifdef(CONFIG_PIGWEED_CHRONO_SYSTEM_CLOCK
28*61c4878aSAndroid Build Coastguard Worker      pw_chrono.system_clock pw_chrono_zephyr.system_clock pw_chrono/backend.cmake)
29*61c4878aSAndroid Build Coastguard Worker  pw_set_zephyr_backend_ifdef(CONFIG_PIGWEED_INTERRUPT_CONTEXT
30*61c4878aSAndroid Build Coastguard Worker      pw_interrupt.context pw_interrupt_zephyr.context pw_interrupt/backend.cmake)
31*61c4878aSAndroid Build Coastguard Worker  pw_set_zephyr_backend_ifdef(CONFIG_PIGWEED_LOG_ZEPHYR
32*61c4878aSAndroid Build Coastguard Worker      pw_log pw_log_zephyr pw_log/backend.cmake)
33*61c4878aSAndroid Build Coastguard Worker  pw_set_zephyr_backend_ifdef(CONFIG_PIGWEED_LOG_TOKENIZED
34*61c4878aSAndroid Build Coastguard Worker      pw_log_tokenized.handler pw_log_zephyr.tokenized_handler pw_log_tokenized/backend.cmake)
35*61c4878aSAndroid Build Coastguard Worker  pw_set_zephyr_backend_ifdef(CONFIG_PIGWEED_LOG_TOKENIZED
36*61c4878aSAndroid Build Coastguard Worker      pw_log pw_log_tokenized pw_log/backend.cmake)
37*61c4878aSAndroid Build Coastguard Worker  pw_set_zephyr_backend_ifdef(CONFIG_PIGWEED_SYSTEM_HDLC_RPC_SERVER
38*61c4878aSAndroid Build Coastguard Worker    pw_system.rpc_server pw_system.hdlc_rpc_server  pw_system/backend.cmake)
39*61c4878aSAndroid Build Coastguard Worker  pw_set_zephyr_backend_ifdef(CONFIG_PIGWEED_SYSTEM_LOG_BACKEND
40*61c4878aSAndroid Build Coastguard Worker    pw_log pw_system.log_backend pw_log/backend.cmake)
41*61c4878aSAndroid Build Coastguard Worker  pw_set_zephyr_backend_ifdef(CONFIG_PIGWEED_SYSTEM_LOG_BACKEND
42*61c4878aSAndroid Build Coastguard Worker    pw_log_tokenized.handler pw_system.log_backend pw_log_tokenized/backend.cmake)
43*61c4878aSAndroid Build Coastguard Worker  pw_set_zephyr_backend_ifdef(CONFIG_PIGWEED_SYSTEM_TARGET_HOOKS
44*61c4878aSAndroid Build Coastguard Worker    pw_system.target_hooks pw_system.zephyr_target_hooks  pw_system/backend.cmake)
45*61c4878aSAndroid Build Coastguard Worker  pw_set_zephyr_backend_ifdef(CONFIG_PIGWEED_THREAD_ITERATION
46*61c4878aSAndroid Build Coastguard Worker      pw_thread.thread_iteration pw_thread_zephyr.thread_iteration pw_thread/backend.cmake)
47*61c4878aSAndroid Build Coastguard Worker  pw_set_zephyr_backend_ifdef(CONFIG_PIGWEED_THREAD_SLEEP
48*61c4878aSAndroid Build Coastguard Worker      pw_thread.sleep pw_thread_zephyr.sleep pw_thread/backend.cmake)
49*61c4878aSAndroid Build Coastguard Worker  pw_set_zephyr_backend_ifdef(CONFIG_PIGWEED_THREAD
50*61c4878aSAndroid Build Coastguard Worker      pw_thread.id pw_thread_zephyr.id pw_thread/backend.cmake)
51*61c4878aSAndroid Build Coastguard Worker  pw_set_zephyr_backend_ifdef(CONFIG_PIGWEED_THREAD
52*61c4878aSAndroid Build Coastguard Worker      pw_thread.thread pw_thread_zephyr.thread pw_thread/backend.cmake)
53*61c4878aSAndroid Build Coastguard Worker  pw_set_zephyr_backend_ifdef(CONFIG_PIGWEED_SYNC_BINARY_SEMAPHORE
54*61c4878aSAndroid Build Coastguard Worker      pw_sync.mutex pw_sync_zephyr.binary_semaphore_backend pw_sync/backend.cmake)
55*61c4878aSAndroid Build Coastguard Worker  pw_set_zephyr_backend_ifdef(CONFIG_PIGWEED_SYNC_INTERRUPT_SPIN_LOCK
56*61c4878aSAndroid Build Coastguard Worker      pw_sync.interrupt_spin_lock pw_sync_zephyr.interrupt_spin_lock_backend pw_sync/backend.cmake)
57*61c4878aSAndroid Build Coastguard Worker  pw_set_zephyr_backend_ifdef(CONFIG_PIGWEED_SYNC_THREAD_NOTIFICATION
58*61c4878aSAndroid Build Coastguard Worker    pw_sync.thread_notification pw_sync_zephyr.thread_notification_backend pw_sync/backend.cmake)
59*61c4878aSAndroid Build Coastguard Worker  pw_set_zephyr_backend_ifdef(CONFIG_PIGWEED_SYNC_TIMED_THREAD_NOTIFICATION
60*61c4878aSAndroid Build Coastguard Worker      pw_sync.timed_thread_notification pw_sync_zephyr.timed_thread_notification_backend pw_sync/backend.cmake)
61*61c4878aSAndroid Build Coastguard Worker  pw_set_zephyr_backend_ifdef(CONFIG_PIGWEED_SYNC_MUTEX
62*61c4878aSAndroid Build Coastguard Worker      pw_sync.mutex pw_sync_zephyr.mutex_backend pw_sync/backend.cmake)
63*61c4878aSAndroid Build Coastguard Worker  pw_set_zephyr_backend_ifdef(CONFIG_PIGWEED_SYS_IO
64*61c4878aSAndroid Build Coastguard Worker      pw_sys_io pw_sys_io_zephyr pw_sys_io/backend.cmake)
65*61c4878aSAndroid Build Coastguard Worker
66*61c4878aSAndroid Build Coastguard Worker  if(CONFIG_NANOPB AND "${dir_pw_third_party_nanopb}" STREQUAL "")
67*61c4878aSAndroid Build Coastguard Worker    set(dir_pw_third_party_nanopb "${ZEPHYR_NANOPB_MODULE_DIR}" CACHE PATH "" FORCE)
68*61c4878aSAndroid Build Coastguard Worker  endif()
69*61c4878aSAndroid Build Coastguard Workerendif()
70*61c4878aSAndroid Build Coastguard Worker
71*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_alignment EXCLUDE_FROM_ALL)
72*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_allocator EXCLUDE_FROM_ALL)
73*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_assert EXCLUDE_FROM_ALL)
74*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_assert_basic EXCLUDE_FROM_ALL)
75*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_assert_fuchsia EXCLUDE_FROM_ALL)
76*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_assert_log EXCLUDE_FROM_ALL)
77*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_assert_zephyr EXCLUDE_FROM_ALL)
78*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_async EXCLUDE_FROM_ALL)
79*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_async_basic EXCLUDE_FROM_ALL)
80*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_async2 EXCLUDE_FROM_ALL)
81*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_async2_basic EXCLUDE_FROM_ALL)
82*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_async2_epoll EXCLUDE_FROM_ALL)
83*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_async_fuchsia EXCLUDE_FROM_ALL)
84*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_base64 EXCLUDE_FROM_ALL)
85*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_blob_store EXCLUDE_FROM_ALL)
86*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_bluetooth EXCLUDE_FROM_ALL)
87*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_bluetooth_proxy EXCLUDE_FROM_ALL)
88*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_build EXCLUDE_FROM_ALL)
89*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_build_info EXCLUDE_FROM_ALL)
90*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_bytes EXCLUDE_FROM_ALL)
91*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_channel EXCLUDE_FROM_ALL)
92*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_checksum EXCLUDE_FROM_ALL)
93*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_chrono EXCLUDE_FROM_ALL)
94*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_chrono_freertos EXCLUDE_FROM_ALL)
95*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_chrono_stl EXCLUDE_FROM_ALL)
96*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_chrono_zephyr EXCLUDE_FROM_ALL)
97*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_compilation_testing EXCLUDE_FROM_ALL)
98*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_containers EXCLUDE_FROM_ALL)
99*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_cpu_exception EXCLUDE_FROM_ALL)
100*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_cpu_exception_cortex_m EXCLUDE_FROM_ALL)
101*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_digital_io EXCLUDE_FROM_ALL)
102*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_display EXCLUDE_FROM_ALL)
103*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_elf EXCLUDE_FROM_ALL)
104*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_file EXCLUDE_FROM_ALL)
105*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_function EXCLUDE_FROM_ALL)
106*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_fuzzer EXCLUDE_FROM_ALL)
107*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_hex_dump EXCLUDE_FROM_ALL)
108*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_hdlc EXCLUDE_FROM_ALL)
109*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_i2c EXCLUDE_FROM_ALL)
110*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_interrupt EXCLUDE_FROM_ALL)
111*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_interrupt_cortex_m EXCLUDE_FROM_ALL)
112*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_interrupt_zephyr EXCLUDE_FROM_ALL)
113*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_intrusive_ptr EXCLUDE_FROM_ALL)
114*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_json EXCLUDE_FROM_ALL)
115*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_kvs EXCLUDE_FROM_ALL)
116*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_log EXCLUDE_FROM_ALL)
117*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_log_basic EXCLUDE_FROM_ALL)
118*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_log_fuchsia EXCLUDE_FROM_ALL)
119*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_log_null EXCLUDE_FROM_ALL)
120*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_log_string EXCLUDE_FROM_ALL)
121*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_log_tokenized EXCLUDE_FROM_ALL)
122*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_log_rpc EXCLUDE_FROM_ALL)
123*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_log_zephyr EXCLUDE_FROM_ALL)
124*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_minimal_cpp_stdlib EXCLUDE_FROM_ALL)
125*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_metric EXCLUDE_FROM_ALL)
126*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_multibuf EXCLUDE_FROM_ALL)
127*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_multisink EXCLUDE_FROM_ALL)
128*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_numeric EXCLUDE_FROM_ALL)
129*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_persistent_ram EXCLUDE_FROM_ALL)
130*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_perf_test EXCLUDE_FROM_ALL)
131*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_polyfill EXCLUDE_FROM_ALL)
132*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_preprocessor EXCLUDE_FROM_ALL)
133*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_protobuf EXCLUDE_FROM_ALL)
134*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_protobuf_compiler EXCLUDE_FROM_ALL)
135*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_random EXCLUDE_FROM_ALL)
136*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_random_fuchsia EXCLUDE_FROM_ALL)
137*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_result EXCLUDE_FROM_ALL)
138*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_ring_buffer EXCLUDE_FROM_ALL)
139*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_router EXCLUDE_FROM_ALL)
140*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_rpc EXCLUDE_FROM_ALL)
141*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_rpc_transport EXCLUDE_FROM_ALL)
142*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_sensor EXCLUDE_FROM_ALL)
143*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_snapshot EXCLUDE_FROM_ALL)
144*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_span EXCLUDE_FROM_ALL)
145*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_spi EXCLUDE_FROM_ALL)
146*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_status EXCLUDE_FROM_ALL)
147*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_stream EXCLUDE_FROM_ALL)
148*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_string EXCLUDE_FROM_ALL)
149*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_sync EXCLUDE_FROM_ALL)
150*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_sync_baremetal EXCLUDE_FROM_ALL)
151*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_sync_freertos EXCLUDE_FROM_ALL)
152*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_sync_stl EXCLUDE_FROM_ALL)
153*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_sync_zephyr EXCLUDE_FROM_ALL)
154*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_sys_io EXCLUDE_FROM_ALL)
155*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_sys_io_stdio EXCLUDE_FROM_ALL)
156*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_sys_io_zephyr EXCLUDE_FROM_ALL)
157*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_system EXCLUDE_FROM_ALL)
158*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_tls_client EXCLUDE_FROM_ALL)
159*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_thread EXCLUDE_FROM_ALL)
160*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_thread_freertos EXCLUDE_FROM_ALL)
161*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_thread_stl EXCLUDE_FROM_ALL)
162*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_thread_zephyr EXCLUDE_FROM_ALL)
163*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_tokenizer EXCLUDE_FROM_ALL)
164*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_toolchain EXCLUDE_FROM_ALL)
165*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_trace EXCLUDE_FROM_ALL)
166*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_trace_tokenized EXCLUDE_FROM_ALL)
167*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_transfer EXCLUDE_FROM_ALL)
168*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_uart EXCLUDE_FROM_ALL)
169*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_unit_test EXCLUDE_FROM_ALL)
170*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_varint EXCLUDE_FROM_ALL)
171*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(pw_work_queue EXCLUDE_FROM_ALL)
172*61c4878aSAndroid Build Coastguard Worker
173*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(third_party/nanopb EXCLUDE_FROM_ALL)
174*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(third_party/emboss EXCLUDE_FROM_ALL)
175*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(third_party/freertos EXCLUDE_FROM_ALL)
176*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(third_party/fuchsia EXCLUDE_FROM_ALL)
177*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(third_party/fuzztest EXCLUDE_FROM_ALL)
178*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(third_party/googletest EXCLUDE_FROM_ALL)
179*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(third_party/boringssl EXCLUDE_FROM_ALL)
180*61c4878aSAndroid Build Coastguard Worker
181*61c4878aSAndroid Build Coastguard Workeradd_custom_target(pw_apps)
182*61c4878aSAndroid Build Coastguard Worker
183*61c4878aSAndroid Build Coastguard Worker# pw_system example apps
184*61c4878aSAndroid Build Coastguard Workeradd_subdirectory(targets/host_device_simulator EXCLUDE_FROM_ALL)
185*61c4878aSAndroid Build Coastguard Workeradd_dependencies(pw_apps pw_system.system_example)
186*61c4878aSAndroid Build Coastguard Workeradd_dependencies(pw_apps pw_system.system_async_host_example)
187*61c4878aSAndroid Build Coastguard Worker
188*61c4878aSAndroid Build Coastguard Workerif(CONFIG_ZEPHYR_PIGWEED_MODULE)
189*61c4878aSAndroid Build Coastguard Worker  add_subdirectory(zephyr)
190*61c4878aSAndroid Build Coastguard Worker  if(CONFIG_PIGWEED_MINIMAL_CPP_STDLIB)
191*61c4878aSAndroid Build Coastguard Worker    # Add include path to pw_minimal_cpp_stdlib to compiler
192*61c4878aSAndroid Build Coastguard Worker    zephyr_compile_options(-isystem ${ZEPHYR_PIGWEED_MODULE_DIR}/pw_minimal_cpp_stdlib/public)
193*61c4878aSAndroid Build Coastguard Worker  endif()
194*61c4878aSAndroid Build Coastguard Workerelse()
195*61c4878aSAndroid Build Coastguard Worker  add_subdirectory(targets/host EXCLUDE_FROM_ALL)
196*61c4878aSAndroid Build Coastguard Worker
197*61c4878aSAndroid Build Coastguard Worker  add_dependencies(pw_apps pw_hdlc.rpc_example)
198*61c4878aSAndroid Build Coastguard Workerendif()
199