aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Richards2017-01-15 13:40:34 -0500
committerGregor Richards2017-01-15 13:40:34 -0500
commit715634d23a55f3237dc24c23bc05c8c801468fff (patch)
treed7b10c58b127705519c90acdc1c68ead905409bd
parent0e8ec6b5f7ab59ad13970536c76e2c8c52a23965 (diff)
downloadsnes9x2005-715634d23a55f3237dc24c23bc05c8c801468fff.tar.gz
snes9x2005-715634d23a55f3237dc24c23bc05c8c801468fff.tar.bz2
snes9x2005-715634d23a55f3237dc24c23bc05c8c801468fff.zip
Report git version with library_version on Android
-rw-r--r--jni/Android.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/jni/Android.mk b/jni/Android.mk
index b890e2f..579cb12 100644
--- a/jni/Android.mk
+++ b/jni/Android.mk
@@ -1,11 +1,12 @@
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
-include $(CLEAR_VARS)
-
CORE_DIR := ../source
LIBRETRO_DIR := ..