detect if SOURCES file do not exist (nw)

This commit is contained in:
Miodrag Milanovic 2016-12-09 13:00:51 +01:00
parent 33aa3d1a62
commit a877c987fb

View file

@ -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")