diff options
author | 2016-03-02 14:21:26 +0100 | |
---|---|---|
committer | 2016-03-02 14:21:26 +0100 | |
commit | b489eb202c37868e34b4e1dcbab763d2bbaa6239 (patch) | |
tree | 0c356fa14fa85e638a683df7cbaf725e44692ff5 /scripts/src/main.lua | |
parent | 8a84dd2232711cc9c3b89b3f8cb28fb9139bdd00 (diff) |
made sources build use info from mame.lst (nw)
Diffstat (limited to 'scripts/src/main.lua')
-rw-r--r-- | scripts/src/main.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/src/main.lua b/scripts/src/main.lua index efd1ca75f32..eafcc59f72e 100644 --- a/scripts/src/main.lua +++ b/scripts/src/main.lua @@ -306,6 +306,16 @@ if (_OPTIONS["SOURCES"] == nil) then end end +if (_OPTIONS["SOURCES"] ~= nil) then + dependency { + { + GEN_DIR .. _target .. "/" .. _subtarget .."/drivlist.cpp", MAME_DIR .. "src/".._target .."/" .. _target ..".lst", true }, + } + custombuildtask { + { GEN_DIR .. _target .."/" .. _subtarget ..".flt" , GEN_DIR .. _target .. "/" .. _subtarget .."/drivlist.cpp", { MAME_DIR .. "scripts/build/makelist.py", MAME_DIR .. "src/".._target .."/" .. _target ..".lst" }, {"@echo Building driver list...", PYTHON .. " $(1) $(2) $(<) > $(@)" }}, + } +end + if _OPTIONS["FORCE_VERSION_COMPILE"]=="1" then configuration { "gmake" } dependency { |