Unverified Commit d856a29a authored by Andrés's avatar Andrés Committed by GitHub
Browse files

Merge pull request #37 from webgeek1234/master

Refactor android jni makefiles
parents 3ad7ded5 ed464c1a
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
CORE_DIR := $(LOCAL_PATH)/..
EMULIB := $(CORE_DIR)/EMULib
FMSXDIR := $(CORE_DIR)/fMSX
LIBZ80 := $(CORE_DIR)/Z80
include $(CORE_DIR)/Makefile.common
COREFLAGS := -std=gnu99 -ffast-math -D__LIBRETRO__ $(COREDEFINES) -DFRONTEND_SUPPORTS_RGB565 $(INCFLAGS)
GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
ifneq ($(GIT_VERSION)," unknown")
LOCAL_CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
COREFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif
CORE_DIR := ../..
LIBRETRO_DIR := ..
include $(CLEAR_VARS)
LOCAL_MODULE := retro
ifeq ($(TARGET_ARCH),arm)
LOCAL_CFLAGS += -DANDROID_ARM
LOCAL_ARM_MODE := arm
endif
ifeq ($(TARGET_ARCH),x86)
LOCAL_CFLAGS += -DANDROID_X86
endif
ifeq ($(TARGET_ARCH),mips)
LOCAL_CFLAGS += -DANDROID_MIPS -D__mips__ -D__MIPSEL__
endif
CORE_DIR = ..
EMULIB = $(CORE_DIR)/EMULib
FMSXDIR = $(CORE_DIR)/fMSX
LIBZ80 = $(CORE_DIR)/Z80
include $(CORE_DIR)/Makefile.common
LOCAL_SRC_FILES += $(SOURCES_C)
LOCAL_CFLAGS += -O2 -std=gnu99 -ffast-math -D__LIBRETRO__ -DUNIX -DFMSX -DBPS16 -DBPP16 -DFRONTEND_SUPPORTS_RGB565 -DNDEBUG=1 $(INCFLAGS)
LOCAL_SRC_FILES := $(SOURCES_C)
LOCAL_CFLAGS := $(COREFLAGS)
LOCAL_LDFLAGS := -Wl,-version-script=$(CORE_DIR)/link.T
include $(BUILD_SHARED_LIBRARY)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment