Commit 74c2e78e authored by Ghislain MARY's avatar Ghislain MARY

Add a macro to add cmake options to a builder removing conflicting options...

Add a macro to add cmake options to a builder removing conflicting options that were previously added.
parent 49c918f2
......@@ -885,3 +885,17 @@ macro(linphone_builder_add_dummy_libraries_generation)
)
endif()
endmacro()
macro(linphone_builder_add_cmake_option BUILDER_NAME OPTION)
string(REGEX MATCH "^-D(.+)=(.*)$" _match "${OPTION}")
if(_match)
set(_varname ${CMAKE_MATCH_1})
foreach(_option ${EP_${BUILDER_NAME}_CMAKE_OPTIONS})
string(REGEX MATCH "^-D${_varname}=(.*)$" _match2 "${_option}")
if(_match2)
list(REMOVE_ITEM EP_${BUILDER_NAME}_CMAKE_OPTIONS ${_option})
endif()
endforeach()
endif()
list(APPEND EP_${BUILDER_NAME}_CMAKE_OPTIONS ${OPTION})
endmacro()
......@@ -64,13 +64,13 @@ include(builders/CMakeLists.txt)
# bctoolbox
set(EP_bctoolbox_LINKING_TYPE "-DENABLE_STATIC=NO" "-DENABLE_SHARED=YES")
list(APPEND EP_bctoolbox_CMAKE_OPTIONS "-DENABLE_TESTS=NO")
linphone_builder_add_cmake_option(bctoolbox "-DENABLE_TESTS=NO")
# belle-sip
list(APPEND EP_bellesip_CMAKE_OPTIONS "-DENABLE_TESTS=NO")
linphone_builder_add_cmake_option(bellesip "-DENABLE_TESTS=NO")
# bzrtp
list(APPEND EP_bzrtp_CMAKE_OPTIONS "-DENABLE_TESTS=NO")
linphone_builder_add_cmake_option(bzrtp "-DENABLE_TESTS=NO")
# codec2
set(EP_codec2_EXTRA_CFLAGS "${EP_codec2_EXTRA_CFLAGS} -ffast-math")
......@@ -79,52 +79,50 @@ set(EP_codec2_EXTRA_CFLAGS "${EP_codec2_EXTRA_CFLAGS} -ffast-math")
set(EP_ffmpeg_LINKING_TYPE "--enable-static" "--disable-shared" "--enable-pic")
# linphone
list(APPEND EP_linphone_CMAKE_OPTIONS
"-DENABLE_RELATIVE_PREFIX=YES"
"-DENABLE_CONSOLE_UI=NO"
"-DENABLE_GTK_UI=NO"
"-DENABLE_NOTIFY=NO"
"-DENABLE_TOOLS=NO"
"-DENABLE_TUTORIALS=NO"
"-DENABLE_UPNP=NO"
"-DENABLE_MSG_STORAGE=YES"
"-DENABLE_DOC=NO"
"-DENABLE_UNIT_TESTS=YES"
)
linphone_builder_add_cmake_option(linphone "-DENABLE_RELATIVE_PREFIX=YES")
linphone_builder_add_cmake_option(linphone "-DENABLE_CONSOLE_UI=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_GTK_UI=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_NOTIFY=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_TOOLS=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_TUTORIALS=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_UPNP=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_MSG_STORAGE=YES")
linphone_builder_add_cmake_option(linphone "-DENABLE_DOC=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_UNIT_TESTS=YES")
set(EP_linphone_LINKING_TYPE "-DENABLE_STATIC=NO" "-DENABLE_SHARED=YES")
# mbedtls
set(EP_mbedtls_LINKING_TYPE "-DUSE_STATIC_MBEDTLS_LIBRARY=YES" "-DUSE_SHARED_MBEDTLS_LIBRARY=NO")
# mediastreamer2
list(APPEND EP_ms2_CMAKE_OPTIONS
"-DENABLE_RELATIVE_PREFIX=YES"
"-DENABLE_ALSA=NO"
"-DENABLE_ANDROIDSND=YES"
"-DENABLE_PULSEAUDIO=NO"
"-DENABLE_OSS=NO"
"-DENABLE_GLX=NO"
"-DENABLE_V4L=NO"
"-DENABLE_X11=NO"
"-DENABLE_XV=NO"
"-DENABLE_TOOLS=NO"
"-DENABLE_DOC=NO"
"-DENABLE_UNIT_TESTS=NO"
)
linphone_builder_add_cmake_option(ms2 "-DENABLE_RELATIVE_PREFIX=YES")
linphone_builder_add_cmake_option(ms2 "-DENABLE_ALSA=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_ANDROIDSND=YES")
linphone_builder_add_cmake_option(ms2 "-DENABLE_PULSEAUDIO=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_OSS=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_GLX=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_V4L=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_X11=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_XV=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_TOOLS=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_DOC=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_UNIT_TESTS=NO")
set(EP_ms2_LINKING_TYPE "-DENABLE_STATIC=NO" "-DENABLE_SHARED=YES")
# opus
list(APPEND EP_opus_CMAKE_OPTIONS "-DENABLE_FIXED_POINT=YES")
linphone_builder_add_cmake_option(opus "-DENABLE_FIXED_POINT=YES")
# ortp
list(APPEND EP_ortp_CMAKE_OPTIONS "-DENABLE_DOC=NO")
linphone_builder_add_cmake_option(ortp "-DENABLE_DOC=NO")
set(EP_ortp_LINKING_TYPE "-DENABLE_STATIC=NO" "-DENABLE_SHARED=YES")
# polarssl
set(EP_polarssl_LINKING_TYPE "-DUSE_SHARED_POLARSSL_LIBRARY=0")
# speex
list(APPEND EP_speex_CMAKE_OPTIONS "-DENABLE_FLOAT_API=NO" "-DENABLE_FIXED_POINT=YES" "-DENABLE_ARM_NEON_INTRINSICS=1")
linphone_builder_add_cmake_option(speex "-DENABLE_FLOAT_API=NO")
linphone_builder_add_cmake_option(speex "-DENABLE_FIXED_POINT=YES")
linphone_builder_add_cmake_option(speex "-DENABLE_ARM_NEON_INTRINSICS=1")
# vpx
set(EP_vpx_LINKING_TYPE "--enable-static" "--disable-shared")
......
......@@ -30,10 +30,9 @@ set(LINPHONE_BUILDER_CFLAGS "${LINPHONE_BUILDER_CFLAGS} -march=armv7-a -mfpu=neo
# speex
list(APPEND EP_speex_CMAKE_OPTIONS
"-DENABLE_FLOAT_API=0"
"-DENABLE_FIXED_POINT=1"
"-DENABLE_ARM_NEON_INTRINSICS=1"
linphone_builder_add_cmake_option(speex "-DENABLE_FLOAT_API=0")
linphone_builder_add_cmake_option(speex "-DENABLE_FIXED_POINT=1")
linphone_builder_add_cmake_option(speex "-DENABLE_ARM_NEON_INTRINSICS=1")
)
# opus
......
......@@ -31,7 +31,7 @@ set(DEFAULT_VALUE_ENABLE_UNIT_TESTS ON)
set(DEFAULT_VALUE_ENABLE_VIDEO ON)
set(DEFAULT_VALUE_ENABLE_ZRTP ON)
set(DEFAULT_VALUE_CMAKE_LINKING_TYPE "-DENABLE_STATIC=YES")
set(DEFAULT_VALUE_CMAKE_LINKING_TYPE "-DENABLE_STATIC=YES" "-DENABLE_SHARED=NO")
# Global configuration
get_filename_component(COMPILER_NAME ${CMAKE_C_COMPILER} NAME)
......@@ -45,53 +45,45 @@ set(LINPHONE_BUILDER_PKG_CONFIG_LIBDIR ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig) #
# Include builders
include(builders/CMakeLists.txt)
# Temporarily disable shared library (we only need the static ones), later this will be taken care of by DEFAULT_VALUE_CMAKE_LINKING_TYPE
list(APPEND EP_bctoolbox_CMAKE_OPTIONS "-DENABLE_SHARED=NO")
list(APPEND EP_matroska2_CMAKE_OPTIONS "-DENABLE_SHARED=NO")
# bctoolbox
linphone_builder_add_cmake_option(bctoolbox "-DENABLE_TESTS=NO")
# belle-sip
set(EP_bellesip_EXTRA_CFLAGS "-DUSE_STRUCT_RES_STATE_NAMESERVERS ${EP_bellesip_EXTRA_CFLAGS}")
list(APPEND EP_bellesip_CMAKE_OPTIONS "-DENABLE_TESTS=NO")
linphone_builder_add_cmake_option(bellesip "-DENABLE_TESTS=NO")
# bzrtp
list(APPEND EP_bzrtp_CMAKE_OPTIONS "-DENABLE_TESTS=NO")
linphone_builder_add_cmake_option(bzrtp "-DENABLE_TESTS=NO")
# linphone
list(APPEND EP_linphone_CMAKE_OPTIONS
"-DENABLE_RELATIVE_PREFIX=YES"
"-DENABLE_CONSOLE_UI=NO"
"-DENABLE_GTK_UI=NO"
"-DENABLE_NOTIFY=NO"
"-DENABLE_TOOLS=NO"
"-DENABLE_TUTORIALS=NO"
"-DENABLE_UNIT_TESTS=NO"
"-DENABLE_UPNP=NO"
"-DENABLE_MSG_STORAGE=YES"
"-DENABLE_NLS=NO"
"-DENABLE_CALL_LOGS_STORAGE=YES"
)
linphone_builder_add_cmake_option(linphone "-DENABLE_RELATIVE_PREFIX=YES")
linphone_builder_add_cmake_option(linphone "-DENABLE_CONSOLE_UI=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_GTK_UI=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_NOTIFY=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_TOOLS=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_TUTORIALS=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_UNIT_TESTS=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_UPNP=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_MSG_STORAGE=YES")
linphone_builder_add_cmake_option(linphone "-DENABLE_NLS=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_CALL_LOGS_STORAGE=YES")
# mbedtls
set(EP_mbedtls_LINKING_TYPE "-DUSE_STATIC_MBEDTLS_LIBRARY=YES" "-DUSE_SHARED_MBEDTLS_LIBRARY=NO")
# mediastreamer2
list(APPEND EP_ms2_CMAKE_OPTIONS
"-DENABLE_RELATIVE_PREFIX=YES"
"-DENABLE_QSA=YES"
"-DENABLE_ALSA=NO"
"-DENABLE_PULSEAUDIO=NO"
"-DENABLE_OSS=NO"
"-DENABLE_GLX=NO"
"-DENABLE_X11=NO"
"-DENABLE_XV=NO"
"-DENABLE_MKV=YES"
"-DENABLE_QNX=YES"
"-DENABLE_V4L=NO"
"-DENABLE_UNIT_TESTS=NO"
)
# polarssl
set(EP_polarssl_LINKING_TYPE "-DUSE_SHARED_POLARSSL_LIBRARY=0")
linphone_builder_add_cmake_option(ms2 "-DENABLE_RELATIVE_PREFIX=YES")
linphone_builder_add_cmake_option(ms2 "-DENABLE_QSA=YES")
linphone_builder_add_cmake_option(ms2 "-DENABLE_ALSA=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_PULSEAUDIO=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_OSS=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_GLX=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_X11=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_XV=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_MKV=YES")
linphone_builder_add_cmake_option(ms2 "-DENABLE_QNX=YES")
linphone_builder_add_cmake_option(ms2 "-DENABLE_V4L=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_UNIT_TESTS=NO")
# vpx
set(EP_vpx_LINKING_TYPE "--enable-static" "--disable-shared")
......@@ -94,16 +94,16 @@ include(builders/CMakeLists.txt)
# linphone
if(WIN32)
list(APPEND EP_linphone_CMAKE_OPTIONS "-DENABLE_RELATIVE_PREFIX=YES")
else(APPLE)
list(APPEND EP_linphone_CMAKE_OPTIONS "-DENABLE_RELATIVE_PREFIX=${ENABLE_RELATIVE_PREFIX}")
linphone_builder_add_cmake_option(linphone "-DENABLE_RELATIVE_PREFIX=YES")
else()
linphone_builder_add_cmake_option(linphone "-DENABLE_RELATIVE_PREFIX=${ENABLE_RELATIVE_PREFIX}")
endif()
# ms2
if(WIN32)
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_RELATIVE_PREFIX=YES")
else(APPLE)
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_RELATIVE_PREFIX=${ENABLE_RELATIVE_PREFIX}")
linphone_builder_add_cmake_option(ms2 "-DENABLE_RELATIVE_PREFIX=YES")
else()
linphone_builder_add_cmake_option(ms2 "-DENABLE_RELATIVE_PREFIX=${ENABLE_RELATIVE_PREFIX}")
endif()
# opencoreamr
......
......@@ -94,7 +94,7 @@ endif()
# needed *before* the include
set(EP_ortp_FORCE_AUTOTOOLS True)
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_TESTS=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_TESTS=NO")
set(EP_ms2_USE_AUTOGEN True)
set(EP_ms2_FORCE_AUTOTOOLS True)
set(EP_ms2_CONFIGURE_OPTIONS "--disable-video")
......@@ -104,7 +104,7 @@ set(EP_flexisip_FORCE_AUTOTOOLS True)
# we can override the bctoolbox build method before including builders because it doesn't define it.
set(EP_bctoolbox_BUILD_METHOD "rpm")
list(APPEND EP_bctoolbox_CMAKE_OPTIONS "-DENABLE_TESTS=NO")
linphone_builder_add_cmake_option(bctoolbox "-DENABLE_TESTS=NO")
# Include builders
include(builders/CMakeLists.txt)
......
......@@ -28,4 +28,4 @@ if (NOT ${XCODE_VERSION} VERSION_LESS 7)
endif()
# speex
list(APPEND EP_speex_CMAKE_OPTIONS "-DENABLE_ARM_NEON_INTRINSICS=1")
linphone_builder_add_cmake_option(speex "-DENABLE_ARM_NEON_INTRINSICS=1")
......@@ -31,5 +31,4 @@ if (NOT ${XCODE_VERSION} VERSION_LESS 7)
endif()
# speex
list(APPEND EP_speex_CMAKE_OPTIONS "-DENABLE_ARM_NEON_INTRINSICS=1")
linphone_builder_add_cmake_option(speex "-DENABLE_ARM_NEON_INTRINSICS=1")
......@@ -65,60 +65,58 @@ endif()
include(builders/CMakeLists.txt)
# bctoolbox
list(APPEND EP_bctoolbox_CMAKE_OPTIONS "-DENABLE_TESTS=NO")
linphone_builder_add_cmake_option(bctoolbox "-DENABLE_TESTS=NO")
# belle-sip
list(APPEND EP_bellesip_CMAKE_OPTIONS "-DENABLE_TESTS=NO")
linphone_builder_add_cmake_option(bellesip "-DENABLE_TESTS=NO")
# bzrtp
list(APPEND EP_bzrtp_CMAKE_OPTIONS "-DENABLE_TESTS=NO" "-DENABLE_STRICT=NO")
linphone_builder_add_cmake_option(bzrtp "-DENABLE_TESTS=NO")
linphone_builder_add_cmake_option(bzrtp "-DENABLE_STRICT=NO")
# ffmpeg
set(EP_ffmpeg_LINKING_TYPE "--enable-static" "--disable-shared" "--enable-pic")
# linphone
list(APPEND EP_linphone_CMAKE_OPTIONS
"-DENABLE_RELATIVE_PREFIX=YES"
"-DENABLE_CONSOLE_UI=NO"
"-DENABLE_GTK_UI=NO"
"-DENABLE_NOTIFY=NO"
"-DENABLE_TOOLS=NO"
"-DENABLE_TUTORIALS=NO"
"-DENABLE_UPNP=NO"
"-DENABLE_MSG_STORAGE=YES"
"-DENABLE_DOC=NO"
"-DENABLE_UNIT_TESTS=YES"
"-DENABLE_NLS=NO"
)
linphone_builder_add_cmake_option(linphone "-DENABLE_RELATIVE_PREFIX=YES")
linphone_builder_add_cmake_option(linphone "-DENABLE_CONSOLE_UI=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_GTK_UI=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_NOTIFY=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_TOOLS=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_TUTORIALS=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_UPNP=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_MSG_STORAGE=YES")
linphone_builder_add_cmake_option(linphone "-DENABLE_DOC=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_UNIT_TESTS=YES")
linphone_builder_add_cmake_option(linphone "-DENABLE_NLS=NO")
# mbedtls
set(EP_mbedtls_LINKING_TYPE "-DUSE_STATIC_MBEDTLS_LIBRARY=YES" "-DUSE_SHARED_MBEDTLS_LIBRARY=NO")
# mediastreamer2
list(APPEND EP_ms2_CMAKE_OPTIONS
"-DENABLE_RELATIVE_PREFIX=YES"
"-DENABLE_ALSA=NO"
"-DENABLE_PULSEAUDIO=NO"
"-DENABLE_OSS=NO"
"-DENABLE_GLX=NO"
"-DENABLE_X11=NO"
"-DENABLE_XV=NO"
"-DENABLE_TOOLS=NO"
"-DENABLE_DOC=NO"
"-DENABLE_UNIT_TESTS=NO"
)
linphone_builder_add_cmake_option(ms2 "-DENABLE_RELATIVE_PREFIX=YES")
linphone_builder_add_cmake_option(ms2 "-DENABLE_ALSA=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_PULSEAUDIO=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_OSS=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_GLX=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_X11=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_XV=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_TOOLS=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_DOC=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_UNIT_TESTS=NO")
# opus
list(APPEND EP_opus_CMAKE_OPTIONS "-DENABLE_FIXED_POINT=YES")
linphone_builder_add_cmake_option(opus "-DENABLE_FIXED_POINT=YES")
# ortp
list(APPEND EP_ortp_CMAKE_OPTIONS "-DENABLE_DOC=NO")
linphone_builder_add_cmake_option(ortp "-DENABLE_DOC=NO")
# polarssl
set(EP_polarssl_LINKING_TYPE "-DUSE_SHARED_POLARSSL_LIBRARY=0")
# speex
list(APPEND EP_speex_CMAKE_OPTIONS "-DENABLE_FLOAT_API=NO" "-DENABLE_FIXED_POINT=YES")
linphone_builder_add_cmake_option(speex "-DENABLE_FLOAT_API=NO")
linphone_builder_add_cmake_option(speex "-DENABLE_FIXED_POINT=YES")
# vpx
set(EP_vpx_LINKING_TYPE "--enable-static" "--disable-shared")
......@@ -126,4 +124,3 @@ set(EP_vpx_LINKING_TYPE "--enable-static" "--disable-shared")
# x264
set(EP_x264_LINKING_TYPE "--enable-static" "--enable-pic")
set(EP_x264_INSTALL_TARGET "install-lib-static")
......@@ -40,7 +40,7 @@ set(EP_ffmpeg_CROSS_COMPILATION_OPTIONS
)
# opus
list(APPEND EP_opus_CMAKE_OPTIONS "-DENABLE_FIXED_POINT=YES")
linphone_builder_add_cmake_option(opus "-DENABLE_FIXED_POINT=YES")
# vpx
set(EP_vpx_CROSS_COMPILATION_OPTIONS
......
......@@ -77,36 +77,30 @@ include(builders/CMakeLists.txt)
set(EP_ffmpeg_LINKING_TYPE "--disable-static" "--enable-shared")
# linphone
list(APPEND EP_linphone_CMAKE_OPTIONS
"-DENABLE_RELATIVE_PREFIX=YES"
"-DENABLE_CONSOLE_UI=NO"
"-DENABLE_GTK_UI=NO"
"-DENABLE_NOTIFY=NO"
"-DENABLE_TOOLS=NO"
"-DENABLE_TUTORIALS=NO"
"-DENABLE_UNIT_TESTS=NO"
"-DENABLE_UPNP=NO"
)
linphone_builder_add_cmake_option(linphone "-DENABLE_RELATIVE_PREFIX=YES")
linphone_builder_add_cmake_option(linphone "-DENABLE_CONSOLE_UI=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_GTK_UI=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_NOTIFY=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_TOOLS=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_TUTORIALS=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_UNIT_TESTS=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_UPNP=NO")
# mbedtls
set(EP_mbedtls_LINKING_TYPE "-DUSE_STATIC_MBEDTLS_LIBRARY=YES" "-DUSE_SHARED_MBEDTLS_LIBRARY=NO")
# ms2
list(APPEND EP_ms2_CMAKE_OPTIONS
"-DENABLE_RELATIVE_PREFIX=YES"
"-DENABLE_UNIT_TESTS=NO"
"-DENABLE_TOOLS=NO"
"-DENABLE_PCAP=NO"
)
linphone_builder_add_cmake_option(ms2 "-DENABLE_RELATIVE_PREFIX=YES")
linphone_builder_add_cmake_option(ms2 "-DENABLE_UNIT_TESTS=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_TOOLS=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_PCAP=NO")
if(UNIX AND NOT APPLE)
list(APPEND EP_ms2_CMAKE_OPTIONS
"-DENABLE_ALSA=YES"
"-DENABLE_PULSEAUDIO=NO"
"-DENABLE_OSS=NO"
"-DENABLE_GLX=NO"
"-DENABLE_X11=YES"
"-DENABLE_XV=YES"
)
linphone_builder_add_cmake_option(ms2 "-DENABLE_ALSA=YES")
linphone_builder_add_cmake_option(ms2 "-DENABLE_PULSEAUDIO=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_OSS=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_GLX=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_X11=YES")
linphone_builder_add_cmake_option(ms2 "-DENABLE_XV=YES")
endif()
# polarssl
......
......@@ -63,44 +63,38 @@ include(builders/CMakeLists.txt)
# belle-sip
list(APPEND EP_bellesip_CMAKE_OPTIONS "-DENABLE_SERVER_SOCKETS=0")
linphone_builder_add_cmake_option(bellesip "-DENABLE_SERVER_SOCKETS=0")
# gsm
set(EP_gsm_LINKING_TYPE "-DENABLE_STATIC=YES")
# linphone
list(APPEND EP_linphone_CMAKE_OPTIONS
"-DENABLE_RELATIVE_PREFIX=YES"
"-DENABLE_CONSOLE_UI=NO"
"-DENABLE_GTK_UI=NO"
"-DENABLE_NOTIFY=NO"
"-DENABLE_TOOLS=YES"
"-DENABLE_TUTORIALS=NO"
"-DENABLE_UNIT_TESTS=NO"
"-DENABLE_UPNP=NO"
"-DENABLE_NLS=NO"
)
linphone_builder_add_cmake_option(linphone "-DENABLE_RELATIVE_PREFIX=YES")
linphone_builder_add_cmake_option(linphone "-DENABLE_CONSOLE_UI=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_GTK_UI=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_NOTIFY=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_TOOLS=YES")
linphone_builder_add_cmake_option(linphone "-DENABLE_TUTORIALS=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_UNIT_TESTS=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_UPNP=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_NLS=NO")
if(MSVC)
list(APPEND EP_linphone_CMAKE_OPTIONS "-DENABLE_TOOLS=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_TOOLS=NO")
else()
list(APPEND EP_linphone_CMAKE_OPTIONS "-DENABLE_TOOLS=YES")
linphone_builder_add_cmake_option(linphone "-DENABLE_TOOLS=YES")
endif()
# mediastreamer2
list(APPEND EP_ms2_CMAKE_OPTIONS
"-DENABLE_RELATIVE_PREFIX=YES"
"-DENABLE_UNIT_TESTS=NO"
"-DENABLE_TOOLS=NO"
)
linphone_builder_add_cmake_option(ms2 "-DENABLE_RELATIVE_PREFIX=YES")
linphone_builder_add_cmake_option(ms2 "-DENABLE_UNIT_TESTS=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_TOOLS=NO")
if(UNIX AND NOT APPLE)
list(APPEND EP_ms2_CMAKE_OPTIONS
"-DENABLE_ALSA=YES"
"-DENABLE_PULSEAUDIO=NO"
"-DENABLE_OSS=NO"
"-DENABLE_GLX=NO"
"-DENABLE_X11=YES"
"-DENABLE_XV=YES"
)
linphone_builder_add_cmake_option(ms2 "-DENABLE_ALSA=YES")
linphone_builder_add_cmake_option(ms2 "-DENABLE_PULSEAUDIO=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_OSS=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_GLX=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_X11=YES")
linphone_builder_add_cmake_option(ms2 "-DENABLE_XV=YES")
endif()
# opencoreamr
......
......@@ -53,30 +53,24 @@ include(builders/CMakeLists.txt)
# linphone
list(APPEND EP_linphone_CMAKE_OPTIONS
"-DENABLE_RELATIVE_PREFIX=YES"
"-DENABLE_CONSOLE_UI=NO"
"-DENABLE_GTK_UI=NO"
"-DENABLE_NOTIFY=NO"
"-DENABLE_TOOLS=NO"
"-DENABLE_TUTORIALS=NO"
"-DENABLE_UPNP=NO"
)
linphone_builder_add_cmake_option(linphone "-DENABLE_RELATIVE_PREFIX=YES")
linphone_builder_add_cmake_option(linphone "-DENABLE_CONSOLE_UI=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_GTK_UI=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_NOTIFY=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_TOOLS=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_TUTORIALS=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_UPNP=NO")
# mbedtls
set(EP_mbedtls_EXTRA_CFLAGS "${EP_mbedtls_EXTRA_CFLAGS} -DMBEDTLS_NO_PLATFORM_ENTROPY")
# ms2
list(APPEND EP_ms2_CMAKE_OPTIONS
"-DENABLE_RELATIVE_PREFIX=YES"
"-DENABLE_TOOLS=NO"
)
linphone_builder_add_cmake_option(ms2 "-DENABLE_RELATIVE_PREFIX=YES")
linphone_builder_add_cmake_option(ms2 "-DENABLE_TOOLS=NO")
# opus
list(APPEND EP_opus_CMAKE_OPTIONS
"-DENABLE_ASM=NO"
"-DENABLE_FIXED_POINT=YES"
)
linphone_builder_add_cmake_option(opus "-DENABLE_ASM=NO")
linphone_builder_add_cmake_option(opus "-DENABLE_FIXED_POINT=YES")
set(EP_opus_LINKING_TYPE "-DENABLE_STATIC=YES")
......
......@@ -41,23 +41,19 @@ include(builders/CMakeLists.txt)
# linphone
list(APPEND EP_linphone_CMAKE_OPTIONS
"-DENABLE_RELATIVE_PREFIX=YES"
"-DENABLE_CONSOLE_UI=NO"
"-DENABLE_GTK_UI=NO"
"-DENABLE_NOTIFY=NO"
"-DENABLE_TOOLS=NO"
"-DENABLE_TUTORIALS=NO"
"-DENABLE_UNIT_TESTS=NO"
"-DENABLE_UPNP=NO"
)
linphone_builder_add_cmake_option(linphone "-DENABLE_RELATIVE_PREFIX=YES")
linphone_builder_add_cmake_option(linphone "-DENABLE_CONSOLE_UI=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_GTK_UI=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_NOTIFY=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_TOOLS=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_TUTORIALS=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_UNIT_TESTS=NO")
linphone_builder_add_cmake_option(linphone "-DENABLE_UPNP=NO")
# ms2
list(APPEND EP_ms2_CMAKE_OPTIONS
"-DENABLE_RELATIVE_PREFIX=YES"
"-DENABLE_UNIT_TESTS=NO"
"-DENABLE_TOOLS=NO"
)
linphone_builder_add_cmake_option(ms2 "-DENABLE_RELATIVE_PREFIX=YES")
linphone_builder_add_cmake_option(ms2 "-DENABLE_UNIT_TESTS=NO")
linphone_builder_add_cmake_option(ms2 "-DENABLE_TOOLS=NO")
# vpx
set(EP_vpx_LINKING_TYPE "--enable-static" "--disable-shared" "--enable-pic")
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