X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=jni%2FAndroid.mk;h=05b2a37cf4411bd1791d83fd4f153f1e783a5cb1;hb=75bf03886e4acb87bd7922d42d828f56c5dbe4bb;hp=60d6f7de12a60d5930dd57545f042cb68b5b7eff;hpb=4346a841ff9ea69713d65ce95963f6d3ef3b15dc;p=picodrive.git diff --git a/jni/Android.mk b/jni/Android.mk index 60d6f7d..05b2a37 100644 --- a/jni/Android.mk +++ b/jni/Android.mk @@ -2,6 +2,11 @@ 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 @@ -51,6 +56,9 @@ else use_sh2mame = 1 endif +# PD is currently not strict aliasing safe +LOCAL_CFLAGS += -fno-strict-aliasing + # sources SRCS_COMMON := DEFINES := @@ -68,7 +76,7 @@ LOCAL_SRC_FILES += $(R)zlib/gzio.c $(R)zlib/inffast.c $(R)zlib/inflate.c \ $(R)zlib/crc32.c $(R)zlib/adler32.c $(R)zlib/zutil.c \ $(R)zlib/compress.c $(R)zlib/uncompr.c -LOCAL_SRC_FILES += $(R)unzip/unzip.c $(R)unzip/unzip_stream.c +LOCAL_SRC_FILES += $(R)unzip/unzip.c LOCAL_C_INCLUDES += $(R)