Report git version with library_version on Android

This commit is contained in:
Gregor Richards 2017-01-15 13:40:34 -05:00
parent 0e8ec6b5f7
commit 715634d23a

View File

@ -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 := ..