mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-22 21:09:52 +00:00
Delete obsolete checks for pre-v7a armeabi
This commit is contained in:
parent
7e952ab795
commit
a0e9017c77
@ -546,8 +546,6 @@ std::string CPUInfo::Summarize() {
|
||||
const char *GetCompilerABI() {
|
||||
#if PPSSPP_ARCH(ARMV7)
|
||||
return "armeabi-v7a";
|
||||
#elif PPSSPP_ARCH(ARM)
|
||||
return "armeabi";
|
||||
#elif PPSSPP_ARCH(ARM64)
|
||||
return "arm64";
|
||||
#elif PPSSPP_ARCH(X86)
|
||||
|
@ -47,16 +47,6 @@ ifeq ($(findstring armeabi-v7a,$(TARGET_ARCH_ABI)),armeabi-v7a)
|
||||
|
||||
LOCAL_CFLAGS := $(LOCAL_CFLAGS) -D_ARCH_32
|
||||
endif
|
||||
ifeq ($(TARGET_ARCH_ABI),armeabi)
|
||||
LOCAL_LDLIBS += $(LOCAL_PATH)/../../ffmpeg/android/armv6/lib/libavformat.a
|
||||
LOCAL_LDLIBS += $(LOCAL_PATH)/../../ffmpeg/android/armv6/lib/libavcodec.a
|
||||
LOCAL_LDLIBS += $(LOCAL_PATH)/../../ffmpeg/android/armv6/lib/libswresample.a
|
||||
LOCAL_LDLIBS += $(LOCAL_PATH)/../../ffmpeg/android/armv6/lib/libswscale.a
|
||||
LOCAL_LDLIBS += $(LOCAL_PATH)/../../ffmpeg/android/armv6/lib/libavutil.a
|
||||
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../ffmpeg/android/armv6/include
|
||||
|
||||
LOCAL_CFLAGS := $(LOCAL_CFLAGS) -D_ARCH_32 -march=armv6
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET_ARCH_ABI),x86_64)
|
||||
LOCAL_LDLIBS += $(LOCAL_PATH)/../../ffmpeg/android/x86_64/lib/libavformat.a
|
||||
|
@ -29,7 +29,6 @@ public class PpssppActivity extends NativeActivity {
|
||||
// Key used for debugging.
|
||||
public static final String ARGS_EXTRA_KEY = "org.ppsspp.ppsspp.Args";
|
||||
|
||||
private static boolean m_hasUnsupportedABI = false;
|
||||
private static boolean m_hasNoNativeBinary = false;
|
||||
|
||||
public static boolean libraryLoaded = false;
|
||||
@ -42,16 +41,12 @@ public class PpssppActivity extends NativeActivity {
|
||||
private static final int STORAGE_ERROR_ALREADY_EXISTS = -4;
|
||||
|
||||
public static void CheckABIAndLoadLibrary() {
|
||||
if (Build.CPU_ABI.equals("armeabi")) {
|
||||
m_hasUnsupportedABI = true;
|
||||
} else {
|
||||
try {
|
||||
System.loadLibrary("ppsspp_jni");
|
||||
libraryLoaded = true;
|
||||
} catch (UnsatisfiedLinkError e) {
|
||||
Log.e(TAG, "LoadLibrary failed, UnsatifiedLinkError: " + e);
|
||||
m_hasNoNativeBinary = true;
|
||||
}
|
||||
try {
|
||||
System.loadLibrary("ppsspp_jni");
|
||||
libraryLoaded = true;
|
||||
} catch (UnsatisfiedLinkError e) {
|
||||
Log.e(TAG, "LoadLibrary failed, UnsatifiedLinkError: " + e);
|
||||
m_hasNoNativeBinary = true;
|
||||
}
|
||||
}
|
||||
|
||||
@ -65,17 +60,13 @@ public class PpssppActivity extends NativeActivity {
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
if (m_hasUnsupportedABI || m_hasNoNativeBinary) {
|
||||
if (m_hasNoNativeBinary) {
|
||||
new Thread() {
|
||||
@Override
|
||||
public void run() {
|
||||
Looper.prepare();
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(PpssppActivity.this);
|
||||
if (m_hasUnsupportedABI) {
|
||||
builder.setMessage(Build.CPU_ABI + " target is not supported.").setTitle("Error starting PPSSPP").create().show();
|
||||
} else {
|
||||
builder.setMessage("The native part of PPSSPP for ABI " + Build.CPU_ABI + " is missing. Try downloading an official build?").setTitle("Error starting PPSSPP").create().show();
|
||||
}
|
||||
builder.setMessage("The native part of PPSSPP for ABI " + Build.CPU_ABI + " is missing. Try downloading an official build?").setTitle("Error starting PPSSPP").create().show();
|
||||
Looper.loop();
|
||||
}
|
||||
}.start();
|
||||
|
@ -30,8 +30,6 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. $(LOCAL_PATH)/../miniupnp/miniupnpc/src $(L
|
||||
|
||||
ifeq ($(findstring armeabi-v7a,$(TARGET_ARCH_ABI)),armeabi-v7a)
|
||||
LOCAL_CFLAGS := $(LOCAL_CFLAGS)
|
||||
else ifeq ($(TARGET_ARCH_ABI),armeabi)
|
||||
LOCAL_CFLAGS := $(LOCAL_CFLAGS) -march=armv6
|
||||
else ifeq ($(TARGET_ARCH_ABI),x86)
|
||||
LOCAL_CFLAGS := $(LOCAL_CFLAGS) -D_M_IX86
|
||||
else ifeq ($(TARGET_ARCH_ABI),x86_64)
|
||||
|
Loading…
Reference in New Issue
Block a user