2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2019-02-12 11:33:19 +08:00
|
|
|
set(BOARD intel_s1000_crb)
|
2019-09-28 07:30:42 +08:00
|
|
|
cmake_minimum_required(VERSION 3.13.1)
|
2020-05-29 12:02:17 +08:00
|
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
2020-06-03 07:51:16 +08:00
|
|
|
project(i2s)
|
2019-02-12 11:33:19 +08:00
|
|
|
|
|
|
|
target_sources(app PRIVATE src/i2s_sample.c)
|
|
|
|
|
|
|
|
if (AUDIO_PLAY_FROM_HOST)
|
|
|
|
add_compile_definitions(AUDIO_PLAY_FROM_HOST)
|
|
|
|
else ()
|
|
|
|
target_link_libraries(app PUBLIC -lm)
|
|
|
|
target_link_libraries(app PUBLIC -lc)
|
|
|
|
target_link_libraries(app PUBLIC -Wl,-u,__extendsfdf2)
|
|
|
|
target_link_libraries(app PUBLIC -Wl,-u,__truncdfsf2)
|
|
|
|
target_link_libraries(app PUBLIC -Wl,-u,__divsf3)
|
|
|
|
target_link_libraries(app PUBLIC -Wl,-u,__divdf3)
|
|
|
|
target_link_libraries(app PUBLIC -Wl,-u,__adddf3)
|
|
|
|
target_link_libraries(app PUBLIC -Wl,-u,__subdf3)
|
|
|
|
target_link_libraries(app PUBLIC -Wl,-u,__ieee754_sqrtf)
|
|
|
|
target_link_libraries(app PUBLIC -Wl,-u,__ieee754_remainderf)
|
|
|
|
target_link_libraries(app PUBLIC -Wl,-u,__nedf2)
|
|
|
|
endif ()
|