mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
detect if SOURCES file do not exist (nw)
This commit is contained in:
parent
33aa3d1a62
commit
a877c987fb
1 changed files with 7 additions and 0 deletions
|
@ -1317,6 +1317,13 @@ configuration { "Debug", "gmake" }
|
||||||
configuration { }
|
configuration { }
|
||||||
|
|
||||||
if (_OPTIONS["SOURCES"] ~= nil) then
|
if (_OPTIONS["SOURCES"] ~= nil) then
|
||||||
|
local str = _OPTIONS["SOURCES"]
|
||||||
|
for word in string.gmatch(str, '([^,]+)') do
|
||||||
|
if (not os.isfile(path.join(MAME_DIR ,word))) then
|
||||||
|
print("File " .. word.. " does not exist")
|
||||||
|
os.exit()
|
||||||
|
end
|
||||||
|
end
|
||||||
OUT_STR = os.outputof( PYTHON .. " " .. MAME_DIR .. "scripts/build/makedep.py " .. MAME_DIR .. " " .. _OPTIONS["SOURCES"] .. " target " .. _OPTIONS["subtarget"])
|
OUT_STR = os.outputof( PYTHON .. " " .. MAME_DIR .. "scripts/build/makedep.py " .. MAME_DIR .. " " .. _OPTIONS["SOURCES"] .. " target " .. _OPTIONS["subtarget"])
|
||||||
load(OUT_STR)()
|
load(OUT_STR)()
|
||||||
os.outputof( PYTHON .. " " .. MAME_DIR .. "scripts/build/makedep.py " .. MAME_DIR .. " " .. _OPTIONS["SOURCES"] .. " drivers " .. _OPTIONS["subtarget"] .. " > ".. GEN_DIR .. _OPTIONS["target"] .. "/" .. _OPTIONS["subtarget"]..".flt")
|
os.outputof( PYTHON .. " " .. MAME_DIR .. "scripts/build/makedep.py " .. MAME_DIR .. " " .. _OPTIONS["SOURCES"] .. " drivers " .. _OPTIONS["subtarget"] .. " > ".. GEN_DIR .. _OPTIONS["target"] .. "/" .. _OPTIONS["subtarget"]..".flt")
|
||||||
|
|
Loading…
Reference in a new issue