diff options
author | Vas Crabb <vas@vastheman.com> | 2016-06-10 00:36:29 +1000 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2016-06-10 00:36:29 +1000 |
commit | 93cd0cd40bae01b637132542a93ddbb297d2b0d6 (patch) | |
tree | d98d7b4054c8052206c0280e3c101034e587b729 /src | |
parent | ebd8e7d74b798ee0c7dc2232d72c13b0d51e1fe4 (diff) |
Fix git version [Vas Crabb]
* git version is set by top-level make, not just when GENie runs
* can set IGNORE_GIT=1 for make to ignore git
* git ignored/unavailable uses "unknown" in version string
* mark modified trees as dirty
* note that version now comes from makefile
Diffstat (limited to 'src')
-rw-r--r-- | src/version.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/version.cpp b/src/version.cpp deleted file mode 100644 index b7f73e4618a..00000000000 --- a/src/version.cpp +++ /dev/null @@ -1,22 +0,0 @@ -// license:BSD-3-Clause -// copyright-holders:Aaron Giles -/*************************************************************************** - - version.c - - Version string source file for MAME. - -***************************************************************************/ - -#define BARE_BUILD_VERSION "0.174" - -extern const char bare_build_version[]; -extern const char build_version[]; -const char bare_build_version[] = BARE_BUILD_VERSION; -#if defined(GIT_VERSION) -#define VERSION_TO_STRING(s) XVERSION_TO_STRING(s) -#define XVERSION_TO_STRING(ver) #ver -const char build_version[] = BARE_BUILD_VERSION " (" VERSION_TO_STRING(GIT_VERSION) ")"; -#else -const char build_version[] = BARE_BUILD_VERSION; -#endif |