Commit 03157e5b authored by Ghislain MARY's avatar Ghislain MARY

Add builders for x264 and msx264.

parent 5055d15f
......@@ -78,6 +78,9 @@ endif(${ENABLE_ISAC})
if(${ENABLE_SILK})
list(APPEND LINPHONE_BUILDER_BUILDERS mssilk)
endif(${ENABLE_SILK})
if(${ENABLE_X264})
list(APPEND LINPHONE_BUILDER_BUILDERS x264 msx264)
endif(${ENABLE_X264})
list(APPEND LINPHONE_BUILDER_BUILDERS linphone)
......
......@@ -63,3 +63,7 @@ set(EP_ffmpeg_CROSS_COMPILATION_OPTIONS
"--arch=${EP_ffmpeg_ARCH}"
"--target-os=${EP_ffmpeg_TARGET_OS}"
)
if(${ENABLE_X264})
list(APPEND EP_ffmpeg_CONFIGURE_OPTIONS "--enable-decoder=h264")
endif(${ENABLE_X264})
......@@ -58,6 +58,9 @@ else(WIN32)
if(${ENABLE_SILK})
list(APPEND EP_linphone_DEPENDENCIES EP_mssilk)
endif(${ENABLE_SILK})
if(${ENABLE_X264})
list(APPEND EP_linphone_DEPENDENCIES EP_msx264)
endif(${ENABLE_X264})
if(${ENABLE_ZRTP})
list(APPEND EP_linphone_CONFIGURE_OPTIONS "--enable-zrtp")
......
############################################################################
# msx264.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.
#
############################################################################
set(EP_msx264_GIT_REPOSITORY "git://git.linphone.org/msx264.git")
set(EP_msx264_GIT_TAG "6532dd845c59631a9149e9146ba5cf9426db906b") # Branch 'master'
set(EP_msx264_USE_AUTOTOOLS "yes")
set(EP_msx264_USE_AUTOGEN "yes")
set(EP_msx264_CROSS_COMPILATION_OPTIONS
"--prefix=${CMAKE_INSTALL_PREFIX}"
"--host=${LINPHONE_BUILDER_TOOLCHAIN_HOST}"
)
set(EP_msx264_LINKING_TYPE "--disable-static" "--enable-shared")
set(EP_msx264_DEPENDENCIES EP_ms2 EP_x264)
############################################################################
# x264.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.
#
############################################################################
set(EP_x264_GIT_REPOSITORY "git://git.videolan.org/x264.git")
set(EP_x264_GIT_TAG "f6a8615ab0c922ac2cb5c82c9824f6f4742b1725")
set(EP_x264_USE_AUTOTOOLS "yes")
set(EP_x264_CROSS_COMPILATION_OPTIONS
"--prefix=${CMAKE_INSTALL_PREFIX}"
"--host=${LINPHONE_BUILDER_TOOLCHAIN_HOST}"
)
set(EP_x264_CONFIGURE_OPTIONS
"--extra-cflags=${LINPHONE_BUILDER_TOOLCHAIN_CFLAGS}"
"--extra-ldflags=${LINPHONE_BUILDER_TOOLCHAIN_LDFLAGS}"
)
set(EP_x264_LINKING_TYPE "--enable-shared")
set(EP_x264_CONFIGURE_ENV "CC=$CC")
set(EP_x264_BUILD_IN_SOURCE "yes")
set(EP_x264_INSTALL_TARGET "install-lib-shared")
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