1 LOCAL_PATH := $(call my-dir)
5 #fix stupid change in ndk r11 that breaks compiling even when the exe would run fine
6 LOCAL_DISABLE_FATAL_LINKER_WARNINGS := true
11 FR := $(LOCAL_PATH)/$(R)
30 ifeq ($(TARGET_ARCH),arm)
32 ifeq ($(NEON_BUILD),1)
33 LOCAL_ARM_NEON := true
57 ARCH := $(TARGET_ARCH)
58 include $(R)platform/common/common.mak
60 LOCAL_SRC_FILES += $(SRCS_COMMON)
61 LOCAL_SRC_FILES += $(R)platform/libretro/libretro.c
62 LOCAL_SRC_FILES += $(R)platform/common/mp3.c
63 LOCAL_SRC_FILES += $(R)platform/common/mp3_dummy.c
66 LOCAL_SRC_FILES += $(R)zlib/gzio.c $(R)zlib/inffast.c $(R)zlib/inflate.c \
67 $(R)zlib/inftrees.c $(R)zlib/trees.c $(R)zlib/deflate.c \
68 $(R)zlib/crc32.c $(R)zlib/adler32.c $(R)zlib/zutil.c \
69 $(R)zlib/compress.c $(R)zlib/uncompr.c
71 LOCAL_SRC_FILES += $(R)unzip/unzip.c $(R)unzip/unzip_stream.c
73 LOCAL_C_INCLUDES += $(R)
75 # note: don't use -O3, causes some NDKs run out of memory while compiling FAME
76 LOCAL_CFLAGS += -Wall -O2 -ffast-math -DNDEBUG -DINLINE=inline
77 LOCAL_CFLAGS += $(addprefix -D,$(DEFINES))
80 include $(BUILD_SHARED_LIBRARY)