Commit 18335381 authored by Ghislain MARY's avatar Ghislain MARY

Add lcb_blacklist_dependencies macro.

parent 8e2105b8
......@@ -1086,7 +1086,16 @@ endmacro()
macro(lcb_builder_dependencies BUILDER)
set(_args "${ARGN}")
foreach(_dependency IN LISTS _args)
list(APPEND EP_${BUILDER}_DEPENDENCIES "EP_${_dependency}")
set(_add_dependency 1)
if(LINPHONE_BUILDER_BLACKLISTED_DEPENDENCIES)
list(FIND LINPHONE_BUILDER_BLACKLISTED_DEPENDENCIES "${_dependency}" _found)
if(_found GREATER -1)
set(_add_dependency 0)
endif()
endif()
if(_add_dependency)
list(APPEND EP_${BUILDER}_DEPENDENCIES "EP_${_dependency}")
endif()
endforeach()
endmacro()
......@@ -1316,3 +1325,10 @@ endmacro()
macro(lcb_use_c_compiler_for_assembler BOOL_VALUE)
lcb_builder_use_c_compiler_for_assembler("${LINPHONE_BUILDER_CURRENT_BUILDER}" ${BOOL_VALUE})
endmacro()
macro(lcb_blacklist_dependencies)
set(_args "${ARGN}")
foreach(_dependency IN LISTS _args)
list(APPEND LINPHONE_BUILDER_BLACKLISTED_DEPENDENCIES "${_dependency}")
endforeach()
endmacro()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment