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