1 LOCAL_PATH := $(call my-dir)
5 GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
6 ifneq ($(GIT_VERSION)," unknown")
7 LOCAL_CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
10 #fix stupid change in ndk r11 that breaks compiling even when the exe would run fine
11 LOCAL_DISABLE_FATAL_LINKER_WARNINGS := true
16 FR := $(LOCAL_PATH)/$(R)
35 ifeq ($(TARGET_ARCH),arm)
37 ifeq ($(NEON_BUILD),1)
38 LOCAL_ARM_NEON := true
62 ARCH := $(TARGET_ARCH)
63 include $(R)platform/common/common.mak
65 LOCAL_SRC_FILES += $(SRCS_COMMON)
66 LOCAL_SRC_FILES += $(R)platform/libretro/libretro.c
67 LOCAL_SRC_FILES += $(R)platform/common/mp3.c
68 LOCAL_SRC_FILES += $(R)platform/common/mp3_dummy.c
71 LOCAL_SRC_FILES += $(R)zlib/gzio.c $(R)zlib/inffast.c $(R)zlib/inflate.c \
72 $(R)zlib/inftrees.c $(R)zlib/trees.c $(R)zlib/deflate.c \
73 $(R)zlib/crc32.c $(R)zlib/adler32.c $(R)zlib/zutil.c \
74 $(R)zlib/compress.c $(R)zlib/uncompr.c
76 LOCAL_SRC_FILES += $(R)unzip/unzip.c $(R)unzip/unzip_stream.c
78 LOCAL_C_INCLUDES += $(R)
80 # note: don't use -O3, causes some NDKs run out of memory while compiling FAME
81 LOCAL_CFLAGS += -Wall -O2 -ffast-math -DNDEBUG -DINLINE=inline
82 LOCAL_CFLAGS += $(addprefix -D,$(DEFINES))
85 include $(BUILD_SHARED_LIBRARY)