diff options
Diffstat (limited to 'scripts/src/main.lua')
-rw-r--r-- | scripts/src/main.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/src/main.lua b/scripts/src/main.lua index 70da96afe00..b4a247dc88b 100644 --- a/scripts/src/main.lua +++ b/scripts/src/main.lua @@ -93,6 +93,26 @@ function mainProject(_target, _subtarget) MAME_DIR .. "src/version.c", GEN_DIR .. _target .. "/" .. _subtarget .."/drivlist.c", } + + custombuildtask { + { MAME_DIR .. "src/".._target .."/" .. _subtarget ..".lst" , GEN_DIR .. _target .. "/" .. _subtarget .."/drivlist.c", { MAME_DIR .. "src/build/makelist.py" }, {"@echo Building driver list...", "python $(1) $(<) > $(@)" }}, + } + + configuration { "mingw*" } + custombuildtask { + { MAME_DIR .. "src/version.c" , GEN_DIR .. "/resource/" .. _target .. "vers.rc", { MAME_DIR .. "src/build/verinfo.py" }, {"@echo Emitting " .. _target .. "vers.rc" .. "...", "python $(1) -r -b " .. _target .. " $(<) > $(@)" }}, + } + + configuration { "vs*" } + prebuildcommands { + "mkdir " .. path.translate(GEN_DIR .. "/resource/","\\") .. " 2>NUL", + "@echo Emitting ".. _target .. "vers.rc...", + "python " .. path.translate(MAME_DIR .. "src/build/verinfo.py","\\") .. " -r -b " .. _target .. " " .. path.translate(MAME_DIR .. "src/version.c","\\") .. " > " .. path.translate(GEN_DIR .. "/resource/" .. _target .. "vers.rc", "\\") , + } + + + configuration { } + debugdir (MAME_DIR) debugargs ("-window") end |