Commit fba476cf authored by Libretro-Admin's avatar Libretro-Admin Committed by GitHub
Browse files

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

Report git version as library_version
parents 6730b2b2 6b2444f4
......@@ -29,6 +29,10 @@ else ifneq ($(findstring MINGW,$(shell uname -a)),)
endif
TARGET_NAME := 2048
GIT_VERSION := "$(shell git describe --abbrev=7 --dirty --always --tags || echo unknown)"
ifneq ($(GIT_VERSION),"unknown")
CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif
LIBM := -lm
fpic=
......
......@@ -127,7 +127,11 @@ void retro_get_system_info(struct retro_system_info *info)
{
memset(info, 0, sizeof(*info));
info->library_name = "2048";
#ifdef GIT_VERSION
info->library_version = GIT_VERSION;
#else
info->library_version = "v1.0";
#endif
info->need_fullpath = false;
info->valid_extensions = NULL; /* Anything is fine, we don't care. */
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment