Commit 8ba08026 authored by Ghislain MARY's avatar Ghislain MARY

Prevent building useless stuffs in v4l.

parent 0a9a7741
......@@ -27,13 +27,15 @@ set(EP_v4l_MAY_BE_FOUND_ON_SYSTEM TRUE)
set(EP_v4l_IGNORE_WARNINGS TRUE)
set(EP_v4l_EXTERNAL_SOURCE_PATHS "externals/v4l-utils")
set(EP_v4l_BUILD_METHOD "autoreconf")
set(EP_v4l_BUILD_METHOD "autotools")
set(EP_v4l_USE_AUTORECONF TRUE)
set(EP_v4l_CROSS_COMPILATION_OPTIONS
"--prefix=${CMAKE_INSTALL_PREFIX}"
"--host=${LINPHONE_BUILDER_HOST}"
)
set(EP_v4l_CONFIGURE_OPTIONS
"--disable-v4l-utils"
"--disable-qv4l2"
"--disable-libdvbv5"
"--with-udevdir=${CMAKE_INSTALL_PREFIX}/etc"
"--without-jpeg"
......
......@@ -436,6 +436,8 @@ macro(linphone_builder_create_autogen_command PROJNAME)
endforeach()
endif()
set(ep_autogen_command "\"${ep_source}/autogen.sh\" ${ep_autogen_options}")
elseif(EP_${PROJNAME}_USE_AUTORECONF)
set(ep_autogen_command "autoreconf -vfi ${ep_source}")
else()
set(ep_autogen_command "")
endif()
......@@ -550,12 +552,8 @@ macro(linphone_builder_add_external_project PROJNAME)
BUILD_COMMAND ${CMAKE_CURRENT_BINARY_DIR}/EP_${PROJNAME}_build.${SCRIPT_EXTENSION}
INSTALL_COMMAND ${CMAKE_CURRENT_BINARY_DIR}/EP_${PROJNAME}_install.${SCRIPT_EXTENSION}
)
elseif(EP_${PROJNAME}_BUILD_METHOD STREQUAL "autotools" OR EP_${PROJNAME}_BUILD_METHOD STREQUAL "autoreconf")
if(EP_${PROJNAME}_BUILD_METHOD STREQUAL "autotools")
linphone_builder_create_autogen_command(${PROJNAME})
else()
set(ep_autogen_command "autoreconf -vfi ${ep_source}")
endif()
elseif(EP_${PROJNAME}_BUILD_METHOD STREQUAL "autotools")
linphone_builder_create_autogen_command(${PROJNAME})
linphone_builder_create_configure_command(${PROJNAME})
linphone_builder_create_build_command(${PROJNAME})
if(EP_${PROJNAME}_CONFIG_H_FILE)
......
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