Use git version as library_version
This commit is contained in:
@@ -37,6 +37,10 @@ else ifneq ($(findstring MINGW,$(shell uname -a)),)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
TARGET_NAME := fceumm
|
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
|
LIBM := -lm
|
||||||
|
|
||||||
# Unix
|
# Unix
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
LOCAL_PATH := $(call my-dir)
|
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)
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
|
|||||||
@@ -655,7 +655,11 @@ void retro_get_system_info(struct retro_system_info *info)
|
|||||||
{
|
{
|
||||||
info->need_fullpath = true;
|
info->need_fullpath = true;
|
||||||
info->valid_extensions = "fds|nes|unf|unif";
|
info->valid_extensions = "fds|nes|unf|unif";
|
||||||
|
#ifdef GIT_VERSION
|
||||||
|
info->library_version = "git" GIT_VERSION;
|
||||||
|
#else
|
||||||
info->library_version = "(SVN)";
|
info->library_version = "(SVN)";
|
||||||
|
#endif
|
||||||
info->library_name = "FCEUmm";
|
info->library_name = "FCEUmm";
|
||||||
info->block_extract = false;
|
info->block_extract = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user