From 0d980951c9dd3234d693b1ff5bb554ef1ca2ae5c Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Thu, 21 Apr 2016 15:44:46 +0200 Subject: set GIT_VERSION only where it is used (nw) --- scripts/src/main.lua | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'scripts/src/main.lua') 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", -- cgit v1.2.3-70-g09d2