mirror of
https://github.com/libretro/mame.git
synced 2026-11-07 12:28:03 -10:00
Assume any src/<target>/* folder containing C++ source is a project. Only 'shared' is special-cased.
This commit is contained in:
1 parent
81727a9409
commit
f04d9d605c
10 files changed
+77
-3517
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -9,8 +9,29 @@
|
||||
--
|
||||
---------------------------------------------------------------------------
|
||||
|
||||
dofile("arcade.lua")
|
||||
dofile("mess.lua")
|
||||
-- Set all the device flag setting commands from the block headers
|
||||
|
||||
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)
|
||||
project ("mame_dummy")
|
||||
|
||||
+54
-3515
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user