Merge pull request #54 from GregorR/libretro-git-version
Use git version as library_version
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user