When compiling existing libraries that are difficult to change, these headers simplify the library's integration. This specifically was the agreed upon fix for trying to compile Android's CHRE as a subsystem. Making changes to the Android repo to use the C style includes would be very difficult and would likely take a very long time. Signed-off-by: Yuval Peress <peress@chromium.org>
24 lines
392 B
CMake
24 lines
392 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
zephyr_sources(
|
|
cpp_init_array.c
|
|
cpp_ctors.c
|
|
cpp_dtors.c
|
|
)
|
|
|
|
if (NOT CONFIG_LIB_CPLUSPLUS)
|
|
zephyr_system_include_directories(
|
|
include
|
|
)
|
|
endif()
|
|
|
|
if (NOT CONFIG_LIB_CPLUSPLUS AND
|
|
(NOT CONFIG_MINIMAL_LIBC OR
|
|
(CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE GREATER 0)))
|
|
zephyr_sources(
|
|
cpp_virtual.c
|
|
cpp_vtable.cpp
|
|
cpp_new.cpp
|
|
)
|
|
endif()
|