gpsp/jni/Android.mk

44 lines
838 B
Makefile
Raw Normal View History

2014-12-10 04:54:32 +01:00
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := retro
2014-12-10 15:21:49 +01:00
CPU_ARCH :=
2014-12-10 04:54:32 +01:00
ifeq ($(TARGET_ARCH),arm)
LOCAL_CFLAGS += -DANDROID_ARM -DARM_ARCH -DARM_MEMORY_DYNAREC
2014-12-10 04:54:32 +01:00
LOCAL_ARM_MODE := arm
2014-12-10 15:21:49 +01:00
CPU_ARCH := arm
2014-12-10 17:06:09 +01:00
HAVE_DYNAREC := 1
2014-12-10 04:54:32 +01:00
endif
2014-12-10 15:21:49 +01:00
ifeq ($(TARGET_ARCH),x86)
LOCAL_CFLAGS += -DANDROID_X86 -DHAVE_MMAP
2014-12-10 15:21:49 +01:00
CPU_ARCH := x86_32
2014-12-10 17:06:09 +01:00
HAVE_DYNAREC := 1
2014-12-10 15:21:49 +01:00
endif
2014-12-10 04:54:32 +01:00
#ifeq ($(TARGET_ARCH),mips)
#LOCAL_CFLAGS += -DANDROID_MIPS -D__mips__ -D__MIPSEL__
#endif
CORE_DIR := ..
2014-12-10 04:56:50 +01:00
SOURCES_C :=
SOURCES_ASM :=
ifeq ($(HAVE_DYNAREC),1)
LOCAL_CFLAGS += -DHAVE_DYNAREC
endif
ifeq ($(CPU_ARCH),arm)
LOCAL_CFLAGS += -DARM_ARCH
endif
2014-12-10 04:54:32 +01:00
2014-12-10 05:46:03 +01:00
include $(CORE_DIR)/Makefile.common
2014-12-10 04:56:50 +01:00
LOCAL_SRC_FILES := $(SOURCES_C) $(SOURCES_ASM)
2014-12-10 21:12:45 +01:00
LOCAL_CFLAGS += -O2 -DNDEBUG -DINLINE=inline -D__LIBRETRO__ -DFRONTEND_SUPPORTS_RGB565 $(INCFLAGS)
2014-12-10 04:54:32 +01:00
include $(BUILD_SHARED_LIBRARY)