diff options
author | 2015-06-20 18:20:10 +0200 | |
---|---|---|
committer | 2015-06-20 18:20:44 +0200 | |
commit | 239c31b584f3d650f1e12322cbe154825539661c (patch) | |
tree | 042e486e5ad0c08d16ba8d3d53ded1dcaf64ebd4 /scripts/src/main.lua | |
parent | 99056bc96dff78af6e1fc8b252fb0326936ec4b6 (diff) |
Made possible creation of custom builds with given list of drivers included.
Note that game list is parsed so if macros are used they will not be found.
example:
make SUBTARGET=cops -j9 DRIVERS=src/mame/drivers/cops.c
Diffstat (limited to 'scripts/src/main.lua')
-rw-r--r-- | scripts/src/main.lua | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/scripts/src/main.lua b/scripts/src/main.lua index 2156a775dbc..c76cbbf3028 100644 --- a/scripts/src/main.lua +++ b/scripts/src/main.lua @@ -86,7 +86,13 @@ function mainProject(_target, _subtarget) findfunction("linkProjects_" .. _OPTIONS["target"] .. "_" .. _OPTIONS["subtarget"])(_OPTIONS["target"], _OPTIONS["subtarget"]) links { "osd_" .. _OPTIONS["osd"], - "bus", + } + if (bus_count > 0) then + links { + "bus", + } + end + links { "netlist", "optional", "emu", @@ -214,6 +220,8 @@ function mainProject(_target, _subtarget) MAME_DIR .. "src/version.c", GEN_DIR .. _target .. "/" .. _subtarget .."/drivlist.c", } + +if (_OPTIONS["DRIVERS"] == nil) then dependency { { "../../../../generated/mame/mame/drivlist.c", MAME_DIR .. "src/mame/mess.lst", true }, { "../../../../generated/mame/mame/drivlist.c" , MAME_DIR .. "src/mame/arcade.lst", true}, @@ -221,7 +229,7 @@ function mainProject(_target, _subtarget) 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) $(<) > $(@)" }}, } - +end configuration { "gmake" } dependency { { ".PHONY", ".FORCE", true }, |