-
Notifications
You must be signed in to change notification settings - Fork 350
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
158 lines (127 loc) · 4.34 KB
/
CMakeLists.txt
File metadata and controls
158 lines (127 loc) · 4.34 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# SPDX-License-Identifier: BSD-3-Clause
if(CONFIG_IPC_MAJOR_3)
add_local_sources(sof module_adapter.c module_adapter_ipc3.c module/generic.c)
elseif(CONFIG_IPC_MAJOR_4)
add_local_sources(sof module_adapter.c module_adapter_ipc4.c module/generic.c)
endif()
is_zephyr(zephyr)
if(zephyr) ### Zephyr ###
# modules and codecs in alphabetical order
zephyr_library_sources_ifdef(CONFIG_CADENCE_CODEC module/cadence.c)
if (CONFIG_CADENCE_CODEC_AAC_DEC)
zephyr_library_import(xa_aac_dec ${CONFIG_CADENCE_CODEC_AAC_DEC_LIB})
endif()
if (CONFIG_CADENCE_CODEC_MP3_DEC)
zephyr_library_import(xa_mp3_dec ${CONFIG_CADENCE_CODEC_MP3_DEC_LIB})
endif()
if (CONFIG_CADENCE_CODEC_MP3_ENC)
zephyr_library_import(xa_mp3_enc ${CONFIG_CADENCE_CODEC_MP3_ENC_LIB})
endif()
if (CONFIG_COMP_DOLBY_DAX_AUDIO_PROCESSING)
zephyr_library_sources(
module/dolby/dax.c
)
if (CONFIG_COMP_DOLBY_DAX_AUDIO_PROCESSING_MOCK)
zephyr_library_sources(
module/dolby/dax_mock.c
)
else()
target_link_libraries(SOF INTERFACE m)
target_link_libraries(SOF INTERFACE c)
zephyr_library_import(dax_effect ${sof_top_dir}/third_party/lib/libdax.a)
endif()
endif()
zephyr_include_directories_ifdef(CONFIG_LIBRARY_MANAGER
${SOF_SRC_PATH}/include/sof/audio/module_adapter/iadk/
${SOF_SRC_PATH}/include/sof/audio/module_adapter/library/
)
zephyr_library_sources_ifdef(CONFIG_LIBRARY_MANAGER
library/native_system_agent.c
)
zephyr_library_sources_ifdef(CONFIG_INTEL_MODULES
module/modules.c
iadk/module_initial_settings_concrete.cpp
iadk/iadk_module_adapter.cpp
iadk/system_agent.cpp
library/native_system_service.c
)
zephyr_library_sources_ifdef(CONFIG_SOF_USERSPACE_PROXY
library/userspace_proxy.c
)
zephyr_library_sources_ifdef(CONFIG_PASSTHROUGH_CODEC
module/passthrough.c
)
if(CONFIG_WAVES_CODEC)
set(WAVES_DIR module/waves)
if(CONFIG_WAVES_CODEC STREQUAL "m" AND DEFINED CONFIG_LLEXT)
add_subdirectory(${WAVES_DIR}/llext ${PROJECT_BINARY_DIR}/waves_llext)
add_dependencies(app waves)
else()
zephyr_library_sources(${WAVES_DIR}/waves.c)
if(CONFIG_WAVES_CODEC_STUB)
zephyr_library_sources_ifdef(CONFIG_WAVES_CODEC_STUB
${WAVES_DIR}/maxx_stub.c)
else()
zephyr_library_import(waves_codec
${sof_top_dir}/third_party/lib/libMaxxChrome.a)
endif()
endif()
endif()
return()
endif()
if(NOT CONFIG_COMP_MODULE_SHARED_LIBRARY_BUILD)
if(CONFIG_CADENCE_CODEC)
add_local_sources(sof module/cadence.c)
if(CONFIG_CADENCE_CODEC_WRAPPER)
sof_add_static_library(codec_wrapper_lib ${CONFIG_CADENCE_CODEC_WRAPPER_LIB})
endif()
if(CONFIG_CADENCE_CODEC_AAC_DEC)
sof_add_static_library(xa_aac_dec ${CONFIG_CADENCE_CODEC_AAC_DEC_LIB})
endif()
if(CONFIG_CADENCE_CODEC_BSAC_DEC)
sof_add_static_library(xa_bsac_dec ${CONFIG_CADENCE_CODEC_BSAC_DEC_LIB})
endif()
if(CONFIG_CADENCE_CODEC_DAB_DEC)
sof_add_static_library(xa_dab_dec ${CONFIG_CADENCE_CODEC_DAB_DEC_LIB})
endif()
if(CONFIG_CADENCE_CODEC_DRM_DEC)
sof_add_static_library(xa_drm_dec ${CONFIG_CADENCE_CODEC_DRM_DEC_LIB})
endif()
if(CONFIG_CADENCE_CODEC_MP3_DEC)
sof_add_static_library(xa_mp3_dec ${CONFIG_CADENCE_CODEC_MP3_DEC_LIB})
endif()
if(CONFIG_CADENCE_CODEC_MP3_ENC)
sof_add_static_library(xa_mp3_enc ${CONFIG_CADENCE_CODEC_MP3_ENC_LIB})
endif()
if(CONFIG_CADENCE_CODEC_SBC_DEC)
sof_add_static_library(xa_sbc_dec ${CONFIG_CADENCE_CODEC_SBC_DEC_LIB})
endif()
if(CONFIG_CADENCE_CODEC_VORBIS_DEC)
sof_add_static_library(xa_vorbis_dec ${CONFIG_CADENCE_CODEC_VORBIS_DEC_LIB})
endif()
if(CONFIG_CADENCE_CODEC_SRC_PP)
sof_add_static_library(xa_src_pp ${CONFIG_CADENCE_CODEC_SRC_PP_LIB})
endif()
endif()
if(CONFIG_COMP_DOLBY_DAX_AUDIO_PROCESSING)
add_local_sources(sof module/dolby/dax.c)
if (CONFIG_COMP_DOLBY_DAX_AUDIO_PROCESSING_MOCK)
add_local_sources(sof module/dolby/dax_mock.c)
else()
sof_add_static_library(dax_effect ${sof_top_dir}/third_party/lib/libdax.a)
endif()
endif()
if(CONFIG_PASSTHROUGH_CODEC)
add_local_sources(sof module/passthrough.c)
endif()
if(CONFIG_WAVES_CODEC)
add_local_sources(sof module/waves/waves.c)
if (CONFIG_WAVES_CODEC_STUB)
add_local_sources(sof module/waves/maxx_stub.c)
else()
sof_add_static_library(MaxxChrome ${CMAKE_CURRENT_LIST_DIR}/lib/release/libMaxxChrome.a)
endif()
# folder with Waves API must be among include directories
endif()
return()
endif()