mirror of
https://github.com/holub/mame
synced 2025-06-03 11:26:56 +03:00
set GIT_VERSION only where it is used (nw)
This commit is contained in:
parent
f5aa86dfc6
commit
0d980951c9
@ -520,17 +520,6 @@ if (_OPTIONS["SOURCES"] == nil) then
|
||||
dofile (path.join("target", _OPTIONS["target"],_OPTIONS["subtarget"] .. ".lua"))
|
||||
end
|
||||
|
||||
|
||||
if _OPTIONS["IGNORE_GIT"]~="1" then
|
||||
GIT_VERSION = backtick( "git describe" )
|
||||
local p = string.find(GIT_VERSION, '-', 1)
|
||||
if (p~=nil) then
|
||||
defines {
|
||||
"GIT_VERSION=" .. string.sub(GIT_VERSION,p+1)
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
configuration { "gmake" }
|
||||
flags {
|
||||
"SingleOutputDir",
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user