mirror of
https://github.com/holub/mame
synced 2025-06-06 12:53:46 +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"))
|
dofile (path.join("target", _OPTIONS["target"],_OPTIONS["subtarget"] .. ".lua"))
|
||||||
end
|
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" }
|
configuration { "gmake" }
|
||||||
flags {
|
flags {
|
||||||
"SingleOutputDir",
|
"SingleOutputDir",
|
||||||
|
@ -136,7 +136,17 @@ end
|
|||||||
end
|
end
|
||||||
|
|
||||||
configuration { }
|
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
|
if _OPTIONS["targetos"]=="android" then
|
||||||
includedirs {
|
includedirs {
|
||||||
MAME_DIR .. "3rdparty/SDL2/include",
|
MAME_DIR .. "3rdparty/SDL2/include",
|
||||||
|
Loading…
Reference in New Issue
Block a user