Commit d646988d authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Use a real CMake option to enable V4L support.

parent ac8f655f
......@@ -106,7 +106,7 @@ else()
if(ENABLE_VPX)
linphone_builder_add_builder_to_target(TARGET_ms2 vpx)
endif()
if("${BUILD_V4L}" STREQUAL "yes")
if(ENABLE_V4L)
linphone_builder_add_builder_to_target(TARGET_ms2 v4l)
endif()
if(ENABLE_SRTP)
......
......@@ -79,7 +79,7 @@ if(ENABLE_UNIT_TESTS)
else()
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_UNIT_TESTS=NO")
endif()
if("${BUILD_V4L}" STREQUAL "yes")
if(ENABLE_V4L)
list(APPEND EP_ms2_DEPENDENCIES EP_v4l)
endif()
if(MSVC)
......
......@@ -80,6 +80,8 @@ cmake_dependent_option(ENABLE_X264 "Enable H.264 video encoder support with the
linphone_builder_add_feature_info("x264" ENABLE_X264 "H.264 video encoding support with the x264 library.")
cmake_dependent_option(ENABLE_OPENH264 "Enable H.264 video encoder support with the openh264 library." ${DEFAULT_VALUE_ENABLE_OPENH264} "ENABLE_VIDEO; NOT ENABLE_X264" OFF)
linphone_builder_add_feature_info("openh264" ENABLE_OPENH264 "H.264 video encoding support with the openh264 library.")
cmake_dependent_option(ENABLE_V4L "Enable V4L camera driver." ON "ENABLE_VIDEO; UNIX; NOT APPLE" OFF)
linphone_builder_add_feature_info("v4l" ENABLE_V4L "V4L camera driver.")
option(ENABLE_TUNNEL "Enable tunnel support." ${DEFAULT_VALUE_ENABLE_TUNNEL})
linphone_builder_add_feature_info("Tunnel" ENABLE_TUNNEL "Secure tunnel for SIP/RTP.")
......
......@@ -66,9 +66,6 @@ if (UNIX)
set(LINPHONE_BUILDER_OBJCFLAGS "-mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET} -arch ${CMAKE_OSX_ARCHITECTURES}")
set(LINPHONE_BUILDER_LDFLAGS "-mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET} -arch ${CMAKE_OSX_ARCHITECTURES}")
else()
if(ENABLE_VIDEO)
set(BUILD_V4L "yes")
endif()
set(LINPHONE_BUILDER_LDFLAGS "-Wl,-Bsymbolic -fPIC")
endif()
endif()
......
......@@ -62,9 +62,6 @@ if (UNIX)
set(LINPHONE_BUILDER_OBJCFLAGS "-mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET} -arch ${CMAKE_OSX_ARCHITECTURES}")
set(LINPHONE_BUILDER_LDFLAGS "-mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET} -arch ${CMAKE_OSX_ARCHITECTURES}")
else()
if(ENABLE_VIDEO)
set(BUILD_V4L "yes")
endif()
set(LINPHONE_BUILDER_LDFLAGS "-Wl,-Bsymbolic")
endif()
endif()
......
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