libretro, build fixes for android

This commit is contained in:
kub 2020-07-16 19:29:34 +02:00
parent 368c918050
commit 713e3a1c5b
9 changed files with 81 additions and 72 deletions

View file

@ -18,7 +18,6 @@ use_musashi = 0
use_drz80 = 0
use_cz80 = 0
use_sh2drc = 0
use_sh2mame = 0
use_svpdrc = 0
asm_memory = 0
@ -27,6 +26,8 @@ asm_ym2612 = 0
asm_misc = 0
asm_cdmemory = 0
asm_mix = 0
asm_32xdraw = 0
asm_32xmemory = 0
ifeq ($(TARGET_ARCH),arm)
LOCAL_ARM_MODE := arm
@ -34,21 +35,19 @@ ifeq ($(TARGET_ARCH),arm)
LOCAL_ARM_NEON := true
endif
use_cyclone = 1
# texrels, -perf ~~8%
use_drz80 = 0
use_cz80 = 1
# use_cyclone = 1
# use_drz80 = 1
use_sh2drc = 1
use_svpdrc = 1
# use_svpdrc = 1
# asm_memory = 1 # texrels, -perf negligible
asm_render = 1
# asm_ym2612 = 1 # texrels, -perf ~~4%
asm_misc = 1
# asm_cdmemory = 1 # texrels
asm_mix = 1
# asm_memory = 1
# asm_render = 1
# asm_ym2612 = 1
# asm_misc = 1
# asm_cdmemory = 1
# asm_mix = 1
# asm_32xdraw = 1
# asm_32xmemory = 1
# for armeabi to build...
CYCLONE_CONFIG = cyclone_config_armv4.h
@ -59,7 +58,6 @@ $(cleantarget)::
else
use_fame = 1
use_cz80 = 1
use_sh2mame = 1
endif
# PD is currently not strict aliasing safe
@ -73,6 +71,7 @@ include $(R)platform/common/common.mak
LOCAL_SRC_FILES += $(SRCS_COMMON)
LOCAL_SRC_FILES += $(R)platform/libretro/libretro.c
LOCAL_SRC_FILES += $(R)platform/common/mp3_sync.c
LOCAL_SRC_FILES += $(R)platform/common/mp3.c
LOCAL_SRC_FILES += $(R)platform/common/mp3_dummy.c
@ -91,4 +90,12 @@ LOCAL_CFLAGS += -Wall -O2 -ffast-math -DNDEBUG
LOCAL_CFLAGS += $(addprefix -D,$(DEFINES))
LOCAL_LDLIBS := -llog
ifneq ($(filter armeabi%, $(TARGET_ARCH_ABI)),)
$(CORE_DIR)/pico/pico_int_offs.h:
cp $(CORE_DIR)/tools/offsets/generic-ilp32-offsets.h $@
.PHONY: $(CORE_DIR)/pico/pico_int_offs.h
$(filter %.S,$(SRCS_COMMON)): $(CORE_DIR)/pico/pico_int_offs.h
endif
include $(BUILD_SHARED_LIBRARY)