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)
34 ifeq ($(TARGET_ARCH),arm)
36 ifeq ($(NEON_BUILD),1)
37 LOCAL_ARM_NEON := true
57 # PD is currently not strict aliasing safe
58 LOCAL_CFLAGS += -fno-strict-aliasing
63 ARCH := $(TARGET_ARCH)
64 include $(R)platform/common/common.mak
66 LOCAL_SRC_FILES += $(SRCS_COMMON)
67 LOCAL_SRC_FILES += $(R)platform/libretro/libretro.c
68 LOCAL_SRC_FILES += $(R)platform/common/mp3.c
69 LOCAL_SRC_FILES += $(R)platform/common/mp3_dummy.c
72 LOCAL_SRC_FILES += $(R)zlib/gzio.c $(R)zlib/inffast.c $(R)zlib/inflate.c \
73 $(R)zlib/inftrees.c $(R)zlib/trees.c $(R)zlib/deflate.c \
74 $(R)zlib/crc32.c $(R)zlib/adler32.c $(R)zlib/zutil.c \
75 $(R)zlib/compress.c $(R)zlib/uncompr.c
77 LOCAL_SRC_FILES += $(R)unzip/unzip.c $(R)unzip/unzip_stream.c
79 LOCAL_C_INCLUDES += $(R)
81 # note: don't use -O3, causes some NDKs run out of memory while compiling FAME
82 LOCAL_CFLAGS += -Wall -O2 -ffast-math -DNDEBUG -DINLINE=inline
83 LOCAL_CFLAGS += $(addprefix -D,$(DEFINES))
86 include $(BUILD_SHARED_LIBRARY)