mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-22 05:38:14 +00:00
Name ffmpeg and linphone shared libraries according to arch ABI.
This commit is contained in:
parent
ebb0699eec
commit
946bb08733
2 changed files with 17 additions and 5 deletions
|
|
@ -33,6 +33,7 @@ LOCAL_SHARED_LIBRARIES += \
|
|||
endif
|
||||
|
||||
LOCAL_MODULE := liblinphone
|
||||
LOCAL_MODULE_FILENAME := liblinphone-$(TARGET_ARCH_ABI)
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
||||
|
|
|
|||
|
|
@ -38,12 +38,23 @@ public class LinphoneCoreFactoryImpl extends LinphoneCoreFactory {
|
|||
}
|
||||
|
||||
static {
|
||||
System.loadLibrary("neon");
|
||||
String eabi = "arm";
|
||||
if (Version.isX86()) {
|
||||
eabi = "x86";
|
||||
} else if (Version.isArmv7()) {
|
||||
eabi = "armeabi-v7a";
|
||||
}
|
||||
|
||||
// FFMPEG (audio/video)
|
||||
loadOptionalLibrary("avutil-linphone");
|
||||
loadOptionalLibrary("swscale-linphone");
|
||||
loadOptionalLibrary("avcodec-linphone");
|
||||
if (Version.isX86()) {
|
||||
loadOptionalLibrary("avutil-linphone-x86");
|
||||
loadOptionalLibrary("swscale-linphone-x86");
|
||||
loadOptionalLibrary("avcodec-linphone-x86");
|
||||
} else if (Version.isArmv7()) {
|
||||
loadOptionalLibrary("avutil-linphone-arm");
|
||||
loadOptionalLibrary("swscale-linphone-arm");
|
||||
loadOptionalLibrary("avcodec-linphone-arm");
|
||||
}
|
||||
|
||||
// OPENSSL (cryptography)
|
||||
// lin prefix avoids collision with libs in /system/lib
|
||||
|
|
@ -61,7 +72,7 @@ public class LinphoneCoreFactoryImpl extends LinphoneCoreFactory {
|
|||
loadOptionalLibrary("bcg729");
|
||||
|
||||
//Main library
|
||||
System.loadLibrary("linphone");
|
||||
System.loadLibrary("linphone-" + eabi);
|
||||
|
||||
Version.dumpCapabilities();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue