2012-07-09 23:14:35 +02:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2017-01-20 01:35:21 +01:00
|
|
|
GIT_VERSION ?= " $(shell git rev-parse --short HEAD || echo unknown)"
|
2016-12-10 00:07:12 +01:00
|
|
|
ifneq ($(GIT_VERSION)," unknown")
|
|
|
|
LOCAL_CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
|
|
|
|
endif
|
|
|
|
|
2014-11-02 04:36:00 +01:00
|
|
|
WANT_CRC32 := 1
|
2017-11-28 03:15:14 +01:00
|
|
|
HAVE_CHD := 1
|
2014-11-02 04:36:00 +01:00
|
|
|
|
2014-11-29 19:15:09 +01:00
|
|
|
CORE_DIR := ../..
|
|
|
|
|
|
|
|
TREMOR_SRC_DIR := $(CORE_DIR)/core/tremor
|
2014-11-02 04:36:00 +01:00
|
|
|
LIBRETRO_DIR := ..
|
2012-07-09 23:14:35 +02:00
|
|
|
|
2012-09-10 04:46:54 +02:00
|
|
|
LOCAL_MODULE := retro
|
2012-12-02 17:37:12 +01:00
|
|
|
|
|
|
|
ifeq ($(TARGET_ARCH),arm)
|
2016-01-02 13:06:34 +01:00
|
|
|
LOCAL_CFLAGS += -DANDROID_ARM -D_ARM_ASSEM_
|
2012-12-02 17:37:12 +01:00
|
|
|
LOCAL_ARM_MODE := arm
|
|
|
|
endif
|
|
|
|
|
2014-11-29 19:15:09 +01:00
|
|
|
include $(LIBRETRO_DIR)/Makefile.common
|
2014-11-02 04:36:00 +01:00
|
|
|
|
|
|
|
LOCAL_SRC_FILES := $(SOURCES_C)
|
2012-07-09 23:14:35 +02:00
|
|
|
|
2014-11-29 19:15:09 +01:00
|
|
|
LOCAL_C_INCLUDES = $(foreach dir,$(GENPLUS_SRC_DIR),$(LOCAL_PATH)/$(dir)) \
|
2017-09-06 18:59:04 +02:00
|
|
|
$(CORE_DIR)/libretro/libretro-common/include \
|
2014-10-29 00:29:48 +01:00
|
|
|
$(LOCAL_PATH)/$(TREMOR_SRC_DIR) \
|
2017-11-28 03:15:14 +01:00
|
|
|
$(LOCAL_PATH)/$(LIBRETRO_DIR) \
|
|
|
|
$(CHDLIBDIR)/src \
|
|
|
|
$(CHDLIBDIR)/deps/libFLAC/include \
|
|
|
|
$(CHDLIBDIR)/deps/lzma \
|
|
|
|
$(CHDLIBDIR)/deps/zlib
|
2012-07-09 23:14:35 +02:00
|
|
|
|
2017-11-28 03:15:14 +01:00
|
|
|
LOCAL_CFLAGS += -ffast-math -O2 -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
|
2012-09-10 04:46:54 +02:00
|
|
|
|
2012-07-09 23:14:35 +02:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|