1# SPDX-License-Identifier: Apache-2.0 2# Copyright (c) 2017 Oticon A/S 3 4zephyr_library() 5 6zephyr_library_compile_definitions(NO_POSIX_CHEATS) 7zephyr_library_compile_definitions(_POSIX_C_SOURCE=200809L _XOPEN_SOURCE=600 _XOPEN_SOURCE_EXTENDED) 8 9zephyr_library_sources( 10 hw_models_top.c 11 timer_model.c 12 native_rtc.c 13 irq_handler.c 14 irq_ctrl.c 15 main.c 16 tracing.c 17 cmdline_common.c 18 cmdline.c 19 cpu_wait.c 20 hw_counter.c 21 ) 22 23zephyr_library_include_directories( 24 ${ZEPHYR_BASE}/kernel/include 25 ${ZEPHYR_BASE}/arch/posix/include 26 ) 27 28if(CONFIG_HAS_SDL) 29 add_subdirectory(${ZEPHYR_BASE}/boards/native/common/sdl/ ${CMAKE_CURRENT_BINARY_DIR}/sdl) 30endif() 31 32zephyr_ld_options( 33 -lm 34) 35