diff --git a/CMakeLists.txt b/CMakeLists.txt index bc8718c0d..5dea97796 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,8 @@ cmake_minimum_required(VERSION 2.6) project(LINPHONE C) +option(LINPHONE_ENABLE_VIDEO "Build linphone with video support." ON) + if(NOT ORTP_ROOT_DIR) set(ORTP_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/oRTP) endif() diff --git a/coreapi/CMakeLists.txt b/coreapi/CMakeLists.txt index ab83c3ce7..628695414 100644 --- a/coreapi/CMakeLists.txt +++ b/coreapi/CMakeLists.txt @@ -98,6 +98,10 @@ add_definitions( -DLINPHONE_PLUGINS_DIR="" ) +if(LINPHONE_ENABLE_VIDEO) + add_definitions(-DVIDEO_ENABLED) +endif(LINPHONE_ENABLE_VIDEO) + if(WIN32) add_definitions( -DWINDOW_NATIVE