diff options
author | 2015-05-09 15:10:29 +0200 | |
---|---|---|
committer | 2015-05-09 15:10:29 +0200 | |
commit | 5df1b60963060ea61de7bed8d2e8f68f284bf1d9 (patch) | |
tree | 2735d7d5161a5b44ddf59116121e4d2dc9d97cdf /scripts/src/main.lua | |
parent | 9d82d2242f00cf2a9e571a108e7c47d7f2c54e42 (diff) |
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
Diffstat (limited to 'scripts/src/main.lua')
-rw-r--r-- | scripts/src/main.lua | 15 |
1 files changed, 9 insertions, 6 deletions
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 }, |