add git hash to library_version

This commit is contained in:
hunterk 2017-07-15 20:28:31 -05:00
parent bd1db4eff9
commit 611eba91a6
3 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,8 @@
TARGET_NAME := atari800
GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
ifneq ($(GIT_VERSION)," unknown")
CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif
DEBUG = 0
LOG_PERFORMANCE = 1

View File

@ -1,4 +1,5 @@
LOCAL_PATH := $(call my-dir)
GIT_VERSION := " $(shell git rev-parse --short HEAD)"
include $(CLEAR_VARS)

View File

@ -362,7 +362,7 @@ void retro_get_system_info(struct retro_system_info *info)
{
memset(info, 0, sizeof(*info));
info->library_name = "Atari800";
info->library_version = "3.1.0";
info->library_version = "3.1.0" GIT_VERSION;
info->valid_extensions = "xfd|atr|cdm|cas|bin|a52|zip";
info->need_fullpath = true;
info->block_extract = false;