X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=jni%2FAndroid.mk;h=f94aba2ef410777065c354f4d9da6a32027aa62b;hb=65678f6d7712ea60dc2dfeef64356f4f17699fbd;hp=cf96faa7d574832841ae7dc3ca290f91ff61bfb5;hpb=5345c2b9bc9b5f8a2d423482358e63af87b9219a;p=picodrive.git diff --git a/jni/Android.mk b/jni/Android.mk index cf96faa..f94aba2 100644 --- a/jni/Android.mk +++ b/jni/Android.mk @@ -2,12 +2,16 @@ LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) -ifeq ($(NEON_BUILD)$(TARGET_ARCH_ABI),1armeabi-v7a) - LOCAL_MODULE := retro_picodrive-neon -else - LOCAL_MODULE := retro_picodrive +GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)" +ifneq ($(GIT_VERSION)," unknown") + LOCAL_CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\" endif +#fix stupid change in ndk r11 that breaks compiling even when the exe would run fine +LOCAL_DISABLE_FATAL_LINKER_WARNINGS := true + +LOCAL_MODULE := retro + R := ../ FR := $(LOCAL_PATH)/$(R) @@ -74,7 +78,7 @@ LOCAL_SRC_FILES += $(R)unzip/unzip.c $(R)unzip/unzip_stream.c LOCAL_C_INCLUDES += $(R) # note: don't use -O3, causes some NDKs run out of memory while compiling FAME -LOCAL_CFLAGS += -Wall -O2 -ffast-math -DNDEBUG +LOCAL_CFLAGS += -Wall -O2 -ffast-math -DNDEBUG -DINLINE=inline LOCAL_CFLAGS += $(addprefix -D,$(DEFINES)) LOCAL_LDLIBS := -llog