[Android] Add fpu flags to build

This commit is contained in:
zilmar 2016-10-03 08:47:11 +11:00
parent fd69ab6b18
commit 081d6c7853
3 changed files with 28 additions and 8 deletions

View File

@ -72,4 +72,11 @@ LOCAL_LDLIBS := \
-lGLESv2 \
-llog \
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
# Use for ARM7a:
LOCAL_CFLAGS += -mfpu=vfp
LOCAL_CFLAGS += -mfloat-abi=softfp
endif
include $(BUILD_SHARED_LIBRARY)

View File

@ -29,4 +29,11 @@ LOCAL_CPPFLAGS := $(COMMON_CPPFLAGS)
LOCAL_LDLIBS := \
-llog \
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
# Use for ARM7a:
LOCAL_CFLAGS += -mfloat-abi=softfp
LOCAL_CFLAGS += -mfpu=vfp
endif
include $(BUILD_SHARED_LIBRARY)

View File

@ -6,11 +6,13 @@ LOCAL_PATH := $(JNI_LOCAL_PATH)
SRCDIR := ./Project64-core
LOCAL_MODULE := Project64-core
LOCAL_ARM_MODE := arm
LOCAL_STATIC_LIBRARIES := common \
zlib \
LOCAL_C_INCLUDES := ../ \
../3rdParty/ \
LOCAL_SRC_FILES := \
$(SRCDIR)/AppInit.cpp \
@ -95,15 +97,19 @@ LOCAL_SRC_FILES := \
$(SRCDIR)/Settings/GameSettings.cpp \
$(SRCDIR)/Settings/N64SystemSettings.cpp \
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
# Use for ARM7a:
LOCAL_SRC_FILES += $(SRCDIR)/N64System/Recompiler/Arm/asm_functions.S
else ifeq ($(TARGET_ARCH_ABI), armeabi)
# Use for ARM7a:
LOCAL_SRC_FILES += $(SRCDIR)/N64System/Recompiler/Arm/asm_functions.S
endif
LOCAL_CFLAGS := $(COMMON_CFLAGS)
LOCAL_CPPFLAGS := $(COMMON_CPPFLAGS)
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
# Use for ARM7a:
LOCAL_SRC_FILES += $(SRCDIR)/N64System/Recompiler/Arm/asm_functions.S
LOCAL_CFLAGS += -mfloat-abi=softfp
LOCAL_CFLAGS += -mfpu=vfp
else ifeq ($(TARGET_ARCH_ABI), armeabi)
# Use for ARM7a:
LOCAL_SRC_FILES += $(SRCDIR)/N64System/Recompiler/Arm/asm_functions.S
endif
include $(BUILD_STATIC_LIBRARY)