add git version to android build

This commit is contained in:
radius 2016-11-26 16:02:09 -05:00
parent 0bc7d40948
commit b1531618f1

View File

@ -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