From 932837c3654eb73cbd0bb18b0d0f4321341a7ee8 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Tue, 14 Jan 2014 09:07:43 +0100 Subject: [PATCH] Add option to enable video when compiling using cmake. --- CMakeLists.txt | 2 ++ coreapi/CMakeLists.txt | 4 ++++ 2 files changed, 6 insertions(+) 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