2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2021-04-26 21:15:49 +08:00
|
|
|
zephyr_sources(cpp_init.c)
|
|
|
|
|
|
|
|
zephyr_sources_ifdef(CONFIG_CPP_STATIC_INIT_GNU
|
2017-10-27 21:43:34 +08:00
|
|
|
cpp_init_array.c
|
|
|
|
cpp_ctors.c
|
|
|
|
cpp_dtors.c
|
2019-08-18 08:13:32 +08:00
|
|
|
)
|
|
|
|
|
2021-06-29 13:19:30 +08:00
|
|
|
if (NOT CONFIG_LIB_CPLUSPLUS)
|
|
|
|
zephyr_system_include_directories(
|
|
|
|
include
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2019-11-14 07:23:33 +08:00
|
|
|
if (NOT CONFIG_LIB_CPLUSPLUS AND
|
|
|
|
(NOT CONFIG_MINIMAL_LIBC OR
|
|
|
|
(CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE GREATER 0)))
|
2019-08-18 08:13:32 +08:00
|
|
|
zephyr_sources(
|
|
|
|
cpp_virtual.c
|
|
|
|
cpp_vtable.cpp
|
2018-10-24 00:20:51 +08:00
|
|
|
cpp_new.cpp
|
2017-10-27 21:43:34 +08:00
|
|
|
)
|
2019-08-18 08:13:32 +08:00
|
|
|
endif()
|