Skip to content

Commit abd969b

Browse files
committed
audio: dax: fix compilation errors on XTOS
sof_top_dir is unavailable for non-zephyr build. Signed-off-by: Jun Lai <jun.lai@dolby.com>
1 parent 84f4d5a commit abd969b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/audio/module_adapter/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,15 @@ if(NOT CONFIG_COMP_MODULE_SHARED_LIBRARY_BUILD)
139139
endif()
140140

141141
if(CONFIG_COMP_DOLBY_DAX_AUDIO_PROCESSING)
142+
target_include_directories(sof PRIVATE ${PROJECT_SOURCE_DIR}/third_party/include)
142143
add_local_sources(sof module/dolby/dax.c)
143144
if (CONFIG_COMP_DOLBY_DAX_AUDIO_PROCESSING_MOCK)
144145
add_local_sources(sof module/dolby/dax_mock.c)
145146
else()
146-
sof_add_static_library(dax_effect ${sof_top_dir}/third_party/lib/libdax.a)
147+
target_link_libraries(sof PRIVATE m)
148+
target_link_libraries(sof PRIVATE c)
149+
sof_add_static_library(dax_effect
150+
${PROJECT_SOURCE_DIR}/third_party/lib/libdax.a)
147151
endif()
148152
endif()
149153

0 commit comments

Comments
 (0)