Genesis-Plus-GX/libretro/jni/Android.mk

30 lines
1.0 KiB
Makefile
Raw Normal View History

2012-07-09 23:14:35 +02:00
LOCAL_PATH := $(call my-dir)
2018-08-18 03:38:52 +02:00
CORE_DIR := $(LOCAL_PATH)/../..
TREMOR_SRC_DIR := $(CORE_DIR)/core/tremor
2018-08-18 03:38:52 +02:00
SOURCES_C :=
WANT_CRC32 := 1
2018-08-18 03:38:52 +02:00
HAVE_CHD := 1
2018-08-18 03:38:52 +02:00
include $(CORE_DIR)/libretro/Makefile.common
2014-11-29 19:15:09 +01:00
2018-08-18 03:38:52 +02:00
COREFLAGS := -ffast-math -funroll-loops -DINLINE="static inline" -DUSE_LIBTREMOR -DUSE_16BPP_RENDERING -DLSB_FIRST -DBYTE_ORDER=LITTLE_ENDIAN -D__LIBRETRO__ -DFRONTEND_SUPPORTS_RGB565 -DALIGN_LONG -DALIGN_WORD -DM68K_OVERCLOCK_SHIFT=20 -DZ80_OVERCLOCK_SHIFT=20 -DUSE_LIBCHDR -DPACKAGE_VERSION=\"1.3.2\" -DFLAC_API_EXPORTS -DFLAC__HAS_OGG=0 -DHAVE_LROUND -DHAVE_STDINT_H -D_7ZIP_ST -DHAVE_SYS_PARAM_H $(INCFLAGS)
ifeq ($(TARGET_ARCH),arm)
2018-08-18 03:38:52 +02:00
COREFLAGS += -D_ARM_ASSEM_
endif
2018-08-18 03:38:52 +02:00
GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
ifneq ($(GIT_VERSION)," unknown")
COREFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif
2018-08-18 03:38:52 +02:00
include $(CLEAR_VARS)
LOCAL_MODULE := retro
LOCAL_SRC_FILES := $(SOURCES_C)
2018-08-18 03:38:52 +02:00
LOCAL_CFLAGS := $(COREFLAGS)
LOCAL_LDFLAGS := -Wl,-version-script=$(LIBRETRO_DIR)/link.T
LOCAL_ARM_MODE := arm
2012-07-09 23:14:35 +02:00
include $(BUILD_SHARED_LIBRARY)