X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=jni%2FAndroid.mk;h=f94aba2ef410777065c354f4d9da6a32027aa62b;hb=805d357076689f67010e35dbef938c4d102188f3;hp=a59144ac428807cba194f0c2953c3d97ab16e4d7;hpb=2babf3518e258cc3d6649f6e34a267e83dffd7d9;p=picodrive.git diff --git a/jni/Android.mk b/jni/Android.mk index a59144a..f94aba2 100644 --- a/jni/Android.mk +++ b/jni/Android.mk @@ -2,6 +2,14 @@ LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) +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 := ../