From 0d95108c3bcebe516ac328c1c2a5cd8f0ed61b3a Mon Sep 17 00:00:00 2001 From: Ronan Le Martret Date: Wed, 8 Nov 2017 15:57:59 +0100 Subject: Add cmake select flag for HAL. Signed-off-by: Ronan Le Martret --- HDA-intel/CMakeLists.txt | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'HDA-intel') diff --git a/HDA-intel/CMakeLists.txt b/HDA-intel/CMakeLists.txt index 6818235..68314b4 100644 --- a/HDA-intel/CMakeLists.txt +++ b/HDA-intel/CMakeLists.txt @@ -16,24 +16,24 @@ # limitations under the License. ########################################################################### +if(HAL_INTEL_HDA) + # Add target to project dependency list + PROJECT_TARGET_ADD(hal-intel-hda) -# Add target to project dependency list -PROJECT_TARGET_ADD(hal-intel-hda) + # Define project Targets + ADD_LIBRARY(${TARGET_NAME} MODULE IntelHdaHAL.c) - # Define project Targets - ADD_LIBRARY(${TARGET_NAME} MODULE IntelHdaHAL.c) - - # Binder exposes a unique public entry point - SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES - PREFIX "afb-" - LABELS "BINDING" - LINK_FLAGS ${BINDINGS_LINK_FLAG} - OUTPUT_NAME ${TARGET_NAME} - ) - - # Library dependencies (include updates automatically) - TARGET_LINK_LIBRARIES(${TARGET_NAME} - hal-utilities-4a - ${link_libraries} - ) + # Binder exposes a unique public entry point + SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES + PREFIX "afb-" + LABELS "BINDING" + LINK_FLAGS ${BINDINGS_LINK_FLAG} + OUTPUT_NAME ${TARGET_NAME} + ) + # Library dependencies (include updates automatically) + TARGET_LINK_LIBRARIES(${TARGET_NAME} + hal-utilities-4a + ${link_libraries} + ) +endif() -- cgit 1.2.3-korg