diff --git a/makefile b/makefile index b9de10840a2..8de25ea3c42 100644 --- a/makefile +++ b/makefile @@ -381,6 +381,7 @@ GEN_FOLDERS := \ $(GENDIR)/mame/layout/ \ $(GENDIR)/mess/layout/ \ $(GENDIR)/mess/drivers/ \ + $(GENDIR)/ldplayer/layout/ \ $(GENDIR)/osd/windows/) \ $(GENDIR)/emu/cpu/arcompact/ \ $(GENDIR)/emu/cpu/h8/ \ @@ -396,7 +397,7 @@ $(GEN_FOLDERS): -$(call MKDIR,$@) -LAYOUTS=$(wildcard $(SRC)/emu/layout/*.lay) $(wildcard $(SRC)/mame/layout/*.lay) $(wildcard $(SRC)/mess/layout/*.lay) +LAYOUTS=$(wildcard $(SRC)/emu/layout/*.lay) $(wildcard $(SRC)/mame/layout/*.lay) $(wildcard $(SRC)/mess/layout/*.lay) $(wildcard $(SRC)/ldplayer/layout/*.lay) ifeq ($(TARGETOS),macosx) MOC_FILES= diff --git a/scripts/src/main.lua b/scripts/src/main.lua index 70a672881a2..aa939c1f115 100644 --- a/scripts/src/main.lua +++ b/scripts/src/main.lua @@ -72,6 +72,7 @@ function mainProject(_target, _subtarget) MAME_DIR .. "3rdparty", MAME_DIR .. "3rdparty/zlib", GEN_DIR .. "mame/layout", + GEN_DIR .. "ldplayer/layout", GEN_DIR .. "osd/windows", } diff --git a/scripts/target/ldplayer/ldplayer.lua b/scripts/target/ldplayer/ldplayer.lua new file mode 100644 index 00000000000..4f3bf2b16df --- /dev/null +++ b/scripts/target/ldplayer/ldplayer.lua @@ -0,0 +1,85 @@ +--------------------------------------------------------------------------- +-- +-- ldplayer.lua +-- +-- Small makefile to build a standalone laserdisc player +-- +-- Copyright Nicola Salmoria and the MAME Team. +-- Visit http://mamedev.org for licensing and usage restrictions. +-- +--------------------------------------------------------------------------- + +-------------------------------------------------- +-- specify required CPU cores (none) +-------------------------------------------------- + +CPUS["MCS48"] = true +CPUS["Z80"] = true + + + +-------------------------------------------------- +-- specify required sound cores +-------------------------------------------------- + +SOUNDS["WAVE"] = true + + +-------------------------------------------------- +-- specify available video cores +-------------------------------------------------- + +-------------------------------------------------- +-- specify available machine cores +-------------------------------------------------- + +MACHINES["LDV1000"] = true +MACHINES["LDPR8210"] = true + +-------------------------------------------------- +-- specify available bus cores +-- +-- MIDI is here as dummy bus to allow libbus.a to +-- be created on OSX. +-------------------------------------------------- + +BUSES["MIDI"] = true + +-------------------------------------------------- +-- this is the list of driver libraries that +-- comprise MAME plus mamedriv.o which contains +-- the list of drivers +-------------------------------------------------- + +function createProjects(_target, _subtarget) + project ("drvldplayer") + targetsubdir(_target .."_" .. _subtarget) + kind "StaticLib" + uuid (os.uuid("drvldplayer")) + + options { + "ForceCPP", + } + + includedirs { + MAME_DIR .. "src/emu", + MAME_DIR .. "src/mame", + MAME_DIR .. "src/lib", + MAME_DIR .. "src/lib/util", + MAME_DIR .. "3rdparty", + MAME_DIR .. "3rdparty/zlib", + GEN_DIR .. "mame/layout", + } + + includeosd() + + files{ + MAME_DIR .. "src/emu/drivers/emudummy.c", + } +end + +function linkProjects(_target, _subtarget) + links { + "drvldplayer", + } +end \ No newline at end of file diff --git a/src/build/verinfo.py b/src/build/verinfo.py index 9841625858a..d501a45c436 100644 --- a/src/build/verinfo.py +++ b/src/build/verinfo.py @@ -8,7 +8,7 @@ import sys def parse_args(): def usage(): - sys.stderr.write('Usage: verinfo.py [-b mame|mess|ume] [-r|-p] [-o ] \n') + sys.stderr.write('Usage: verinfo.py [-b mame|mess|ume|ldplayer] [-r|-p] [-o ] \n') sys.exit(1) flags = True @@ -24,7 +24,7 @@ def parse_args(): format = 'plist' elif flags and (sys.argv[i] == '-b'): i += 1 - if (i >= len(sys.argv)) or (sys.argv[i] not in ('mame', 'mess', 'ume')): + if (i >= len(sys.argv)) or (sys.argv[i] not in ('mame', 'mess', 'ume', 'ldplayer')): usage() else: target = sys.argv[i]