summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/target
diff options
context:
space:
mode:
author Ariane Fugmann <sailorsat@t-online.de>2015-06-07 01:38:39 +0200
committer Ariane Fugmann <sailorsat@t-online.de>2015-06-07 01:38:39 +0200
commit7bc2f26393bd5e22a328a7af02b69528d401bffb (patch)
tree0206257bf495398d97f20b9c0d2ce029aabf8c4f /scripts/target
parente14de8c687dc375d04357665b9877b3f521b9aa2 (diff)
parent887742e3085d1d55d1ed75a12843c0fd0efc8715 (diff)
Merge pull request #1 from mamedev/master
merge with base
Diffstat (limited to 'scripts/target')
-rw-r--r--scripts/target/ldplayer/ldplayer.lua2
-rw-r--r--scripts/target/mame/arcade.lua4
-rw-r--r--scripts/target/mame/dummy.lua2
-rw-r--r--scripts/target/mame/mess.lua4
-rw-r--r--scripts/target/mame/nl.lua121
-rw-r--r--scripts/target/mame/tiny.lua2
6 files changed, 128 insertions, 7 deletions
diff --git a/scripts/target/ldplayer/ldplayer.lua b/scripts/target/ldplayer/ldplayer.lua
index 3660b87cba9..f12fad0c7db 100644
--- a/scripts/target/ldplayer/ldplayer.lua
+++ b/scripts/target/ldplayer/ldplayer.lua
@@ -54,7 +54,7 @@ BUSES["MIDI"] = true
function createProjects_ldplayer_ldplayer(_target, _subtarget)
project ("drvldplayer")
targetsubdir(_target .."_" .. _subtarget)
- kind "StaticLib"
+ kind (LIBTYPE)
uuid (os.uuid("drvldplayer"))
options {
diff --git a/scripts/target/mame/arcade.lua b/scripts/target/mame/arcade.lua
index c34ef9eb959..3376310cf68 100644
--- a/scripts/target/mame/arcade.lua
+++ b/scripts/target/mame/arcade.lua
@@ -470,6 +470,7 @@ MACHINES["MSM6242"] = true
--MACHINES["NCR5380N"] = true
--MACHINES["NCR5390"] = true
MACHINES["NCR539x"] = true
+MACHINES["NETLIST"] = true
--MACHINES["NCR53C7XX"] = true
MACHINES["NMC9306"] = true
--MACHINES["NSC810"] = true
@@ -534,7 +535,6 @@ MACHINES["UPD765"] = true
MACHINES["V3021"] = true
MACHINES["WD_FDC"] = true
MACHINES["WD11C00_17"] = true
-MACHINES["WD17XX"] = true
MACHINES["WD2010"] = true
MACHINES["WD33C93"] = true
MACHINES["X2212"] = true
@@ -760,7 +760,7 @@ end
function createMAMEProjects(_target, _subtarget, _name)
project (_name)
targetsubdir(_target .."_" .. _subtarget)
- kind "StaticLib"
+ kind (LIBTYPE)
uuid (os.uuid("drv-" .. _target .."_" .. _subtarget .. "_" .._name))
options {
diff --git a/scripts/target/mame/dummy.lua b/scripts/target/mame/dummy.lua
index bd207bf41c8..145862828d5 100644
--- a/scripts/target/mame/dummy.lua
+++ b/scripts/target/mame/dummy.lua
@@ -15,7 +15,7 @@ dofile("mess.lua")
function createProjects_mame_dummy(_target, _subtarget)
project ("mame_dummy")
targetsubdir(_target .."_" .. _subtarget)
- kind "StaticLib"
+ kind (LIBTYPE)
uuid (os.uuid("drv-mame_dummy"))
options {
diff --git a/scripts/target/mame/mess.lua b/scripts/target/mame/mess.lua
index 84bed8d6c66..e414158ea77 100644
--- a/scripts/target/mame/mess.lua
+++ b/scripts/target/mame/mess.lua
@@ -471,6 +471,7 @@ MACHINES["NCR5380N"] = true
MACHINES["NCR5390"] = true
MACHINES["NCR539x"] = true
MACHINES["NCR53C7XX"] = true
+MACHINES["NETLIST"] = true
MACHINES["NMC9306"] = true
MACHINES["NSC810"] = true
MACHINES["NSCSI"] = true
@@ -532,7 +533,6 @@ MACHINES["UPD765"] = true
MACHINES["V3021"] = true
MACHINES["WD_FDC"] = true
MACHINES["WD11C00_17"] = true
-MACHINES["WD17XX"] = true
MACHINES["WD2010"] = true
MACHINES["WD33C93"] = true
MACHINES["WD7600"] = true
@@ -859,7 +859,7 @@ end
function createMESSProjects(_target, _subtarget, _name)
project (_name)
targetsubdir(_target .."_" .. _subtarget)
- kind "StaticLib"
+ kind (LIBTYPE)
uuid (os.uuid("drv-" .. _target .."_" .. _subtarget .. "_" .._name))
options {
diff --git a/scripts/target/mame/nl.lua b/scripts/target/mame/nl.lua
new file mode 100644
index 00000000000..2ed0cae3e19
--- /dev/null
+++ b/scripts/target/mame/nl.lua
@@ -0,0 +1,121 @@
+-- license:BSD-3-Clause
+-- copyright-holders:MAMEdev Team
+
+---------------------------------------------------------------------------
+--
+-- nl.lua
+--
+-- Compiles all drivers using netlist code
+-- Use make SUBTARGET=nl to build
+--
+---------------------------------------------------------------------------
+
+
+--------------------------------------------------
+-- Specify all the CPU cores necessary for the
+-- drivers referenced in nl.lst.
+--------------------------------------------------
+
+CPUS["Z80"] = true
+--CPUS["M6502"] = true
+--CPUS["MCS48"] = true
+--CPUS["MCS51"] = true
+--CPUS["M6800"] = true
+--CPUS["M6809"] = true
+--CPUS["M680X0"] = true
+--CPUS["TMS9900"] = true
+--CPUS["COP400"] = true
+
+--------------------------------------------------
+-- Specify all the sound cores necessary for the
+-- drivers referenced in nl.lst.
+--------------------------------------------------
+
+--SOUNDS["SAMPLES"] = true
+SOUNDS["DAC"] = true
+--SOUNDS["DISCRETE"] = true
+SOUNDS["AY8910"] = true
+--SOUNDS["YM2151"] = true
+--SOUNDS["ASTROCADE"] = true
+--SOUNDS["TMS5220"] = true
+--SOUNDS["OKIM6295"] = true
+--SOUNDS["HC55516"] = true
+--SOUNDS["YM3812"] = true
+--SOUNDS["CEM3394"] = true
+--SOUNDS["VOTRAX"] = true
+
+--------------------------------------------------
+-- specify available video cores
+--------------------------------------------------
+
+VIDEOS["FIXFREQ"] = true
+
+--------------------------------------------------
+-- specify available machine cores
+--------------------------------------------------
+
+MACHINES["NETLIST"] = true
+--MACHINES["6821PIA"] = true
+--MACHINES["TTL74148"] = true
+--MACHINES["TTL74153"] = true
+--MACHINES["TTL7474"] = true
+--MACHINES["RIOT6532"] = true
+--MACHINES["PIT8253"] = true
+--MACHINES["Z80CTC"] = true
+--MACHINES["68681"] = true
+--MACHINES["BANKDEV"] = true
+
+
+--------------------------------------------------
+-- specify available bus cores
+--------------------------------------------------
+
+-- not needed by nl.lua but build system wants at least one bus
+BUSES["CENTRONICS"] = true
+
+--------------------------------------------------
+-- This is the list of files that are necessary
+-- for building all of the drivers referenced
+-- in nl.lst
+--------------------------------------------------
+
+function createProjects_mame_nl(_target, _subtarget)
+ project ("mame_netlist")
+ targetsubdir(_target .."_" .. _subtarget)
+ kind (LIBTYPE)
+ uuid (os.uuid("drv-mame-nl"))
+
+ options {
+ "ForceCPP",
+ }
+
+ includedirs {
+ MAME_DIR .. "src/osd",
+ 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",
+ }
+
+ files{
+ MAME_DIR .. "src/mame/drivers/pong.c",
+ MAME_DIR .. "src/mame/drivers/nl_pong.c",
+ MAME_DIR .. "src/mame/drivers/nl_pongd.c",
+ MAME_DIR .. "src/mame/drivers/nl_breakout.c",
+
+ MAME_DIR .. "src/mame/drivers/1942.c",
+ MAME_DIR .. "src/mame/video/1942.c",
+ MAME_DIR .. "src/mame/drivers/popeye.c",
+ MAME_DIR .. "src/mame/video/popeye.c",
+
+ }
+end
+
+function linkProjects_mame_nl(_target, _subtarget)
+ links {
+ "mame_netlist",
+ }
+end
diff --git a/scripts/target/mame/tiny.lua b/scripts/target/mame/tiny.lua
index 350dfd5847c..9dc18d31d9a 100644
--- a/scripts/target/mame/tiny.lua
+++ b/scripts/target/mame/tiny.lua
@@ -78,7 +78,7 @@ BUSES["CENTRONICS"] = true
function createProjects_mame_tiny(_target, _subtarget)
project ("mame_tiny")
targetsubdir(_target .."_" .. _subtarget)
- kind "StaticLib"
+ kind (LIBTYPE)
uuid (os.uuid("drv-mame-tiny"))
options {