mirror of https://github.com/thesofproject/sof.git
cmake: Link TGL Google hotword library
libc and libm are provided by the xcc toolchain. They are not available from the gcc toolchain. To build with gcc, libc and libm should be provided under third_party_libraries. Signed-off-by: Ben Zhang <benzh@chromium.org>
This commit is contained in:
parent
2b0ac19ed7
commit
91467d0924
|
@ -184,6 +184,9 @@ install(
|
|||
add_library(sof_ld_flags INTERFACE)
|
||||
add_library(sof_ld_scripts INTERFACE)
|
||||
|
||||
target_include_directories(sof_public_headers INTERFACE ${PROJECT_SOURCE_DIR}/third_party_include)
|
||||
link_directories(${PROJECT_SOURCE_DIR}/third_party_libraries)
|
||||
|
||||
# declare target with no sources to let cmake know about it
|
||||
add_executable(sof "")
|
||||
target_link_libraries(sof PRIVATE sof_options)
|
||||
|
|
|
@ -66,6 +66,9 @@ if(NOT CONFIG_LIBRARY)
|
|||
add_local_sources(sof
|
||||
google_hotword_detect.c
|
||||
)
|
||||
target_link_libraries(sof PRIVATE libhifi3_google_hotword_dsp_api.a)
|
||||
target_link_libraries(sof PRIVATE c)
|
||||
target_link_libraries(sof PRIVATE m)
|
||||
endif()
|
||||
if(CONFIG_COMP_SEL)
|
||||
add_subdirectory(selector)
|
||||
|
|
Loading…
Reference in New Issue