1# SPDX-License-Identifier: BSD-3-Clause
2
3
4if(NOT CONFIG_LIBRARY)
5	if(CONFIG_COMP_GOOGLE_HOTWORD_DETECT)
6		add_local_sources(sof
7			google_hotword_detect.c
8		)
9		target_link_libraries(sof PRIVATE libhifi3_google_hotword_dsp_api.a)
10		target_link_libraries(sof PRIVATE c)
11		target_link_libraries(sof PRIVATE m)
12	endif()
13
14	if(CONFIG_COMP_GOOGLE_RTC_AUDIO_PROCESSING)
15	  target_include_directories(sof PRIVATE ${CMAKE_SOURCE_DIR}/third_party/include)
16	  add_local_sources(sof
17		google_rtc_audio_processing.c
18		)
19	  if(CONFIG_GOOGLE_RTC_AUDIO_PROCESSING_MOCK)
20		add_local_sources(sof
21		  google_rtc_audio_processing_mock.c
22		  )
23	  else()
24		message(INFO "Link with google_rtc_audio_processing")
25		target_link_directories(sof PRIVATE ${CMAKE_SOURCE_DIR}/third_party/lib)
26		target_link_libraries(sof PRIVATE google_rtc_audio_processing)
27		target_link_libraries(sof PRIVATE c++)
28		target_link_libraries(sof PRIVATE c++abi)
29		target_link_libraries(sof PRIVATE m)
30		target_link_libraries(sof PRIVATE c)
31	  endif()
32	endif()
33	return()
34endif()
35
36