diff options
Diffstat (limited to 'jni')
-rw-r--r-- | jni/Android.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jni/Android.mk b/jni/Android.mk index 68b2017..b890e2f 100644 --- a/jni/Android.mk +++ b/jni/Android.mk @@ -1,4 +1,8 @@ LOCAL_PATH := $(call my-dir) +GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)" +ifneq ($(GIT_VERSION)," unknown") + LOCAL_CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\" +endif include $(CLEAR_VARS) |