Commit ce2bfc11 authored by jehan's avatar jehan

check for QTKIT availability before compiling qtcapture.m

parent cca09fd3
......@@ -309,8 +309,17 @@ if(ENABLE_VIDEO)
else()
list(APPEND VOIP_SOURCE_FILES_OBJC
videofilters/msosxdisplay.m
videofilters/qtcapture.m
)
find_path(QTKIT_FOUND HINTS ${CMAKE_OSX_SYSROOT}/System/Library/Frameworks NAMES QTKit/QTKit.h NO_CMAKE_SYSTEM_PATH)
if (QTKIT_FOUND)
list(APPEND VOIP_SOURCE_FILES_OBJC
videofilters/qtcapture.m
)
add_definitions(-DHAVE_QTKIT)
else()
message("QTKIT not found, disabling old fashion capture")
endif()
list(APPEND VOIP_SOURCE_FILES_C
utils/opengles_display.c
utils/opengles_display.h
......
......@@ -198,7 +198,7 @@ extern MSWebCamDesc ms_directx_cam_desc;
extern MSWebCamDesc ms_dshow_cam_desc;
#endif
#if TARGET_OS_MAC && !TARGET_OS_IPHONE
#if HAVE_QTKIT
extern MSWebCamDesc ms_v4m_cam_desc;
#endif
......@@ -236,7 +236,7 @@ static MSWebCamDesc * ms_web_cam_descs[]={
#if defined(__MINGW32__) || defined (HAVE_DIRECTSHOW)
&ms_dshow_cam_desc,
#endif
#if TARGET_OS_MAC && !TARGET_OS_IPHONE
#if HAVE_QTKIT
&ms_v4m_cam_desc,
#endif
#ifdef __QNX__
......
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