diff options
author | Gregor Richards | 2016-12-09 19:56:33 -0500 |
---|---|---|
committer | Gregor Richards | 2016-12-09 19:56:33 -0500 |
commit | 8fc5171a4c53b6f0e7ef7247d36ee5e05eaf0a07 (patch) | |
tree | 1c711b85837e96914b692778376f7cf2dc51927f /jni/Android.mk | |
parent | 6a0ea0daa46d27def21f39fcae216a7e8f2abdf3 (diff) | |
download | pcsx_rearmed-8fc5171a4c53b6f0e7ef7247d36ee5e05eaf0a07.tar.gz pcsx_rearmed-8fc5171a4c53b6f0e7ef7247d36ee5e05eaf0a07.tar.bz2 pcsx_rearmed-8fc5171a4c53b6f0e7ef7247d36ee5e05eaf0a07.zip |
Report git version with library_version
Diffstat (limited to 'jni/Android.mk')
-rw-r--r-- | jni/Android.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/jni/Android.mk b/jni/Android.mk index 43a98da..9dd9e39 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 + APP_DIR := ../../src #fix stupid change in ndk r11 that breaks compiling even when the exe would run fine |