diff options
Diffstat (limited to 'scripts/src/main.lua')
-rw-r--r-- | scripts/src/main.lua | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/scripts/src/main.lua b/scripts/src/main.lua index 3a52b985411..3b07a69211c 100644 --- a/scripts/src/main.lua +++ b/scripts/src/main.lua @@ -136,7 +136,17 @@ end end configuration { } - + +if _OPTIONS["IGNORE_GIT"]~="1" then + GIT_VERSION = backtick( "git describe --dirty" ) + local p = string.find(GIT_VERSION, '-', 1) + if (p~=nil) then + defines { + "GIT_VERSION=" .. string.sub(GIT_VERSION,p+1) + } + end +end + if _OPTIONS["targetos"]=="android" then includedirs { MAME_DIR .. "3rdparty/SDL2/include", |