Skip to content

Commit

Permalink
MAME now represent full build, for building MESS drivers only use [Mi…
Browse files Browse the repository at this point in the history
…odrag Milanovic]

make SUBTARGET=mess, for building only Arcades drivers only use:
make SUBTARGET=arcade
  • Loading branch information
mmicko committed May 9, 2015
1 parent 9d82d22 commit 5df1b60
Show file tree
Hide file tree
Showing 32 changed files with 35,690 additions and 35,910 deletions.
12 changes: 10 additions & 2 deletions scripts/genie.lua
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,11 @@ if (_OPTIONS["subtarget"] == nil) then return false end
if (_OPTIONS["target"] == _OPTIONS["subtarget"]) then
solution (_OPTIONS["target"])
else
solution (_OPTIONS["target"] .. _OPTIONS["subtarget"])
if (_OPTIONS["subtarget"]=="mess") then
solution (_OPTIONS["subtarget"])
else
solution (_OPTIONS["target"] .. _OPTIONS["subtarget"])
end
end

configurations {
Expand Down Expand Up @@ -1107,7 +1111,11 @@ dofile(path.join("src", "main.lua"))
if (_OPTIONS["target"] == _OPTIONS["subtarget"]) then
startproject (_OPTIONS["target"])
else
startproject (_OPTIONS["target"] .. _OPTIONS["subtarget"])
if (_OPTIONS["subtarget"]=="mess") then
startproject (_OPTIONS["subtarget"])
else
startproject (_OPTIONS["target"] .. _OPTIONS["subtarget"])
end
end
mainProject(_OPTIONS["target"],_OPTIONS["subtarget"])

Expand Down
15 changes: 9 additions & 6 deletions scripts/src/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 },
Expand Down
4 changes: 0 additions & 4 deletions scripts/src/tools.lua
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,6 @@ files {

dofile("netlist.lua")


if (_OPTIONS["target"]~="mame") then
--------------------------------------------------
-- castool
--------------------------------------------------
Expand Down Expand Up @@ -610,5 +608,3 @@ files {
MAME_DIR .. "src/mess/tools/imgtool/modules/bml3.c",
MAME_DIR .. "src/mess/tools/imgtool/modules/hp48.c",
}

end
Loading

0 comments on commit 5df1b60

Please sign in to comment.