summaryrefslogtreecommitdiff
path: root/jni
diff options
context:
space:
mode:
authorGregor Richards2016-12-09 18:42:12 -0500
committerGregor Richards2016-12-09 18:42:12 -0500
commit415b5ba67bd7f07dcb87d4841da69b0c3254e5c0 (patch)
tree75960394a4425afd1730304175197b8bd22897c7 /jni
parent4d860aeb3d0c2d2c8c4f0dee9d295f80dbc2033e (diff)
downloadpicogpsp-415b5ba67bd7f07dcb87d4841da69b0c3254e5c0.tar.gz
picogpsp-415b5ba67bd7f07dcb87d4841da69b0c3254e5c0.tar.bz2
picogpsp-415b5ba67bd7f07dcb87d4841da69b0c3254e5c0.zip
Report git version with library_version
Diffstat (limited to 'jni')
-rw-r--r--jni/Android.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/jni/Android.mk b/jni/Android.mk
index 442daa9..05a96c9 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
+
LOCAL_MODULE := retro
CPU_ARCH :=