diff --git a/.classpath b/.classpath deleted file mode 100644 index 63762c92a..000000000 --- a/.classpath +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/.project b/.project deleted file mode 100644 index f9c163d50..000000000 --- a/.project +++ /dev/null @@ -1,33 +0,0 @@ - - - linphone-android - - - - - - com.android.ide.eclipse.adt.ResourceManagerBuilder - - - - - com.android.ide.eclipse.adt.PreCompilerBuilder - - - - - org.eclipse.jdt.core.javabuilder - - - - - com.android.ide.eclipse.adt.ApkBuilder - - - - - - com.android.ide.eclipse.adt.AndroidNature - org.eclipse.jdt.core.javanature - - diff --git a/bsed.sh b/bsed.sh deleted file mode 100755 index b357ae14e..000000000 --- a/bsed.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/bash - -# Script found at http://everydaywithlinux.blogspot.fr/2012/11/patch-strings-in-binary-files-with-sed.html - -function patch_strings_in_file() { - local FILE="$1" - local PATTERN="$2" - local REPLACEMENT="$3" - - # Find all unique strings in FILE that contain the pattern - STRINGS=$(strings ${FILE} | grep ${PATTERN} | sort -u -r) - - if [ "${STRINGS}" != "" ] ; then - echo "File '${FILE}' contain strings with '${PATTERN}' in them:" - - for OLD_STRING in ${STRINGS} ; do - # Create the new string with a simple bash-replacement - NEW_STRING=${OLD_STRING//${PATTERN}/${REPLACEMENT}} - - # Create null terminated ASCII HEX representations of the strings - OLD_STRING_HEX="$(echo -n ${OLD_STRING} | xxd -g 0 -u -ps -c 256)00" - NEW_STRING_HEX="$(echo -n ${NEW_STRING} | xxd -g 0 -u -ps -c 256)00" - - if [ ${#NEW_STRING_HEX} -le ${#OLD_STRING_HEX} ] ; then - # Pad the replacement string with null terminations so the - # length matches the original string - while [ ${#NEW_STRING_HEX} -lt ${#OLD_STRING_HEX} ] ; do - NEW_STRING_HEX="${NEW_STRING_HEX}00" - done - - # Now, replace every occurrence of OLD_STRING with NEW_STRING - echo -n "Replacing ${OLD_STRING} with ${NEW_STRING}... " - hexdump -ve '1/1 "%.2X"' ${FILE} | \ - sed "s/${OLD_STRING_HEX}/${NEW_STRING_HEX}/g" | \ - xxd -r -p > ${FILE}.tmp - chmod --reference ${FILE} ${FILE}.tmp - mv ${FILE}.tmp ${FILE} - echo "Done!" - else - echo "New string '${NEW_STRING}' is longer than old" \ - "string '${OLD_STRING}'. Skipping." - fi - done - fi -} - -patch_strings_in_file libs/armeabi-v7a/liblinphone-armeabi-v7a.so "./obj/local/armeabi-v7a/libffmpeg-linphone-arm.so" "libffmpeg-linphone-arm.so" -patch_strings_in_file libs/x86/liblinphone-x86.so "./obj/local/x86/libffmpeg-linphone-x86.so" "libffmpeg-linphone-x86.so" diff --git a/check_tools.sh b/check_tools.sh deleted file mode 100755 index 0c19fb138..000000000 --- a/check_tools.sh +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/sh - -error_on_quit=0 - -echo_err() { - echo "$@" >&2 - error_on_quit=1 -} - -check_installed() { - if [ -z "$(which $1)" ]; then - echo_err "Could not find $1. Please install $2." - return 1 - fi - return 0 -} - -for prog in automake autoconf pkg-config java ant yasm nasm wget; do - check_installed "$prog" "it" -done -if [ $(uname) = "Darwin" ]; then - check_installed "libtool" "libtool" -else - check_installed "libtoolize" "libtool" -fi -check_installed "ndk-build" "android NDK" -if check_installed "android" "android SDK"; then - check_installed "adb" "android SDK platform tools" - # check that at least one target is installed - if [ -z "$(android list target -c)" ]; then - echo_err "Install at least one android target in the android SDK" - fi -fi -if nasm -f elf32 2>&1 | grep -q "fatal: unrecognised output format"; then - echo_err "Invalid version of nasm: your version does not support elf32 output format. If you have installed nasm, please check that your PATH env variable is set correctly." -fi -if ! (find submodules/linphone/mediastreamer2 -mindepth 1 2>/dev/null | grep -q . \ - || find submodules/linphone/oRTP -mindepth 1 2>/dev/null | grep -q .); then - echo_err "Missing some git submodules. Did you run 'git submodule update --init --recursive'?" -fi -# Android NDK should NOT be simlinked! -if [ -L "$ANDROID_NDK" ] && [ -d "$ANDROID_NDK" ]; then - echo_err "ANDROID_NDK=$ANDROID_NDK must NOT be a symbolic link, please modify it accordingly" -fi - -if [ $error_on_quit = 0 ]; then - rm -f check_tools.mk - touch check_tools.mk - echo "JAVA=\"$(which java)\"" >> check_tools.mk - echo "ANTLR=\"$(which java)\" -jar \"submodules/externals/antlr3/antlr-3.2.jar\"" >> check_tools.mk -else - echo "Failed to detect required tools, aborting." -fi - -exit $error_on_quit diff --git a/cmake_builder/CMakeLists.txt b/cmake_builder/CMakeLists.txt deleted file mode 100644 index ea7e0f119..000000000 --- a/cmake_builder/CMakeLists.txt +++ /dev/null @@ -1,25 +0,0 @@ -############################################################################ -# CMakeLists.txt -# Copyright (C) 2018 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. -# -############################################################################ - -# Blacklist these dependencies because they are useless for now -#lcb_blacklist_dependencies("libxsd" "xerces-c" "soci") - diff --git a/doc/CustomsParameters.txt b/doc/CustomsParameters.txt deleted file mode 100644 index dc39dbba5..000000000 --- a/doc/CustomsParameters.txt +++ /dev/null @@ -1,72 +0,0 @@ - ********************************** - * LINPHONE customs parameters * - ********************************** - -In res/values/non_localizable_custom.xml (filled with linphone default options): - -1. Global - - * Set the default domain used by the application: - sip.linphone.orghttps://sip3.linphone.org:444/inapp.php - - * In CreateAccount, allow username instead of phone number for creating a new account - true - - * Hide buttons in assistant menu - false - false - false - - -3. Inapp - - * Enabled inapp purchase - true - - * Days before end of trial period that launch daily notification to remind user to buy an account - 5 - - * Time between two inapp notifications in seconds - 86400 - - * Hide username field in purchase view (automatically get from default account) - true - - -In res/raw/linphonerc_factory sections: - - [in-app-purchase] - * Server xmlrpc url for inapp - server_url=https://sip3.linphone.org:444/inapp.php - - * Item ids from the google play store - purchasable_items_ids=test_account_subscription - - [app] - - * Numbers of digits to enter for validation/recover account - activation_code_length=4 - - - [assistant] - - * Set the default domain used for account creation : - domain=sip.linphone.org - - * Set the default password length (min-max) : - password_max_length=-1 - password_min_length=1 - - * Set the default username length (min-max) : - username_length=-1 - username_max_length=64 - username_min_length=1 - username_regex=^[a-z0-9_.\-]*$ - - * Server xmlrpc url for accounts - xmlrpc_url=https://sip3.linphone.org:444/inapp.php diff --git a/patches/ffmpeg_non_versioned_soname.patch b/patches/ffmpeg_non_versioned_soname.patch deleted file mode 100644 index 34a0ecaf0..000000000 --- a/patches/ffmpeg_non_versioned_soname.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- submodules/externals/ffmpeg/library.mak.orig 2013-09-26 10:58:19.000000000 +0200 -+++ submodules/externals/ffmpeg/library.mak 2013-09-26 10:58:13.000000000 +0200 -@@ -54,7 +54,7 @@ - - $(SUBDIR)$(SLIBNAME_WITH_MAJOR): $(OBJS) $(SUBDIR)lib$(NAME).ver - $(SLIB_CREATE_DEF_CMD) -- $$(LD) $(SHFLAGS) $(LDFLAGS) $$(LD_O) $$(filter %.o,$$^) $(FFEXTRALIBS) -+ $$(LD) $(subst $$(@F),$(SLIBNAME),$(SHFLAGS)) $(LDFLAGS) $$(LD_O) $$(filter %.o,$$^) $(FFEXTRALIBS) - $(SLIB_EXTRA_CMD) - - ifdef SUBDIR diff --git a/patches/libvpx_configure_android_x86.patch b/patches/libvpx_configure_android_x86.patch deleted file mode 100644 index fa1004599..000000000 --- a/patches/libvpx_configure_android_x86.patch +++ /dev/null @@ -1,37 +0,0 @@ -diff --git a/build/make/configure.sh b/build/make/configure.sh -index c592b63..e4998d7 100644 ---- a/build/make/configure.sh -+++ b/build/make/configure.sh -@@ -1132,6 +1132,32 @@ EOF - AS=${AS:-nasm} - add_ldflags -Zhigh-mem - ;; -+ android*) -+ SDK_PATH=${sdk_path} -+ COMPILER_LOCATION=`find "${SDK_PATH}" \ -+ -name "i686-linux-android-gcc*" -print -quit` -+ TOOLCHAIN_PATH=${COMPILER_LOCATION%/*}/i686-linux-android- -+ CC=${TOOLCHAIN_PATH}gcc -+ CXX=${TOOLCHAIN_PATH}g++ -+ AR=${TOOLCHAIN_PATH}ar -+ LD=${TOOLCHAIN_PATH}gcc -+ STRIP=${TOOLCHAIN_PATH}strip -+ NM=${TOOLCHAIN_PATH}nm -+ -+ if [ -z "${alt_libc}" ]; then -+ alt_libc=`find "${SDK_PATH}" -name arch-x86 -print | \ -+ awk '{n = split($0,a,"/"); \ -+ split(a[n-1],b,"-"); \ -+ print $0 " " b[2]}' | \ -+ sort -g -k 2 | \ -+ awk '{ print $1 }' | tail -1` -+ fi -+ -+ add_cflags "--sysroot=${alt_libc}" -+ add_ldflags "--sysroot=${alt_libc}" -+ -+ soft_enable realtime_only -+ ;; - esac - - AS="${alt_as:-${AS:-auto}}" diff --git a/patches/openh264-permissive.patch b/patches/openh264-permissive.patch deleted file mode 100644 index bff18b6ce..000000000 --- a/patches/openh264-permissive.patch +++ /dev/null @@ -1,40 +0,0 @@ -commit 6b3de978d928b6c0baec3305c9803c21a4367d0c -Author: Simon Morlat -Date: Tue Apr 15 15:19:37 2014 +0200 - - permissive mode: allow reference frames to be used even if there were lost slices. - -diff --git a/codec/decoder/core/src/manage_dec_ref.cpp b/codec/decoder/core/src/manage_dec_ref.cpp -index dcf61ca..5582ec9 100644 ---- a/codec/decoder/core/src/manage_dec_ref.cpp -+++ b/codec/decoder/core/src/manage_dec_ref.cpp -@@ -165,6 +165,7 @@ int32_t WelsReorderRefList (PWelsDecoderContext pCtx) { - && (pSliceHeader->iSpsId != ppRefList[i]->iSpsId)) { //check; - WelsLog (pCtx, WELS_LOG_WARNING, "WelsReorderRefList()-1::::BASE LAYER::::iSpsId:%d, ref_sps_id:%d\n", - pSliceHeader->iSpsId, ppRefList[i]->iSpsId); -+ return ERR_NONE; - pCtx->iErrorCode = dsNoParamSets; //cross-IDR reference frame selection, SHOULD request IDR.-- - return ERR_INFO_REFERENCE_PIC_LOST; - } else { - -commit a1f3b95ad18d0788c2c803fac80e78d6365673ce -Author: Simon Morlat -Date: Tue Apr 15 17:54:58 2014 +0200 - - permissive mode (2) - -diff --git a/codec/decoder/core/src/decoder_core.cpp b/codec/decoder/core/src/decoder_core.cpp -index a14e971..e742dbf 100644 ---- a/codec/decoder/core/src/decoder_core.cpp -+++ b/codec/decoder/core/src/decoder_core.cpp -@@ -1738,8 +1738,8 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, int3 - if ((iLastIdD < 0) || //case 1: first layer - (iLastIdD == iCurrIdD)) { //case 2: same uiDId - InitDqLayerInfo (dq_cur, &pLayerInfo, pNalCur, pCtx->pDec); -- -- if (!dq_cur->sLayerInfo.pSps->bGapsInFrameNumValueAllowedFlag) { -+ if (0){ -+ //if (!dq_cur->sLayerInfo.pSps->bGapsInFrameNumValueAllowedFlag) { - const bool kbIdrFlag = dq_cur->sLayerInfo.sNalHeaderExt.bIdrFlag - || (dq_cur->sLayerInfo.sNalHeaderExt.sNalUnitHeader.eNalUnitType == NAL_UNIT_CODED_SLICE_IDR); - // Subclause 8.2.5.2 Decoding process for gaps in frame_num diff --git a/patches/x264_log2f_fix.patch b/patches/x264_log2f_fix.patch deleted file mode 100644 index e5d0647a0..000000000 --- a/patches/x264_log2f_fix.patch +++ /dev/null @@ -1,41 +0,0 @@ -diff -urN submodules/externals/x264/common/osdep.h.orig submodules/externals/x264/common/osdep.h ---- submodules/externals/x264/common/osdep.h.orig 2014-02-06 13:56:59.243663951 +0100 -+++ submodules/externals/x264/common/osdep.h 2014-02-06 13:57:17.215685078 +0100 -@@ -35,11 +35,6 @@ - - #include "config.h" - --#if !HAVE_LOG2F --#define log2f(x) (logf(x)/0.693147180559945f) --#define log2(x) (log(x)/0.693147180559945) --#endif -- - #ifdef _WIN32 - #include // _setmode() - #include // _O_BINARY -@@ -55,6 +60,11 @@ - #include - #endif - -+#if !HAVE_LOG2F -+#define log2f(x) (logf(x)/0.693147180559945f) -+#define log2(x) (log(x)/0.693147180559945) -+#endif -+ - #if (defined(__GNUC__) || defined(__INTEL_COMPILER)) && (ARCH_X86 || ARCH_X86_64) - #define HAVE_X86_INLINE_ASM 1 - #endif -diff -urN submodules/externals/x264/configure.orig submodules/externals/x264/configure ---- submodules/externals/x264/configure.orig 2014-02-06 13:56:59.231663937 +0100 -+++ submodules/externals/x264/configure 2014-02-06 13:57:17.219685083 +0100 -@@ -816,10 +816,6 @@ - fi - [ "$thread" != "no" ] && define HAVE_THREAD - --if cc_check "math.h" "-Werror" "return log2f(2);" ; then -- define HAVE_LOG2F --fi -- - if [ "$vis" = "yes" ] ; then - save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -I/usr/X11R6/include"