mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-09-10 16:53:15 +02:00
(Android) Define ARM mode for ARM targets - define ALIGN_WORD and
ALIGN_LONG to prevent crashes
This commit is contained in:
parent
2ce92e459a
commit
c0eae9a4dc
@ -6,6 +6,12 @@ GENPLUS_SRC_DIR := ../../source
|
|||||||
LIBRETRO_DIR := ../
|
LIBRETRO_DIR := ../
|
||||||
|
|
||||||
LOCAL_MODULE := retro
|
LOCAL_MODULE := retro
|
||||||
|
|
||||||
|
ifeq ($(TARGET_ARCH),arm)
|
||||||
|
LOCAL_CFLAGS += -DANDROID_ARM
|
||||||
|
LOCAL_ARM_MODE := arm
|
||||||
|
endif
|
||||||
|
|
||||||
LOCAL_SRC_FILES := $(GENPLUS_SRC_DIR)/genesis.c \
|
LOCAL_SRC_FILES := $(GENPLUS_SRC_DIR)/genesis.c \
|
||||||
$(GENPLUS_SRC_DIR)/vdp_ctrl.c \
|
$(GENPLUS_SRC_DIR)/vdp_ctrl.c \
|
||||||
$(GENPLUS_SRC_DIR)/vdp_render.c \
|
$(GENPLUS_SRC_DIR)/vdp_render.c \
|
||||||
@ -67,6 +73,6 @@ LOCAL_C_INCLUDES = $(LOCAL_PATH)/$(GENPLUS_SRC_DIR) \
|
|||||||
$(LOCAL_PATH)/$(GENPLUS_SRC_DIR)/ntsc \
|
$(LOCAL_PATH)/$(GENPLUS_SRC_DIR)/ntsc \
|
||||||
$(LOCAL_PATH)/$(LIBRETRO_DIR)
|
$(LOCAL_PATH)/$(LIBRETRO_DIR)
|
||||||
|
|
||||||
LOCAL_CFLAGS = -ffast-math -O3 -funroll-loops -DINLINE="static inline" -DUSE_16BPP_RENDERING -DLSB_FIRST -D__LIBRETRO__ -DFRONTEND_SUPPORTS_RGB565
|
LOCAL_CFLAGS = -ffast-math -O3 -funroll-loops -DINLINE="static inline" -DUSE_16BPP_RENDERING -DLSB_FIRST -D__LIBRETRO__ -DFRONTEND_SUPPORTS_RGB565 -DALIGN_LONG -DALIGN_WORD
|
||||||
|
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
include $(BUILD_SHARED_LIBRARY)
|
||||||
|
Loading…
Reference in New Issue
Block a user