mirror of
https://github.com/holub/mame
synced 2025-04-16 13:34:55 +03:00
Assume any src/<target>/* folder containing C++ source is a project. Only 'shared' is special-cased.
This commit is contained in:
parent
81727a9409
commit
f04d9d605c
@ -9,8 +9,29 @@
|
|||||||
--
|
--
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
|
|
||||||
dofile("arcade.lua")
|
-- Set all the device flag setting commands from the block headers
|
||||||
dofile("mess.lua")
|
|
||||||
|
local function selectors_get(path)
|
||||||
|
local selector = ""
|
||||||
|
for l in io.lines(path) do
|
||||||
|
if l:sub(1, 3) == "--@" then
|
||||||
|
local pos = l:find(",")
|
||||||
|
selector = selector .. l:sub(pos+1) .. "\n"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return selector
|
||||||
|
end
|
||||||
|
|
||||||
|
local selectors =
|
||||||
|
selectors_get(MAME_DIR .. "scripts/src/cpu.lua") ..
|
||||||
|
selectors_get(MAME_DIR .. "scripts/src/sound.lua") ..
|
||||||
|
selectors_get(MAME_DIR .. "scripts/src/video.lua") ..
|
||||||
|
selectors_get(MAME_DIR .. "scripts/src/machine.lua") ..
|
||||||
|
selectors_get(MAME_DIR .. "scripts/src/bus.lua") ..
|
||||||
|
selectors_get(MAME_DIR .. "scripts/src/formats.lua")
|
||||||
|
|
||||||
|
load(selectors)()
|
||||||
|
|
||||||
|
|
||||||
function createProjects_mame_dummy(_target, _subtarget)
|
function createProjects_mame_dummy(_target, _subtarget)
|
||||||
project ("mame_dummy")
|
project ("mame_dummy")
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user