1# SPDX-License-Identifier: Apache-2.0 2 3zephyr_library() 4 5zephyr_library_compile_definitions(NO_POSIX_CHEATS) 6 7zephyr_library_sources( 8 cmdline.c 9 cpu_wait.c 10 nsi_if.c 11 irq_handler.c 12 misc.c 13 posix_arch_if.c 14 ) 15 16zephyr_include_directories( 17 ${NSI_DIR}/common/src/include 18 ${NSI_DIR}/native/src/include 19) 20 21zephyr_library_include_directories( 22 ${ZEPHYR_BASE}/kernel/include 23 ${ZEPHYR_BASE}/arch/posix/include 24) 25 26if(CONFIG_HAS_SDL) 27 add_subdirectory(${ZEPHYR_BASE}/boards/native/common/sdl/ ${CMAKE_CURRENT_BINARY_DIR}/sdl) 28endif() 29 30add_subdirectory(${ZEPHYR_BASE}/boards/native/common/extra_args/ 31 ${CMAKE_CURRENT_BINARY_DIR}/extra_args 32) 33 34set(nsi_config_content 35 ${nsi_config_content} 36 "NSI_NATIVE=1" 37) 38 39include(../common/natsim_config.cmake) 40