propagate android build changes to liblinphone_tester
This commit is contained in:
parent
22b0a59bf3
commit
342f1a7ee1
3 changed files with 16 additions and 20 deletions
|
@ -4,4 +4,4 @@ APP_PROJECT_PATH := $(LOCAL_PATH)/../
|
|||
APP_BUILD_SCRIPT := $(LOCAL_PATH)/Android.mk
|
||||
APP_OPTIM := debug
|
||||
|
||||
APP_MODULES += cunit liblinphone_tester liblinphone_testernoneon
|
||||
APP_MODULES += cunit liblinphone_tester
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
package org.linphone.tester;
|
||||
|
||||
import org.linphone.core.LinphoneCoreFactory;
|
||||
|
||||
import org.linphone.mediastream.Version;
|
||||
|
||||
import android.util.Log;
|
||||
|
@ -24,27 +23,24 @@ public class Tester {
|
|||
}
|
||||
|
||||
static {
|
||||
|
||||
|
||||
LinphoneCoreFactory.instance();
|
||||
|
||||
System.loadLibrary("cunit");
|
||||
|
||||
//Main library
|
||||
if (!hasNeonInCpuFeatures()) {
|
||||
try {
|
||||
if (!isArmv7() && !Version.isX86()) {
|
||||
System.loadLibrary("linphone_testerarmv5");
|
||||
} else {
|
||||
System.loadLibrary("linphone_testernoneon");
|
||||
}
|
||||
} catch (UnsatisfiedLinkError ule) {
|
||||
Log.w("linphone", "Failed to load no-neon liblinphone_tester, loading neon liblinphone_tester");
|
||||
System.loadLibrary("linphone_tester");
|
||||
}
|
||||
} else {
|
||||
System.loadLibrary("linphone_tester");
|
||||
String eabi = "armeabi";
|
||||
if (Version.isX86()) {
|
||||
eabi = "x86";
|
||||
} else if (Version.isArmv7()) {
|
||||
eabi = "armeabi-v7a";
|
||||
}
|
||||
|
||||
try {
|
||||
System.loadLibrary("linphone_tester-"+eabi);
|
||||
|
||||
} catch (UnsatisfiedLinkError ule) {
|
||||
Log.w("linphone", "Failed to load liblinphone_tester-"+eabi);
|
||||
System.loadLibrary("linphone_tester");
|
||||
}
|
||||
|
||||
Version.dumpCapabilities();
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 11187a8c2feec57637eb113b3ed820a35e8e6bfb
|
||||
Subproject commit 5a92742e56ade67b79400246a7f13b238960745f
|
Loading…
Reference in a new issue