From 40aa428a3dff2c8d731d27d0867ff96e95dec938 Mon Sep 17 00:00:00 2001 From: Frederic Marec Date: Wed, 22 May 2019 15:20:47 +0200 Subject: 4a-softmixer: remove AVIRT dependencies Remove AVIRT dependencies when you build on host Bug-AGL: SPEC-2443 Change-Id: I4bf8f39e843d552337fafcdbebe4c82a2290b24e Signed-off-by: Frederic Marec --- conf.d/cmake/00-default-osconfig.cmake | 2 +- conf.d/cmake/config.cmake | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'conf.d') diff --git a/conf.d/cmake/00-default-osconfig.cmake b/conf.d/cmake/00-default-osconfig.cmake index c089c52..de39a53 100644 --- a/conf.d/cmake/00-default-osconfig.cmake +++ b/conf.d/cmake/00-default-osconfig.cmake @@ -1 +1 @@ -list(APPEND PKG_REQUIRED_LIST alsa>=1.1.6) +list(APPEND PKG_REQUIRED_LIST alsa>=1.1.6) \ No newline at end of file diff --git a/conf.d/cmake/config.cmake b/conf.d/cmake/config.cmake index 2da7bb8..af29b97 100644 --- a/conf.d/cmake/config.cmake +++ b/conf.d/cmake/config.cmake @@ -87,7 +87,10 @@ set (PKG_REQUIRED_LIST # Customize link option # ----------------------------- #list(APPEND link_libraries -an-option) -list(APPEND link_libraries afb-helpers avirt) +list(APPEND link_libraries afb-helpers) +if(HAVE_AVIRT) + list(APPEND link_libraries avirt) +endif() # Compilation options definition # Use CMake generator expressions to specify only for a specific language -- cgit 1.2.3-korg