1if(CONFIG_LIBLC3) 2zephyr_library_named(liblc3) 3zephyr_library_compile_options( 4 -O3 -std=c11 -ffast-math -Wno-array-bounds -Wall -Wextra -Wdouble-promotion -Wvla -pedantic 5) 6 7# LC3plus and LC3plusHR support is enabled by default in liblc3. 8# In our case, we prefer those to be explicitly enabled by the user if needed. 9if(CONFIG_LIBLC3_PLUS) 10zephyr_library_compile_options(-DLC3_PLUS=1) 11else() 12zephyr_library_compile_options(-DLC3_PLUS=0) 13endif() 14 15if(CONFIG_LIBLC3_PLUS_HR) 16zephyr_library_compile_options(-DLC3_PLUS_HR=1) 17else() 18zephyr_library_compile_options(-DLC3_PLUS_HR=0) 19endif() 20 21zephyr_include_directories( 22 ${ZEPHYR_LIBLC3_MODULE_DIR}/include 23 ${ZEPHYR_LIBLC3_MODULE_DIR}/src 24) 25 26zephyr_library_sources( 27 ${ZEPHYR_LIBLC3_MODULE_DIR}/src/attdet.c 28 ${ZEPHYR_LIBLC3_MODULE_DIR}/src/bits.c 29 ${ZEPHYR_LIBLC3_MODULE_DIR}/src/bwdet.c 30 ${ZEPHYR_LIBLC3_MODULE_DIR}/src/energy.c 31 ${ZEPHYR_LIBLC3_MODULE_DIR}/src/lc3.c 32 ${ZEPHYR_LIBLC3_MODULE_DIR}/src/ltpf.c 33 ${ZEPHYR_LIBLC3_MODULE_DIR}/src/mdct.c 34 ${ZEPHYR_LIBLC3_MODULE_DIR}/src/plc.c 35 ${ZEPHYR_LIBLC3_MODULE_DIR}/src/sns.c 36 ${ZEPHYR_LIBLC3_MODULE_DIR}/src/spec.c 37 ${ZEPHYR_LIBLC3_MODULE_DIR}/src/tables.c 38 ${ZEPHYR_LIBLC3_MODULE_DIR}/src/tns.c 39) 40endif() 41