From c749c0d99b758a90c8ee269c1c9ebba492bd83fa Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Fri, 7 Feb 2020 17:33:53 +0100 Subject: [PATCH] Add Linux Autobuild [ci skip] --- build_all_linux.sh | 59 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100755 build_all_linux.sh diff --git a/build_all_linux.sh b/build_all_linux.sh new file mode 100755 index 000000000..7397356bd --- /dev/null +++ b/build_all_linux.sh @@ -0,0 +1,59 @@ +#!/bin/sh +################################################################################ +# CMakeLists.txt +# Copyright (C) 2020 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +################################################################################ +# Linux First building script +#------------------------------------------------------------------------------- +#Stop at error +set -e + +if [[ -z ${Qt5_DIR} ]]; then + export Qt5_DIR=/usr/opt/qt/lib/cmake + export PATH=$PATH:/usr/local/opt/qt/bin +fi + +#Creation of folders +mkdir -p build-desktop +mkdir -p linphone-sdk/build-sdk +mkdir -p submodules/externals/minizip/build-minizip +#Opus crash on Linux. The version for 4.3 is old. We have to use a switch in configuration to select the newest version for desktop. +#SDK building +cd linphone-sdk/build-sdk +cmake .. -DLINPHONESDK_PLATFORM=Desktop -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_VPX=YES -DENABLE_GPL_THIRD_PARTIES=YES -DENABLE_NON_FREE_CODECS=YES -DENABLE_AMRNB=YES -DENABLE_AMRWB=YES -DENABLE_G729=YES -DENABLE_GSM=YES -DENABLE_ILBC=YES -DENABLE_ISAC=YES -DENABLE_SILK=YES -DENABLE_SPEEX=YES -DENABLE_H263=YES -DENABLE_H263P=YES -DENABLE_MPEG4=YES -DENABLE_OPENH264=YES -DENABLE_FFMPEG=YES -DENABLE_VIDEO=YES -DENABLE_GL=YES -DENABLE_OPUS=NO +#cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo +cmake --build . --target all --config RelWithDebInfo --parallel 5 +cd ../.. + +#MiniZip Building +cd submodules/externals/minizip/build-minizip +cmake .. -DCMAKE_INSTALL_PREFIX=OUTPUT -DCMAKE_PREFIX_PATH=../../../linphone-sdk/build-sdk/linphone-sdk/desktop -DCMAKE_BUILD_TYPE=RelWithDebInfo +cmake --build . --target all --config RelWithDebInfo --parallel 5 +cmake --build . --target install +cd ../../../.. + +#Desktop Building +cd build-desktop +cmake .. -DCMAKE_INSTALL_PREFIX=OUTPUT -DCMAKE_BUILD_TYPE=RelWithDebInfo +cmake --build . --target all --config RelWithDebInfo --parallel 5 +cmake --build . --target install + + +