LinphoneBuilderOptions.cmake 4.1 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
############################################################################
# LinphoneBuilderOptions.cmake
# Copyright (C) 2014  Belledonne Communications, Grenoble France
#
############################################################################
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
#
############################################################################

# Define the build options
Ghislain MARY's avatar
Ghislain MARY committed
24

25
include(CMakeDependentOption)
Ghislain MARY's avatar
Ghislain MARY committed
26
include(FeatureSummary)
27 28

option(ENABLE_VIDEO "Enable video support." ${DEFAULT_VALUE_ENABLE_VIDEO})
Ghislain MARY's avatar
Ghislain MARY committed
29 30 31
add_feature_info("Video" ENABLE_VIDEO "Ability to capture and display video.")
option(ENABLE_GPL_THIRD_PARTIES "Enable GPL third-parties (FFmpeg and ZRTP)." ${DEFAULT_VALUE_ENABLE_GPL_THIRD_PARTIES})
add_feature_info("GPL third parties" ENABLE_GPL_THIRD_PARTIES "Usage of GPL third-party code (FFmpeg and ZRTP).")
32 33

option(ENABLE_SRTP "Enable SRTP support." ${DEFAULT_VALUE_ENABLE_SRTP})
Ghislain MARY's avatar
Ghislain MARY committed
34 35 36
add_feature_info("SRTP" ENABLE_SRTP "SRTP media encryption support.")
cmake_dependent_option(ENABLE_ZRTP "Enable ZRTP support." ${DEFAULT_VALUE_ENABLE_ZRTP} "ENABLE_GPL_THIRD_PARTIES" OFF)
add_feature_info("ZRTP" ENABLE_ZRTP "ZRTP media encryption support.")
37 38

option(ENABLE_AMR "Enable AMR audio codec support." ${DEFAULT_VALUE_ENABLE_AMR})
Ghislain MARY's avatar
Ghislain MARY committed
39
add_feature_info("AMR" ENABLE_AMR "AMR audio encoding/decoding support.")
40
option(ENABLE_G729 "Enable G.729 audio codec support." ${DEFAULT_VALUE_ENABLE_G729})
Ghislain MARY's avatar
Ghislain MARY committed
41
add_feature_info("G.729" ENABLE_G729 "G.729 audio encoding/decoding support.")
42
option(ENABLE_GSM "Enable GSM audio codec support." ${DEFAULT_VALUE_ENABLE_GSM})
Ghislain MARY's avatar
Ghislain MARY committed
43
add_feature_info("GSM" ENABLE_GSM "GSM audio encoding/decoding support.")
44
option(ENABLE_ILBC "Enable iLBC audio codec support." ${DEFAULT_VALUE_ENABLE_ILBC})
Ghislain MARY's avatar
Ghislain MARY committed
45
add_feature_info("iLBC" ENABLE_ILBC "iLBC audio encoding/decoding support.")
46
option(ENABLE_ISAC "Enable ISAC audio codec support." ${DEFAULT_VALUE_ENABLE_ISAC})
Ghislain MARY's avatar
Ghislain MARY committed
47
add_feature_info("ISAC" ENABLE_ISAC "ISAC audio encoding/decoding support.")
48
option(ENABLE_OPUS "Enable OPUS audio codec support." ${DEFAULT_VALUE_ENABLE_OPUS})
Ghislain MARY's avatar
Ghislain MARY committed
49
add_feature_info("OPUS" ENABLE_OPUS "OPUS audio encoding/decoding support.")
50
option(ENABLE_SILK "Enable SILK audio codec support." ${DEFAULT_VALUE_ENABLE_SILK})
Ghislain MARY's avatar
Ghislain MARY committed
51
add_feature_info("Silk" ENABLE_SILK "Silk audio encoding/decoding support.")
52
option(ENABLE_SPEEX "Enable speex audio codec support." ${DEFAULT_VALUE_ENABLE_SPEEX})
Ghislain MARY's avatar
Ghislain MARY committed
53
add_feature_info("Speex" ENABLE_SPEEX "Speex audio encoding/decoding support.")
54

Ghislain MARY's avatar
Ghislain MARY committed
55 56
cmake_dependent_option(ENABLE_FFMPEG "Enable ffmpeg support." ${DEFAULT_VALUE_ENABLE_FFMPEG} "ENABLE_VIDEO;ENABLE_GPL_THIRD_PARTIES" OFF)
add_feature_info("FFmpeg" ENABLE_FFMPEG "Some video processing features via FFmpeg: MPEG4 encoding/decoding, video scaling...")
57
cmake_dependent_option(ENABLE_VPX "Enable VPX video codec support." ${DEFAULT_VALUE_ENABLE_VPX} "ENABLE_VIDEO" OFF)
Ghislain MARY's avatar
Ghislain MARY committed
58 59 60
add_feature_info("VPX" ENABLE_VPX "VPX video encoding/decoding support.")
cmake_dependent_option(ENABLE_X264 "Enable H.264 video encoder support with the x264 library." ${DEFAULT_VALUE_ENABLE_X264} "ENABLE_VIDEO" OFF)
add_feature_info("x264" ENABLE_X264 "H.264 video encoding support with the x264 library.")
61 62

option(ENABLE_TUNNEL "Enable tunnel support." ${DEFAULT_VALUE_ENABLE_TUNNEL})
Ghislain MARY's avatar
Ghislain MARY committed
63
add_feature_info("Tunnel" ENABLE_TUNNEL "Secure tunnel for SIP/RTP .")
64
option(ENABLE_UNIT_TESTS "Enable unit tests support with CUnit library." ${DEFAULT_VALUE_ENABLE_UNIT_TESTS})
Ghislain MARY's avatar
Ghislain MARY committed
65
add_feature_info("Unit tests" ENABLE_UNIT_TESTS "Build unit tests programs for belle-sip, mediastreamer2 and linphone.")