Merge pull request #54 from GregorR/libretro-git-version

Use git version as library_version
This commit is contained in:
Twinaphex
2016-12-09 23:39:26 +01:00
committed by GitHub
3 changed files with 12 additions and 0 deletions

View File

@@ -37,6 +37,10 @@ else ifneq ($(findstring MINGW,$(shell uname -a)),)
endif
TARGET_NAME := fceumm
GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
ifneq ($(GIT_VERSION)," unknown")
CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif
LIBM := -lm
# Unix

View File

@@ -1,4 +1,8 @@
LOCAL_PATH := $(call my-dir)
GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
ifneq ($(GIT_VERSION)," unknown")
LOCAL_CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif
include $(CLEAR_VARS)

View File

@@ -655,7 +655,11 @@ void retro_get_system_info(struct retro_system_info *info)
{
info->need_fullpath = true;
info->valid_extensions = "fds|nes|unf|unif";
#ifdef GIT_VERSION
info->library_version = "git" GIT_VERSION;
#else
info->library_version = "(SVN)";
#endif
info->library_name = "FCEUmm";
info->block_extract = false;
}