Commit 677f1874 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Update ffmpeg.

parent 4c34a2c7
##
## Android.mk -Android build script-
##
##
## Copyright (C) 2010 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.
##
LOCAL_PATH:= $(call my-dir)/../../coreapi
include $(CLEAR_VARS)
ifeq ($(TARGET_ARCH), arm)
include $(linphone-root-dir)/submodules/linphone/build/android/common.mk
ifeq ($(_BUILD_VIDEO),1)
LOCAL_SHARED_LIBRARIES += \
liblinavcodecnoneon \
liblinswscale \
liblinavcore \
liblinavutil
endif
endif
LOCAL_MODULE := liblinphonenoneon
ifeq ($(TARGET_ARCH_ABI),armeabi)
LOCAL_MODULE_FILENAME := liblinphonearmv5noneon
endif
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
LOCAL_MODULE_FILENAME := liblinphonearmv7noneon
endif
include $(BUILD_SHARED_LIBRARY)
$(call import-module,android/cpufeatures)
......@@ -27,19 +27,12 @@ include $(linphone-root-dir)/submodules/linphone/build/android/common.mk
ifeq ($(_BUILD_VIDEO),1)
LOCAL_SHARED_LIBRARIES += \
liblinavcodec \
liblinswscale \
liblinavcore \
liblinavutil
libavcodec-linphone \
libswscale-linphone \
libavutil-linphone
endif
LOCAL_MODULE := liblinphone
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
LOCAL_MODULE_FILENAME := liblinphonearmv7
endif
ifeq ($(TARGET_ARCH_ABI),x86)
LOCAL_MODULE_FILENAME := liblinphonex86
endif
include $(BUILD_SHARED_LIBRARY)
......
......@@ -39,22 +39,13 @@ public class LinphoneCoreFactoryImpl extends LinphoneCoreFactory {
}
static {
System.loadLibrary("neon");
// FFMPEG (audio/video)
loadOptionalLibrary("linavutil");
loadOptionalLibrary("linswscale");
loadOptionalLibrary("linavcore");
loadOptionalLibrary("avutil-linphone");
loadOptionalLibrary("swscale-linphone");
loadOptionalLibrary("avcodec-linphone");
System.loadLibrary("neon");
if (!hasNeonInCpuFeatures()) {
boolean noNeonLibrariesLoaded = loadOptionalLibrary("linavcodecnoneon");
if (!noNeonLibrariesLoaded) {
loadOptionalLibrary("linavcodec");
}
} else {
loadOptionalLibrary("linavcodec");
}
// OPENSSL (cryptography)
// lin prefix avoids collision with libs in /system/lib
loadOptionalLibrary("lincrypto");
......@@ -71,21 +62,7 @@ public class LinphoneCoreFactoryImpl extends LinphoneCoreFactory {
loadOptionalLibrary("bcg729");
//Main library
if (isArmv7()) {
if (hasNeonInCpuFeatures()) {
Log.d("linphone", "armv7 liblinphone loaded");
System.loadLibrary("linphonearmv7");
} else {
Log.w("linphone", "No-neon armv7 liblinphone loaded");
System.loadLibrary("linphonearmv7noneon");
}
} else if (Version.isX86()) {
Log.d("linphone", "No-neon x86 liblinphone loaded");
System.loadLibrary("linphonex86");
} else {
Log.d("linphone", "No-neon armv5 liblinphone loaded");
System.loadLibrary("linphonearmv5noneon");
}
System.loadLibrary("linphone");
Version.dumpCapabilities();
}
......
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