summaryrefslogtreecommitdiffstats
path: root/docs/release/scripts/target/mame/virtual.lua
diff options
context:
space:
mode:
Diffstat (limited to 'docs/release/scripts/target/mame/virtual.lua')
-rw-r--r--docs/release/scripts/target/mame/virtual.lua135
1 files changed, 135 insertions, 0 deletions
diff --git a/docs/release/scripts/target/mame/virtual.lua b/docs/release/scripts/target/mame/virtual.lua
new file mode 100644
index 00000000000..3cd2a980a60
--- /dev/null
+++ b/docs/release/scripts/target/mame/virtual.lua
@@ -0,0 +1,135 @@
+-- license:BSD-3-Clause
+-- copyright-holders:MAMEdev Team
+
+---------------------------------------------------------------------------
+--
+-- virtual.lua
+--
+-- Virtual target makefile
+--
+---------------------------------------------------------------------------
+
+--------------------------------------------------
+-- specify available CPU cores
+--------------------------------------------------
+
+CPUS["M6502"] = true
+CPUS["H6280"] = true
+CPUS["M680X0"] = true
+CPUS["MCS48"] = true
+CPUS["SH"] = true
+CPUS["Z80"] = true
+CPUS["DSP16"] = true -- for qsound
+
+--------------------------------------------------
+-- specify available sound cores; some of these are
+-- only for MAME and so aren't included
+--------------------------------------------------
+
+SOUNDS["AY8910"] = true
+SOUNDS["C140"] = true
+SOUNDS["C352"] = true
+SOUNDS["C6280"] = true
+SOUNDS["GB_SOUND"] = true
+SOUNDS["ES5503"] = true
+SOUNDS["ES5505"] = true
+SOUNDS["IREMGA20"] = true
+SOUNDS["K051649"] = true
+SOUNDS["K053260"] = true
+SOUNDS["K054539"] = true
+SOUNDS["MULTIPCM"] = true
+SOUNDS["NES_APU"] = true
+SOUNDS["OKIM6258"] = true
+SOUNDS["OKIM6295"] = true
+SOUNDS["POKEY"] = true
+SOUNDS["QSOUND"] = true
+SOUNDS["RF5C68"] = true
+SOUNDS["SAA1099"] = true
+SOUNDS["SCSP"] = true
+SOUNDS["DAC"] = true
+SOUNDS["VOLT_REG"] = true
+SOUNDS["SEGAPCM"] = true
+SOUNDS["SN76496"] = true
+SOUNDS["UPD7759"] = true
+SOUNDS["WAVE"] = true
+SOUNDS["X1_010"] = true
+SOUNDS["Y8950"] = true
+SOUNDS["YM2151"] = true
+SOUNDS["YM2203"] = true
+SOUNDS["YM2413"] = true
+SOUNDS["YM2608"] = true
+SOUNDS["YM2610"] = true
+SOUNDS["YM2612"] = true
+SOUNDS["YM3526"] = true
+SOUNDS["YM3812"] = true
+SOUNDS["YMF262"] = true
+SOUNDS["YMF271"] = true
+SOUNDS["YMF278"] = true
+SOUNDS["YMF278B"] = true
+SOUNDS["YMZ280B"] = true
+
+--------------------------------------------------
+-- specify available video cores
+--------------------------------------------------
+
+
+--------------------------------------------------
+-- specify available machine cores
+--------------------------------------------------
+MACHINES["LDV1000"] = true
+MACHINES["LDPR8210"] = true
+MACHINES["Z80DAISY"] = true
+
+--------------------------------------------------
+-- specify available bus cores
+--------------------------------------------------
+
+
+--------------------------------------------------
+-- this is the driver library that
+-- comprise the virtual drivers
+--------------------------------------------------
+function linkProjects_mame_virtual(_target, _subtarget)
+ links {
+ "virtual",
+ }
+end
+
+function createVirtualProjects(_target, _subtarget, _name)
+ project (_name)
+ targetsubdir(_target .."_" .. _subtarget)
+ kind (LIBTYPE)
+ uuid (os.uuid("drv-" .. _target .."_" .. _subtarget .. "_" .._name))
+ addprojectflags()
+ precompiledheaders()
+
+ includedirs {
+ MAME_DIR .. "src/osd",
+ MAME_DIR .. "src/emu",
+ MAME_DIR .. "src/devices",
+ MAME_DIR .. "src/mame",
+ MAME_DIR .. "src/lib",
+ MAME_DIR .. "src/lib/util",
+ MAME_DIR .. "3rdparty",
+ GEN_DIR .. "mame/layout",
+ }
+
+ includedirs {
+ ext_includedir("zlib"),
+ ext_includedir("flac"),
+ }
+end
+
+function createProjects_mame_virtual(_target, _subtarget)
+ createVirtualProjects(_target, _subtarget, "virtual")
+ files {
+ MAME_DIR .. "src/mame/drivers/vgmplay.cpp",
+ MAME_DIR .. "src/mame/drivers/ldplayer.cpp",
+ MAME_DIR .. "src/mame/machine/mega32x.cpp",
+ MAME_DIR .. "src/mame/machine/mega32x.h",
+ MAME_DIR .. "src/mame/audio/vboy.cpp",
+ MAME_DIR .. "src/mame/audio/vboy.h",
+ MAME_DIR .. "src/mame/audio/wswan.cpp",
+ MAME_DIR .. "src/mame/audio/wswan.h",
+ }
+end