Drop parameter annotations since we do not need them.
[SquirrelJME.git] / ratufacoat / libretro / jni / Android.mk
blobe0b1de9f92e908fa5185875dda61563537c683d8
1 LOCAL_PATH := $(call my-dir)
3 CORE_DIR := $(LOCAL_PATH)/../..
5 GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
7 platform = android_jni
9 # Palm OS 5 support
10 ifeq ($(TARGET_ARCH_ABI), x86)
11 EMU_ARCH := x86_32
12 else ifeq ($(TARGET_ARCH_ABI), x86_64)
13 EMU_ARCH := x86_64
14 else ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
15 EMU_ARCH := armv7
16 else ifeq ($(TARGET_ARCH_ABI), arm64-v8a)
17 EMU_ARCH := armv8
18 else
19 EMU_ARCH := unknown
20 endif
22 include $(CORE_DIR)/libretro/Makefile.common
24 COREFLAGS := -ffast-math -funroll-loops -D__LIBRETRO__ -DINLINE=inline $(INCFLAGS) $(COREDEFINES)
26 ifneq ($(GIT_VERSION), " unknown")
27 COREFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
28 endif
30 include $(CLEAR_VARS)
31 LOCAL_MODULE := retro
32 LOCAL_SRC_FILES := $(SOURCES_C) $(SOURCES_CXX) $(SOURCES_ASM)
33 LOCAL_CFLAGS := $(COREFLAGS)
34 LOCAL_LDFLAGS := -Wl,-version-script=$(CORE_DIR)/libretro/link.T
36 ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
37 LOCAL_ARM_NEON := true
38 endif
40 include $(BUILD_SHARED_LIBRARY)