Commit ccc02e53 authored by François Grisez's avatar François Grisez
Browse files

Generate mediastreamer SDK package

parent 8fb45c0a
......@@ -147,7 +147,31 @@ if (ENABLE_PACKAGING)
TMP_DIR ${ep_tmp}
BINARY_DIR ${ep_build}
DOWNLOAD_COMMAND ""
PATCH_COMMAND "${CMAKE_COMMAND}" "-E" "copy_directory" "${CMAKE_CURRENT_LIST_DIR}/desktop" "<SOURCE_DIR>"
PATCH_COMMAND "${CMAKE_COMMAND}" "-E" "copy_directory" "${CMAKE_CURRENT_LIST_DIR}/desktop/linphone_package" "<SOURCE_DIR>"
CMAKE_GENERATOR ${CMAKE_GENERATOR}
CMAKE_ARGS ${LINPHONE_BUILDER_EP_ARGS} -DCMAKE_INSTALL_PREFIX=${LINPHONE_BUILDER_WORK_DIR}/PACKAGE -DLINPHONE_OUTPUT_DIR=${CMAKE_INSTALL_PREFIX} -DENABLE_ZRTP:BOOL=${ENABLE_ZRTP}
)
endif()
# Mediastreamer SDK packages
if(LINPHONE_BUILDER_TARGET STREQUAL ms2
OR LINPHONE_BUILDER_TARGET STREQUAL ms2-plugins
OR LINPHONE_BUILDER_TARGET STREQUAL linphone)
if(LINPHONE_BUILDER_TARGET STREQUAL ms2)
set(MS2_PACKAGE_DEPEND_TARGET TARGET_ms2)
else()
set(MS2_PACKAGE_DEPEND_TARGET TARGET_ms2plugins)
endif()
linphone_builder_apply_flags()
linphone_builder_set_ep_directories(ms2_package)
linphone_builder_expand_external_project_vars()
ExternalProject_Add(TARGET_ms2_package
DEPENDS ${MS2_PACKAGE_DEPEND_TARGET}
TMP_DIR ${ep_tmp}
BINARY_DIR ${ep_build}
DOWNLOAD_COMMAND ""
PATCH_COMMAND "${CMAKE_COMMAND}" "-E" "copy_directory" "${CMAKE_CURRENT_LIST_DIR}/desktop/ms2_package" "<SOURCE_DIR>"
CMAKE_GENERATOR ${CMAKE_GENERATOR}
CMAKE_ARGS ${LINPHONE_BUILDER_EP_ARGS} -DCMAKE_INSTALL_PREFIX=${LINPHONE_BUILDER_WORK_DIR}/PACKAGE -DLINPHONE_OUTPUT_DIR=${CMAKE_INSTALL_PREFIX} -DENABLE_ZRTP:BOOL=${ENABLE_ZRTP}
)
......
############################################################################
# CMakeLists.txt
# 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.
#
############################################################################
cmake_minimum_required(VERSION 3.0)
project(MS2_PACKAGE) # Dummy project
find_package(Mediastreamer2 REQUIRED)
find_package(Git)
set(MS2_SOURCE_DIR "${CMAKE_SOURCE_DIR}/../EP_ms2")
set(MS2_BUILD_DIR "${CMAKE_BINARY_DIR}/../ms2")
if(GIT_EXECUTABLE)
execute_process(
COMMAND ${GIT_EXECUTABLE} describe --always
OUTPUT_VARIABLE MS2_GIT_REVISION
OUTPUT_STRIP_TRAILING_WHITESPACE
WORKING_DIRECTORY ${MS2_SOURCE_DIR}
)
else()
set(MS2_GIT_REVISION "0.0.0")
endif()
if(WIN32)
set(ARCHIVE_NAME mediastreamer-sdk-${MS2_GIT_REVISION}-win32.zip)
execute_process(
COMMAND cmake -E tar cv ${CMAKE_BINARY_DIR}/${ARCHIVE_NAME} --format=zip --files-from=${CMAKE_SOURCE_DIR}/mediastreamer-sdk.list .
WORKING_DIRECTORY ${LINPHONE_OUTPUT_DIR}
)
endif()
bin/avcodec-53.dll
bin/avutil-51.dll
bin/bzrtp.dll
bin/gsm.dll
bin/mediastreamer_base.dll
bin/mediastreamer_voip.dll
bin/opus.dll
bin/ortp.dll
bin/polarssl.dll
bin/speex.dll
bin/speexdsp.dll
bin/srtp.dll
bin/swresample-0.dll
bin/swscale-2.dll
include/bzrtp
include/gsm
include/libavcodec
include/libavutil
include/libswresample
include/libswscale
include/mediastreamer2
include/MSVC
include/opus
include/ortp
include/polarssl
include/speex
include/srtp
include/vpx
lib/avcodec-53.def
lib/avcodec.exp
lib/avcodec.lib
lib/avutil-51.def
lib/avutil.exp
lib/avutil.lib
lib/bzrtp.lib
lib/cmake/BZRTP
lib/cmake/Mediastreamer2
lib/cmake/oRTP
lib/gcc.lib
lib/gsm.lib
lib/libavcodec.dll.a
lib/libavutil.dll.a
lib/libswresample.dll.a
lib/libswscale.dll.a
lib/libvpx.a
lib/mediastreamer/plugins/libmsopenh264.dll
lib/mediastreamer/plugins/libmswasapi.dll
lib/mediastreamer/plugins/msopenh264.lib
lib/mediastreamer/plugins/mswasapi.lib
lib/mediastreamer_base.lib
lib/mediastreamer_voip.lib
lib/mingwex.lib
lib/opus.lib
lib/ortp.lib
lib/pkgconfig/libavcodec.pc
lib/pkgconfig/libavutil.pc
lib/pkgconfig/libswresample.pc
lib/pkgconfig/libswscale.pc
lib/pkgconfig/ortp.pc
lib/pkgconfig/speex.pc
lib/pkgconfig/speexdsp.pc
lib/pkgconfig/vpx.pc
lib/polarssl.lib
lib/speex.lib
lib/speexdsp.lib
lib/srtp.lib
lib/swresample-0.def
lib/swresample.exp
lib/swresample.lib
lib/swscale-2.def
lib/swscale.exp
lib/swscale.lib
lib/vpx.lib
share/cmake/Modules/FindPolarSSL.cmake
share/images/nowebcamCIF.jpg
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