From 5df1b60963060ea61de7bed8d2e8f68f284bf1d9 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sat, 9 May 2015 15:10:29 +0200 Subject: MAME now represent full build, for building MESS drivers only use [Miodrag Milanovic] make SUBTARGET=mess, for building only Arcades drivers only use: make SUBTARGET=arcade --- scripts/src/main.lua | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'scripts/src/main.lua') diff --git a/scripts/src/main.lua b/scripts/src/main.lua index 80e3d1bf09a..4c4b811edae 100644 --- a/scripts/src/main.lua +++ b/scripts/src/main.lua @@ -2,7 +2,11 @@ function mainProject(_target, _subtarget) if (_target == _subtarget) then project (_target) else - project (_target .. _subtarget) + if (_subtarget=="mess") then + project (_subtarget) + else + project (_target .. _subtarget) + end end uuid (os.uuid(_target .."_" .. _subtarget)) kind "ConsoleApp" @@ -141,21 +145,20 @@ function mainProject(_target, _subtarget) end if _OPTIONS["targetos"]=="windows" and (not override_resources) then - local rcfile = MAME_DIR .. "src/" .. _target .. "/osd/".._OPTIONS["osd"].."/" .. _target ..".rc" + local rcfile = MAME_DIR .. "src/" .. _target .. "/osd/".._OPTIONS["osd"].."/" .. _subtarget .. "/" .. _subtarget ..".rc" if not os.isfile(rcfile) then - rcfile = MAME_DIR .. "src/" .. _target .. "/osd/windows/" .. _target ..".rc" + rcfile = MAME_DIR .. "src/" .. _target .. "/osd/windows/" .. _subtarget .. "/" .. _subtarget ..".rc" end - if os.isfile(rcfile) then files { rcfile, } dependency { - { "$(OBJDIR)/".._target ..".res" , GEN_DIR .. "/resource/" .. _target .. "vers.rc", true }, + { "$(OBJDIR)/".._subtarget ..".res" , GEN_DIR .. "/resource/" .. _target .. "vers.rc", true }, } else files { - MAME_DIR .. "src/osd/windows/mame.rc", + MAME_DIR .. "src/mame/osd/windows/mame/mame.rc", } dependency { { "$(OBJDIR)/mame.res" , GEN_DIR .. "/resource/" .. _target .. "vers.rc", true }, -- cgit v1.2.3-70-g09d2