mame/scripts/src/devices.lua
Olivier Galibert 6caef2579a dvdisasm: Overhaul [O. Galibert]
Disassemblers are now independant classes.  Not only the code is
cleaner, but unidasm has access to all the cpu cores again.  The
interface to the disassembly method has changed from byte buffers to
objects that give a result to read methods.  This also adds support
for lfsr and/or paged PCs.
2017-11-26 17:41:27 +01:00

91 lines
1.8 KiB
Lua

-- license:BSD-3-Clause
-- copyright-holders:MAMEdev Team
---------------------------------------------------------------------------
--
-- devices.lua
--
-- Rules for building device cores
--
---------------------------------------------------------------------------
function devicesProject(_target, _subtarget)
disasm_files = { }
disasm_dependency = { }
disasm_custombuildtask = { }
project ("optional")
uuid (os.uuid("optional-" .. _target .."_" .. _subtarget))
kind (LIBTYPE)
targetsubdir(_target .."_" .. _subtarget)
if (_OPTIONS["targetos"] ~= "asmjs") then
options {
"ArchiveSplit",
}
end
addprojectflags()
precompiledheaders()
includedirs {
MAME_DIR .. "src/osd",
MAME_DIR .. "src/emu",
MAME_DIR .. "src/devices",
MAME_DIR .. "src/mame", -- used for sound amiga
MAME_DIR .. "src/lib",
MAME_DIR .. "src/lib/util",
MAME_DIR .. "3rdparty",
GEN_DIR .. "emu",
GEN_DIR .. "emu/layout",
ext_includedir("expat"),
ext_includedir("flac"),
MAME_DIR .. "3rdparty/asio/include",
}
dofile(path.join("src", "cpu.lua"))
dofile(path.join("src", "sound.lua"))
dofile(path.join("src", "video.lua"))
dofile(path.join("src", "machine.lua"))
dofile(path.join("src", "bus.lua"))
if #disasm_files > 0 then
project ("dasm")
uuid ("f2d28b0a-6da5-4f78-b629-d834aa00429d")
kind (LIBTYPE)
targetsubdir(_target .."_" .. _subtarget)
addprojectflags()
precompiledheaders()
includedirs {
MAME_DIR .. "src/osd",
MAME_DIR .. "src/emu",
MAME_DIR .. "src/devices",
MAME_DIR .. "src/lib",
MAME_DIR .. "src/lib/util",
MAME_DIR .. "3rdparty",
MAME_DIR .. "3rdparty/asio/include",
GEN_DIR .. "emu",
ext_includedir("expat"),
}
files {
disasm_files
}
if #disasm_dependency > 0 then
dependency(disasm_dependency)
end
if #disasm_custombuildtask > 0 then
custombuildtask(disasm_custombuildtask)
end
end
end