From b1531618f17e8d761339683f9573ec45eed438eb Mon Sep 17 00:00:00 2001 From: radius Date: Sat, 26 Nov 2016 16:02:09 -0500 Subject: [PATCH] add git version to android build --- pkg/android/phoenix/jni/Android.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/android/phoenix/jni/Android.mk b/pkg/android/phoenix/jni/Android.mk index f6897c0397..fac1a5c269 100644 --- a/pkg/android/phoenix/jni/Android.mk +++ b/pkg/android/phoenix/jni/Android.mk @@ -1,4 +1,5 @@ LOCAL_PATH := $(call my-dir) + include $(CLEAR_VARS) RARCH_DIR := ../../../.. @@ -13,6 +14,11 @@ DEFINES := LIBRETRO_COMM_DIR := $(RARCH_DIR)/libretro-common DEPS_DIR := $(RARCH_DIR)/deps +GIT_VERSION := $(shell git rev-parse --short HEAD 2>/dev/null) +ifneq ($(GIT_VERSION),) + DEFINES += -DHAVE_GIT_VERSION -DGIT_VERSION=$(GIT_VERSION) +endif + include $(CLEAR_VARS) ifeq ($(TARGET_ARCH),arm) DEFINES += -DANDROID_ARM -marm