Commit b1975e3a authored by David Walters's avatar David Walters
Browse files

Git tag on version number.

parent 1fd5a9f2
......@@ -30,6 +30,11 @@ LIBS :=
CFLAGS :=
CXXFLAGS :=
GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
ifneq ($(GIT_VERSION)," unknown")
CXXFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif
UNAME=$(shell uname -a)
LIBRETRO_DIR := .
......
......@@ -713,7 +713,10 @@ void retro_get_system_info(struct retro_system_info *info)
#else
info->library_name = "Reicast";
#endif
info->library_version = "0.1";
#ifndef GIT_VERSION
#define GIT_VERSION ""
#endif
info->library_version = "0.1" GIT_VERSION;
info->valid_extensions = "cdi|gdi|chd|cue";
info->need_fullpath = true;
info->block_extract = false;
......
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