summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/src')
-rw-r--r--scripts/src/cpu.lua634
-rw-r--r--scripts/src/formats.lua332
2 files changed, 488 insertions, 478 deletions
diff --git a/scripts/src/cpu.lua b/scripts/src/cpu.lua
index db6c6853f4d..1275bfc1b7e 100644
--- a/scripts/src/cpu.lua
+++ b/scripts/src/cpu.lua
@@ -64,14 +64,14 @@ end
--@src/devices/cpu/8x300/8x300.h,CPUS["8X300"] = true
--------------------------------------------------
-if (CPUS["8X300"]~=null) then
+if CPUS["8X300"] then
files {
MAME_DIR .. "src/devices/cpu/8x300/8x300.cpp",
MAME_DIR .. "src/devices/cpu/8x300/8x300.h",
}
end
-if (CPUS["8X300"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "8X300") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/8x300/8x300dasm.h")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/8x300/8x300dasm.cpp")
end
@@ -81,7 +81,7 @@ end
--@src/devices/cpu/dspp/dspp.h,CPUS["DSPP"] = true
--------------------------------------------------
-if (CPUS["DSPP"]~=null) then
+if CPUS["DSPP"] then
files {
MAME_DIR .. "src/devices/cpu/dspp/dspp.cpp",
MAME_DIR .. "src/devices/cpu/dspp/dspp.h",
@@ -91,7 +91,7 @@ if (CPUS["DSPP"]~=null) then
}
end
-if (CPUS["DSPP"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "DSPP") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/dspp/dsppdasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/dspp/dsppdasm.h")
end
@@ -101,14 +101,14 @@ end
--@src/devices/cpu/arc/arc.h,CPUS["ARC"] = true
--------------------------------------------------
-if (CPUS["ARC"]~=null) then
+if CPUS["ARC"] then
files {
MAME_DIR .. "src/devices/cpu/arc/arc.cpp",
MAME_DIR .. "src/devices/cpu/arc/arc.h",
}
end
-if (CPUS["ARC"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "ARC") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/arc/arcdasm.h")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/arc/arcdasm.cpp")
end
@@ -118,7 +118,7 @@ end
--@src/devices/cpu/arcompact/arcompact.h,CPUS["ARCOMPACT"] = true
--------------------------------------------------
-if (CPUS["ARCOMPACT"]~=null) then
+if CPUS["ARCOMPACT"] then
files {
MAME_DIR .. "src/devices/cpu/arcompact/arcompact.cpp",
MAME_DIR .. "src/devices/cpu/arcompact/arcompact.h",
@@ -126,7 +126,7 @@ if (CPUS["ARCOMPACT"]~=null) then
}
end
-if (CPUS["ARCOMPACT"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "ARCOMPACT") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/arcompact/arcompactdasm.h")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/arcompact/arcompactdasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/arcompact/arcompactdasm_dispatch.cpp")
@@ -140,19 +140,19 @@ end
--@src/devices/cpu/arm7/arm7.h,CPUS["ARM7"] = true
--------------------------------------------------
-if (CPUS["ARM"]~=null) then
+if CPUS["ARM"] then
files {
MAME_DIR .. "src/devices/cpu/arm/arm.cpp",
MAME_DIR .. "src/devices/cpu/arm/arm.h",
}
end
-if (CPUS["ARM"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "ARM") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/arm/armdasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/arm/armdasm.h")
end
-if (CPUS["ARM7"]~=null) then
+if CPUS["ARM7"] then
files {
MAME_DIR .. "src/devices/cpu/arm7/arm7.cpp",
MAME_DIR .. "src/devices/cpu/arm7/arm7.h",
@@ -169,7 +169,7 @@ if (CPUS["ARM7"]~=null) then
}
end
-if (CPUS["ARM7"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "ARM7") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/arm7/arm7dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/arm7/arm7dasm.h")
end
@@ -179,14 +179,14 @@ end
--@src/devices/cpu/se3208/se3208.h,CPUS["SE3208"] = true
--------------------------------------------------
-if (CPUS["SE3208"]~=null) then
+if CPUS["SE3208"] then
files {
MAME_DIR .. "src/devices/cpu/se3208/se3208.cpp",
MAME_DIR .. "src/devices/cpu/se3208/se3208.h",
}
end
-if (CPUS["SE3208"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "SE3208") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/se3208/se3208dis.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/se3208/se3208dis.h")
end
@@ -196,7 +196,7 @@ end
--@src/devices/cpu/amis2000/amis2000.h,CPUS["AMIS2000"] = true
--------------------------------------------------
-if (CPUS["AMIS2000"]~=null) then
+if CPUS["AMIS2000"] then
files {
MAME_DIR .. "src/devices/cpu/amis2000/amis2000.cpp",
MAME_DIR .. "src/devices/cpu/amis2000/amis2000.h",
@@ -204,7 +204,7 @@ if (CPUS["AMIS2000"]~=null) then
}
end
-if (CPUS["AMIS2000"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "AMIS2000") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/amis2000/amis2000d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/amis2000/amis2000d.h")
end
@@ -214,7 +214,7 @@ end
--@src/devices/cpu/adsp2100/adsp2100.h,CPUS["ADSP21XX"] = true
--------------------------------------------------
-if (CPUS["ADSP21XX"]~=null) then
+if CPUS["ADSP21XX"] then
files {
MAME_DIR .. "src/devices/cpu/adsp2100/adsp2100.cpp",
MAME_DIR .. "src/devices/cpu/adsp2100/adsp2100.h",
@@ -222,7 +222,7 @@ if (CPUS["ADSP21XX"]~=null) then
}
end
-if (CPUS["ADSP21XX"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "ADSP21XX") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/adsp2100/2100dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/adsp2100/2100dasm.h")
end
@@ -232,7 +232,7 @@ end
--@src/devices/cpu/sharc/sharc.h,CPUS["ADSP21062"] = true
--------------------------------------------------
-if (CPUS["ADSP21062"]~=null) then
+if CPUS["ADSP21062"] then
files {
MAME_DIR .. "src/devices/cpu/sharc/sharc.cpp",
MAME_DIR .. "src/devices/cpu/sharc/sharc.h",
@@ -247,7 +247,7 @@ if (CPUS["ADSP21062"]~=null) then
}
end
-if (CPUS["ADSP21062"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "ADSP21062") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/sharc/sharcdsm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/sharc/sharcdsm.h")
end
@@ -257,14 +257,14 @@ end
--@src/devices/cpu/apexc/apexc.h,CPUS["APEXC"] = true
--------------------------------------------------
-if (CPUS["APEXC"]~=null) then
+if CPUS["APEXC"] then
files {
MAME_DIR .. "src/devices/cpu/apexc/apexc.cpp",
MAME_DIR .. "src/devices/cpu/apexc/apexc.h",
}
end
-if (CPUS["APEXC"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "APEXC") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/apexc/apexcdsm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/apexc/apexcdsm.h")
end
@@ -274,7 +274,7 @@ end
--@src/devices/cpu/dsp16/dsp16.h,CPUS["DSP16"] = true
--------------------------------------------------
-if (CPUS["DSP16"]~=null) then
+if CPUS["DSP16"] then
files {
MAME_DIR .. "src/devices/cpu/dsp16/dsp16.cpp",
MAME_DIR .. "src/devices/cpu/dsp16/dsp16.h",
@@ -288,7 +288,7 @@ if (CPUS["DSP16"]~=null) then
}
end
-if (CPUS["DSP16"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "DSP16") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/dsp16/dsp16dis.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/dsp16/dsp16dis.h")
end
@@ -298,7 +298,7 @@ end
--@src/devices/cpu/dsp32/dsp32.h,CPUS["DSP32C"] = true
--------------------------------------------------
-if (CPUS["DSP32C"]~=null) then
+if CPUS["DSP32C"] then
files {
MAME_DIR .. "src/devices/cpu/dsp32/dsp32.cpp",
MAME_DIR .. "src/devices/cpu/dsp32/dsp32.h",
@@ -306,7 +306,7 @@ if (CPUS["DSP32C"]~=null) then
}
end
-if (CPUS["DSP32C"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "DSP32C") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/dsp32/dsp32dis.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/dsp32/dsp32dis.h")
end
@@ -316,14 +316,14 @@ end
--@src/devices/cpu/asap/asap.h,CPUS["ASAP"] = true
--------------------------------------------------
-if (CPUS["ASAP"]~=null) then
+if CPUS["ASAP"] then
files {
MAME_DIR .. "src/devices/cpu/asap/asap.cpp",
MAME_DIR .. "src/devices/cpu/asap/asap.h",
}
end
-if (CPUS["ASAP"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "ASAP") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/asap/asapdasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/asap/asapdasm.h")
end
@@ -333,7 +333,7 @@ end
--@src/devices/cpu/am29000/am29000.h,CPUS["AM29000"] = true
--------------------------------------------------
-if (CPUS["AM29000"]~=null) then
+if CPUS["AM29000"] then
files {
MAME_DIR .. "src/devices/cpu/am29000/am29000.cpp",
MAME_DIR .. "src/devices/cpu/am29000/am29000.h",
@@ -341,7 +341,7 @@ if (CPUS["AM29000"]~=null) then
}
end
-if (CPUS["AM29000"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "AM29000") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/am29000/am29dasm.h")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/am29000/am29dasm.cpp")
end
@@ -351,14 +351,14 @@ end
--@src/devices/cpu/jaguar/jaguar.h,CPUS["JAGUAR"] = true
--------------------------------------------------
-if (CPUS["JAGUAR"]~=null) then
+if CPUS["JAGUAR"] then
files {
MAME_DIR .. "src/devices/cpu/jaguar/jaguar.cpp",
MAME_DIR .. "src/devices/cpu/jaguar/jaguar.h",
}
end
-if (CPUS["JAGUAR"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "JAGUAR") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/jaguar/jagdasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/jaguar/jagdasm.h")
end
@@ -368,14 +368,14 @@ end
--@src/devices/cpu/cubeqcpu/cubeqcpu.h,CPUS["CUBEQCPU"] = true
--------------------------------------------------
-if (CPUS["CUBEQCPU"]~=null) then
+if CPUS["CUBEQCPU"] then
files {
MAME_DIR .. "src/devices/cpu/cubeqcpu/cubeqcpu.cpp",
MAME_DIR .. "src/devices/cpu/cubeqcpu/cubeqcpu.h",
}
end
-if (CPUS["CUBEQCPU"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "CUBEQCPU") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/cubeqcpu/cubedasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/cubeqcpu/cubedasm.h")
end
@@ -385,14 +385,14 @@ end
--@src/devices/cpu/es5510/es5510.h,CPUS["ES5510"] = true
--------------------------------------------------
-if (CPUS["ES5510"]~=null) then
+if CPUS["ES5510"] then
files {
MAME_DIR .. "src/devices/cpu/es5510/es5510.cpp",
MAME_DIR .. "src/devices/cpu/es5510/es5510.h",
}
end
-if (CPUS["ES5510"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "ES5510") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/es5510/es5510d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/es5510/es5510d.h")
end
@@ -402,14 +402,14 @@ end
--@src/devices/cpu/esrip/esrip.h,CPUS["ESRIP"] = true
--------------------------------------------------
-if (CPUS["ESRIP"]~=null) then
+if CPUS["ESRIP"] then
files {
MAME_DIR .. "src/devices/cpu/esrip/esrip.cpp",
MAME_DIR .. "src/devices/cpu/esrip/esrip.h",
}
end
-if (CPUS["ESRIP"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "ESRIP") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/esrip/esripdsm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/esrip/esripdsm.h")
end
@@ -419,7 +419,7 @@ end
--@src/devices/cpu/e0c6200/e0c6200.h,CPUS["E0C6200"] = true
--------------------------------------------------
-if (CPUS["E0C6200"]~=null) then
+if CPUS["E0C6200"] then
files {
MAME_DIR .. "src/devices/cpu/e0c6200/e0c6200.cpp",
MAME_DIR .. "src/devices/cpu/e0c6200/e0c6200.h",
@@ -429,7 +429,7 @@ if (CPUS["E0C6200"]~=null) then
}
end
-if (CPUS["E0C6200"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "E0C6200") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/e0c6200/e0c6200d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/e0c6200/e0c6200d.h")
end
@@ -439,14 +439,14 @@ end
--@src/devices/cpu/cosmac/cosmac.h,CPUS["COSMAC"] = true
--------------------------------------------------
-if (CPUS["COSMAC"]~=null) then
+if CPUS["COSMAC"] then
files {
MAME_DIR .. "src/devices/cpu/cosmac/cosmac.cpp",
MAME_DIR .. "src/devices/cpu/cosmac/cosmac.h",
}
end
-if (CPUS["COSMAC"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "COSMAC") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/cosmac/cosdasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/cosmac/cosdasm.h")
end
@@ -456,7 +456,7 @@ end
--@src/devices/cpu/cops1/mm5799.h,CPUS["COPS1"] = true
--------------------------------------------------
-if (CPUS["COPS1"]~=null) then
+if CPUS["COPS1"] then
files {
MAME_DIR .. "src/devices/cpu/cops1/cops1base.cpp",
MAME_DIR .. "src/devices/cpu/cops1/cops1base.h",
@@ -466,7 +466,7 @@ if (CPUS["COPS1"]~=null) then
}
end
-if (CPUS["COPS1"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "COPS1") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/cops1/cops1d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/cops1/cops1d.h")
end
@@ -476,7 +476,7 @@ end
--@src/devices/cpu/cop400/cop400.h,CPUS["COP400"] = true
--------------------------------------------------
-if (CPUS["COP400"]~=null) then
+if CPUS["COP400"] then
files {
MAME_DIR .. "src/devices/cpu/cop400/cop400.cpp",
MAME_DIR .. "src/devices/cpu/cop400/cop400.h",
@@ -484,7 +484,7 @@ if (CPUS["COP400"]~=null) then
}
end
-if (CPUS["COP400"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "COP400") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/cop400/cop410ds.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/cop400/cop410ds.h")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/cop400/cop420ds.cpp")
@@ -500,14 +500,14 @@ end
--@src/devices/cpu/cp1610/cp1610.h,CPUS["CP1610"] = true
--------------------------------------------------
-if (CPUS["CP1610"]~=null) then
+if CPUS["CP1610"] then
files {
MAME_DIR .. "src/devices/cpu/cp1610/cp1610.cpp",
MAME_DIR .. "src/devices/cpu/cp1610/cp1610.h",
}
end
-if (CPUS["CP1610"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "CP1610") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/cp1610/1610dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/cp1610/1610dasm.h")
end
@@ -517,14 +517,14 @@ end
--@src/devices/cpu/ccpu/ccpu.h,CPUS["CCPU"] = true
--------------------------------------------------
-if (CPUS["CCPU"]~=null) then
+if CPUS["CCPU"] then
files {
MAME_DIR .. "src/devices/cpu/ccpu/ccpu.cpp",
MAME_DIR .. "src/devices/cpu/ccpu/ccpu.h",
}
end
-if (CPUS["CCPU"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "CCPU") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/ccpu/ccpudasm.h")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/ccpu/ccpudasm.cpp")
end
@@ -534,7 +534,7 @@ end
--@src/devices/cpu/t11/t11.h,CPUS["T11"] = true
--------------------------------------------------
-if (CPUS["T11"]~=null) then
+if CPUS["T11"] then
files {
MAME_DIR .. "src/devices/cpu/t11/t11.cpp",
MAME_DIR .. "src/devices/cpu/t11/t11.h",
@@ -543,7 +543,7 @@ if (CPUS["T11"]~=null) then
}
end
-if (CPUS["T11"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "T11") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/t11/t11dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/t11/t11dasm.h")
end
@@ -553,14 +553,14 @@ end
--@src/devices/cpu/pdp8/pdp8.h,CPUS["PDP8"] = true
--------------------------------------------------
-if (CPUS["PDP8"]~=null) then
+if CPUS["PDP8"] then
files {
MAME_DIR .. "src/devices/cpu/pdp8/pdp8.cpp",
MAME_DIR .. "src/devices/cpu/pdp8/pdp8.h",
}
end
-if (CPUS["PDP8"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "PDP8") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/pdp8/pdp8dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/pdp8/pdp8dasm.h")
end
@@ -570,14 +570,14 @@ end
--@src/devices/cpu/f8/f8.h,CPUS["F8"] = true
--------------------------------------------------
-if (CPUS["F8"]~=null) then
+if CPUS["F8"] then
files {
MAME_DIR .. "src/devices/cpu/f8/f8.cpp",
MAME_DIR .. "src/devices/cpu/f8/f8.h",
}
end
-if (CPUS["F8"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "F8") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/f8/f8dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/f8/f8dasm.h")
end
@@ -587,14 +587,14 @@ end
--@src/devices/cpu/fr/fr.h,CPUS["FR"] = true
--------------------------------------------------
-if (CPUS["FR"]~=null) then
+if CPUS["FR"] then
files {
MAME_DIR .. "src/devices/cpu/fr/fr.cpp",
MAME_DIR .. "src/devices/cpu/fr/fr.h",
}
end
-if (CPUS["FR"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "FR") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/fr/frdasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/fr/frdasm.h")
end
@@ -604,7 +604,7 @@ end
--@src/devices/cpu/g65816/g65816.h,CPUS["G65816"] = true
--------------------------------------------------
-if (CPUS["G65816"]~=null) then
+if CPUS["G65816"] then
files {
MAME_DIR .. "src/devices/cpu/g65816/g65816.cpp",
MAME_DIR .. "src/devices/cpu/g65816/g65816.h",
@@ -619,7 +619,7 @@ if (CPUS["G65816"]~=null) then
}
end
-if (CPUS["G65816"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "G65816") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/g65816/g65816ds.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/g65816/g65816ds.h")
end
@@ -629,14 +629,14 @@ end
--@src/devices/cpu/h16/hd641016.h,CPUS["H16"] = true
--------------------------------------------------
-if (CPUS["H16"]~=null) then
+if CPUS["H16"] then
files {
MAME_DIR .. "src/devices/cpu/h16/hd641016.cpp",
MAME_DIR .. "src/devices/cpu/h16/hd641016.h",
}
end
-if (CPUS["H16"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "H16") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/h16/h16dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/h16/h16dasm.h")
end
@@ -646,7 +646,7 @@ end
--@src/devices/cpu/h8/h8.h,CPUS["H8"] = true
--------------------------------------------------
-if (CPUS["H8"]~=null) then
+if CPUS["H8"] then
files {
MAME_DIR .. "src/devices/cpu/h8/h8.cpp",
MAME_DIR .. "src/devices/cpu/h8/h8.h",
@@ -711,7 +711,7 @@ if (CPUS["H8"]~=null) then
}
end
-if (CPUS["H8"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "H8") then
table.insert(disasm_custombuildtask, { MAME_DIR .. "src/devices/cpu/h8/h8.lst" , GEN_DIR .. "emu/cpu/h8/h8d.hxx", { MAME_DIR .. "src/devices/cpu/h8/h8make.py" }, {"@echo Generating H8-300 disassembler source file...", PYTHON .. " $(1) $(<) d o $(@)" }})
table.insert(disasm_custombuildtask, { MAME_DIR .. "src/devices/cpu/h8/h8.lst" , GEN_DIR .. "emu/cpu/h8/h8hd.hxx", { MAME_DIR .. "src/devices/cpu/h8/h8make.py" }, {"@echo Generating H8-300H disassembler source file...", PYTHON .. " $(1) $(<) d h $(@)" }})
table.insert(disasm_custombuildtask, { MAME_DIR .. "src/devices/cpu/h8/h8.lst" , GEN_DIR .. "emu/cpu/h8/h8s2000d.hxx", { MAME_DIR .. "src/devices/cpu/h8/h8make.py" }, {"@echo Generating H8S/2000 disassembler source file...", PYTHON .. " $(1) $(<) d s20 $(@)" }})
@@ -737,7 +737,7 @@ end
--@src/devices/cpu/h8500/h8500.h,CPUS["H8500"] = true
--------------------------------------------------
-if (CPUS["H8500"]~=null) then
+if CPUS["H8500"] then
files {
MAME_DIR .. "src/devices/cpu/h8500/h8500.cpp",
MAME_DIR .. "src/devices/cpu/h8500/h8500.h",
@@ -752,7 +752,7 @@ if (CPUS["H8500"]~=null) then
}
end
-if (CPUS["H8500"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "H8500") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/h8500/h8500dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/h8500/h8500dasm.h")
end
@@ -762,14 +762,14 @@ end
--@src/devices/cpu/hcd62121/hcd62121.h,CPUS["HCD62121"] = true
--------------------------------------------------
-if (CPUS["HCD62121"]~=null) then
+if CPUS["HCD62121"] then
files {
MAME_DIR .. "src/devices/cpu/hcd62121/hcd62121.cpp",
MAME_DIR .. "src/devices/cpu/hcd62121/hcd62121.h",
}
end
-if (CPUS["HCD62121"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "HCD62121") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/hcd62121/hcd62121d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/hcd62121/hcd62121d.h")
end
@@ -779,7 +779,7 @@ end
--@src/devices/cpu/hmcs40/hmcs40.h,CPUS["HMCS40"] = true
--------------------------------------------------
-if (CPUS["HMCS40"]~=null) then
+if CPUS["HMCS40"] then
files {
MAME_DIR .. "src/devices/cpu/hmcs40/hmcs40.cpp",
MAME_DIR .. "src/devices/cpu/hmcs40/hmcs40.h",
@@ -787,7 +787,7 @@ if (CPUS["HMCS40"]~=null) then
}
end
-if (CPUS["HMCS40"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "HMCS40") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/hmcs40/hmcs40d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/hmcs40/hmcs40d.h")
end
@@ -798,7 +798,7 @@ end
--@src/devices/cpu/sh/sh4.h,CPUS["SH"] = true
--------------------------------------------------
-if (CPUS["SH"]~=null) then
+if CPUS["SH"] then
files {
MAME_DIR .. "src/devices/cpu/sh/sh.cpp",
MAME_DIR .. "src/devices/cpu/sh/sh.h",
@@ -829,7 +829,7 @@ if (CPUS["SH"]~=null) then
}
end
-if (CPUS["SH"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "SH") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/sh/sh_dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/sh/sh_dasm.h")
end
@@ -839,14 +839,14 @@ end
--@src/devices/cpu/st62xx/st62xx.h,CPUS["ST62XX"] = true
--------------------------------------------------
-if (CPUS["ST62XX"]~=null) then
+if CPUS["ST62XX"] then
files {
MAME_DIR .. "src/devices/cpu/st62xx/st62xx.cpp",
MAME_DIR .. "src/devices/cpu/st62xx/st62xx.h",
}
end
-if (CPUS["ST62XX"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "ST62XX") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/st62xx/st62xx_dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/st62xx/st62xx_dasm.h")
end
@@ -856,14 +856,14 @@ end
--@src/devices/cpu/hphybrid/hphybrid.h,CPUS["HPHYBRID"] = true
--------------------------------------------------
-if (CPUS["HPHYBRID"]~=null) then
+if CPUS["HPHYBRID"] then
files {
MAME_DIR .. "src/devices/cpu/hphybrid/hphybrid.cpp",
MAME_DIR .. "src/devices/cpu/hphybrid/hphybrid.h",
}
end
-if (CPUS["HPHYBRID"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "HPHYBRID") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/hphybrid/hphybrid_dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/hphybrid/hphybrid_dasm.h")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/hphybrid/hphybrid_defs.h")
@@ -874,14 +874,14 @@ end
--@src/devices/cpu/nanoprocessor/nanoprocessor.h,CPUS["NANOPROCESSOR"] = true
--------------------------------------------------
-if (CPUS["NANOPROCESSOR"]~=null) then
+if CPUS["NANOPROCESSOR"] then
files {
MAME_DIR .. "src/devices/cpu/nanoprocessor/nanoprocessor.cpp",
MAME_DIR .. "src/devices/cpu/nanoprocessor/nanoprocessor.h",
}
end
-if (CPUS["NANOPROCESSOR"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "NANOPROCESSOR") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/nanoprocessor/nanoprocessor_dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/nanoprocessor/nanoprocessor_dasm.h")
end
@@ -891,14 +891,14 @@ end
--@src/devices/cpu/capricorn/capricorn.h,CPUS["CAPRICORN"] = true
--------------------------------------------------
-if (CPUS["CAPRICORN"]~=null) then
+if CPUS["CAPRICORN"] then
files {
MAME_DIR .. "src/devices/cpu/capricorn/capricorn.cpp",
MAME_DIR .. "src/devices/cpu/capricorn/capricorn.h",
}
end
-if (CPUS["CAPRICORN"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "CAPRICORN") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/capricorn/capricorn_dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/capricorn/capricorn_dasm.h")
end
@@ -908,14 +908,14 @@ end
--@src/devices/cpu/h6280/h6280.h,CPUS["H6280"] = true
--------------------------------------------------
-if (CPUS["H6280"]~=null) then
+if CPUS["H6280"] then
files {
MAME_DIR .. "src/devices/cpu/h6280/h6280.cpp",
MAME_DIR .. "src/devices/cpu/h6280/h6280.h",
}
end
-if (CPUS["H6280"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "H6280") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/h6280/6280dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/h6280/6280dasm.h")
end
@@ -925,7 +925,7 @@ end
--@src/devices/cpu/e132xs/e132xs.h,CPUS["E1"] = true
--------------------------------------------------
-if (CPUS["E1"]~=null) then
+if CPUS["E1"] then
files {
MAME_DIR .. "src/devices/cpu/e132xs/e132xs.cpp",
MAME_DIR .. "src/devices/cpu/e132xs/e132xs.h",
@@ -937,7 +937,7 @@ if (CPUS["E1"]~=null) then
}
end
-if (CPUS["E1"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "E1") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/e132xs/32xsdasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/e132xs/32xsdasm.h")
end
@@ -947,14 +947,14 @@ end
--@src/devices/cpu/ie15/ie15.h,CPUS["IE15"] = true
--------------------------------------------------
-if (CPUS["IE15"]~=null) then
+if CPUS["IE15"] then
files {
MAME_DIR .. "src/devices/cpu/ie15/ie15.cpp",
MAME_DIR .. "src/devices/cpu/ie15/ie15.h",
}
end
-if (CPUS["IE15"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "IE15") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/ie15/ie15dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/ie15/ie15dasm.h")
end
@@ -964,14 +964,14 @@ end
--@src/devices/cpu/mcs40/mcs40.h,CPUS["MCS40"] = true
--------------------------------------------------
-if (CPUS["MCS40"]~=null) then
+if CPUS["MCS40"] then
files {
MAME_DIR .. "src/devices/cpu/mcs40/mcs40.cpp",
MAME_DIR .. "src/devices/cpu/mcs40/mcs40.h",
}
end
-if (CPUS["MCS40"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "MCS40") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/mcs40/mcs40dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/mcs40/mcs40dasm.h")
end
@@ -981,14 +981,14 @@ end
--@src/devices/cpu/i8008/i8008.h,CPUS["I8008"] = true
--------------------------------------------------
-if (CPUS["I8008"]~=null) then
+if CPUS["I8008"] then
files {
MAME_DIR .. "src/devices/cpu/i8008/i8008.cpp",
MAME_DIR .. "src/devices/cpu/i8008/i8008.h",
}
end
-if (CPUS["I8008"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "I8008") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/i8008/8008dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/i8008/8008dasm.h")
end
@@ -998,14 +998,14 @@ end
--@src/devices/cpu/scmp/scmp.h,CPUS["SCMP"] = true
--------------------------------------------------
-if (CPUS["SCMP"]~=null) then
+if CPUS["SCMP"] then
files {
MAME_DIR .. "src/devices/cpu/scmp/scmp.cpp",
MAME_DIR .. "src/devices/cpu/scmp/scmp.h",
}
end
-if (CPUS["SCMP"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "SCMP") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/scmp/scmpdasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/scmp/scmpdasm.h")
end
@@ -1015,14 +1015,14 @@ end
--@src/devices/cpu/i8085/i8085.h,CPUS["I8085"] = true
--------------------------------------------------
-if (CPUS["I8085"]~=null) then
+if CPUS["I8085"] then
files {
MAME_DIR .. "src/devices/cpu/i8085/i8085.cpp",
MAME_DIR .. "src/devices/cpu/i8085/i8085.h",
}
end
-if (CPUS["I8085"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "I8085") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/i8085/8085dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/i8085/8085dasm.h")
end
@@ -1032,7 +1032,7 @@ end
--@src/devices/cpu/i8089/i8089.h,CPUS["I8089"] = true
--------------------------------------------------
-if (CPUS["I8089"]~=null) then
+if CPUS["I8089"] then
files {
MAME_DIR .. "src/devices/cpu/i8089/i8089.cpp",
MAME_DIR .. "src/devices/cpu/i8089/i8089.h",
@@ -1042,7 +1042,7 @@ if (CPUS["I8089"]~=null) then
}
end
-if (CPUS["I8089"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "I8089") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/i8089/i8089_dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/i8089/i8089_dasm.h")
end
@@ -1052,14 +1052,14 @@ end
--@src/devices/cpu/mcs48/mcs48.h,CPUS["MCS48"] = true
--------------------------------------------------
-if (CPUS["MCS48"]~=null) then
+if CPUS["MCS48"] then
files {
MAME_DIR .. "src/devices/cpu/mcs48/mcs48.cpp",
MAME_DIR .. "src/devices/cpu/mcs48/mcs48.h",
}
end
-if (CPUS["MCS48"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "MCS48") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/mcs48/mcs48dsm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/mcs48/mcs48dsm.h")
end
@@ -1069,7 +1069,7 @@ end
--@src/devices/cpu/mcs51/mcs51.h,CPUS["MCS51"] = true
--------------------------------------------------
-if (CPUS["MCS51"]~=null) then
+if CPUS["MCS51"] then
files {
MAME_DIR .. "src/devices/cpu/mcs51/mcs51.cpp",
MAME_DIR .. "src/devices/cpu/mcs51/mcs51.h",
@@ -1079,7 +1079,7 @@ if (CPUS["MCS51"]~=null) then
}
end
-if (CPUS["MCS51"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "MCS51") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/mcs51/mcs51dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/mcs51/mcs51dasm.h")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/mcs51/axc51-core_dasm.cpp")
@@ -1091,7 +1091,7 @@ end
--@src/devices/cpu/mcs96/mcs96.h,CPUS["MCS96"] = true
--------------------------------------------------
-if (CPUS["MCS96"]~=null) then
+if CPUS["MCS96"] then
files {
MAME_DIR .. "src/devices/cpu/mcs96/mcs96.cpp",
MAME_DIR .. "src/devices/cpu/mcs96/mcs96.h",
@@ -1113,7 +1113,7 @@ if (CPUS["MCS96"]~=null) then
}
end
-if (CPUS["MCS96"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "MCS96") then
table.insert(disasm_custombuildtask, { MAME_DIR .. "src/devices/cpu/mcs96/mcs96ops.lst", GEN_DIR .. "emu/cpu/mcs96/i8x9xd.hxx", { MAME_DIR .. "src/devices/cpu/mcs96/mcs96make.py" }, {"@echo Generating i8x9x disassembler source file...", PYTHON .. " $(1) d i8x9x $(<) $(2) $(@)" }})
table.insert(disasm_custombuildtask, { MAME_DIR .. "src/devices/cpu/mcs96/mcs96ops.lst", GEN_DIR .. "emu/cpu/mcs96/i8xc196d.hxx", { MAME_DIR .. "src/devices/cpu/mcs96/mcs96make.py" }, {"@echo Generating i8xc196 disassembler source file...", PYTHON .. " $(1) d i8xc196 $(<) $(2) $(@)" }})
@@ -1132,7 +1132,7 @@ if (CPUS["MCS96"]~=null or _OPTIONS["with-tools"]) then
--@src/devices/cpu/i386/i386.h,CPUS["I386"] = true
--------------------------------------------------
-if (CPUS["I86"]~=null) then
+if CPUS["I86"] then
files {
MAME_DIR .. "src/devices/cpu/i86/i86.cpp",
MAME_DIR .. "src/devices/cpu/i86/i86.h",
@@ -1144,12 +1144,15 @@ if (CPUS["I86"]~=null) then
}
end
-if (CPUS["I86"]~=null or CPUS["I386"]~=null or CPU_INCLUDE_DRC or _OPTIONS["with-tools"]) then
+-- Beware that opt_tool can set the value, so we want both to be executed always
+local want_disasm_i86 = opt_tool(CPUS, "I86")
+local want_disasm_i386 = opt_tool(CPUS, "I386")
+if want_disasm_i86 or want_disasm_i386 or CPU_INCLUDE_DRC then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/i386/i386dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/i386/i386dasm.h")
end
-if (CPUS["I386"]~=null) then
+if CPUS["I386"] then
files {
MAME_DIR .. "src/devices/cpu/i386/i386.cpp",
MAME_DIR .. "src/devices/cpu/i386/i386.h",
@@ -1176,7 +1179,7 @@ end
--@src/devices/cpu/i860/i860.h,CPUS["I860"] = true
--------------------------------------------------
-if (CPUS["I860"]~=null) then
+if CPUS["I860"] then
files {
MAME_DIR .. "src/devices/cpu/i860/i860.cpp",
MAME_DIR .. "src/devices/cpu/i860/i860.h",
@@ -1184,7 +1187,7 @@ if (CPUS["I860"]~=null) then
}
end
-if (CPUS["I860"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "I860") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/i860/i860dis.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/i860/i860dis.h")
end
@@ -1194,14 +1197,14 @@ end
--@src/devices/cpu/i960/i960.h,CPUS["I960"] = true
--------------------------------------------------
-if (CPUS["I960"]~=null) then
+if CPUS["I960"] then
files {
MAME_DIR .. "src/devices/cpu/i960/i960.cpp",
MAME_DIR .. "src/devices/cpu/i960/i960.h",
}
end
-if (CPUS["I960"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "I960") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/i960/i960dis.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/i960/i960dis.h")
end
@@ -1211,7 +1214,7 @@ end
--@src/devices/cpu/lh5801/lh5801.h,CPUS["LH5801"] = true
--------------------------------------------------
-if (CPUS["LH5801"]~=null) then
+if CPUS["LH5801"] then
files {
MAME_DIR .. "src/devices/cpu/lh5801/lh5801.cpp",
MAME_DIR .. "src/devices/cpu/lh5801/lh5801.h",
@@ -1219,7 +1222,7 @@ if (CPUS["LH5801"]~=null) then
}
end
-if (CPUS["LH5801"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "LH5801") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/lh5801/5801dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/lh5801/5801dasm.h")
end
@@ -1229,14 +1232,14 @@ end
--@src/devices/cpu/ssem/ssem.h,CPUS["SSEM"] = true
--------------------------------------------------
-if (CPUS["SSEM"]~=null) then
+if CPUS["SSEM"] then
files {
MAME_DIR .. "src/devices/cpu/ssem/ssem.cpp",
MAME_DIR .. "src/devices/cpu/ssem/ssem.h",
}
end
-if (CPUS["SSEM"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "SSEM") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/ssem/ssemdasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/ssem/ssemdasm.h")
end
@@ -1246,14 +1249,14 @@ end
--@src/devices/cpu/diablo/diablo1300.h,CPUS["DIABLO"] = true
--------------------------------------------------
-if (CPUS["DIABLO"]~=null) then
+if CPUS["DIABLO"] then
files {
MAME_DIR .. "src/devices/cpu/diablo/diablo1300.cpp",
MAME_DIR .. "src/devices/cpu/diablo/diablo1300.h",
}
end
-if (CPUS["DIABLO"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "DIABLO") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/diablo/diablo1300dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/diablo/diablo1300dasm.h")
end
@@ -1263,14 +1266,14 @@ end
--@src/devices/cpu/mb88xx/mb88xx.h,CPUS["MB88XX"] = true
--------------------------------------------------
-if (CPUS["MB88XX"]~=null) then
+if CPUS["MB88XX"] then
files {
MAME_DIR .. "src/devices/cpu/mb88xx/mb88xx.cpp",
MAME_DIR .. "src/devices/cpu/mb88xx/mb88xx.h",
}
end
-if (CPUS["MB88XX"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "MB88XX") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/mb88xx/mb88dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/mb88xx/mb88dasm.h")
end
@@ -1280,14 +1283,14 @@ end
--@src/devices/cpu/mb86233/mb86233.h,CPUS["MB86233"] = true
--------------------------------------------------
-if (CPUS["MB86233"]~=null) then
+if CPUS["MB86233"] then
files {
MAME_DIR .. "src/devices/cpu/mb86233/mb86233.cpp",
MAME_DIR .. "src/devices/cpu/mb86233/mb86233.h",
}
end
-if (CPUS["MB86233"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "MB86233") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/mb86233/mb86233d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/mb86233/mb86233d.h")
end
@@ -1297,7 +1300,7 @@ end
--@src/devices/cpu/mb86235/mb86235.h,CPUS["MB86235"] = true
--------------------------------------------------
-if (CPUS["MB86235"]~=null) then
+if CPUS["MB86235"] then
files {
MAME_DIR .. "src/devices/cpu/mb86235/mb86235.cpp",
MAME_DIR .. "src/devices/cpu/mb86235/mb86235.h",
@@ -1308,7 +1311,7 @@ if (CPUS["MB86235"]~=null) then
}
end
-if (CPUS["MB86235"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "MB86235") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/mb86235/mb86235d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/mb86235/mb86235d.h")
end
@@ -1318,14 +1321,14 @@ end
--@src/devices/cpu/pic16c5x/pic16c5x.h,CPUS["PIC16C5X"] = true
--------------------------------------------------
-if (CPUS["PIC16C5X"]~=null) then
+if CPUS["PIC16C5X"] then
files {
MAME_DIR .. "src/devices/cpu/pic16c5x/pic16c5x.cpp",
MAME_DIR .. "src/devices/cpu/pic16c5x/pic16c5x.h",
}
end
-if (CPUS["PIC16C5X"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "PIC16C5X") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/pic16c5x/16c5xdsm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/pic16c5x/16c5xdsm.h")
end
@@ -1335,7 +1338,7 @@ end
--@src/devices/cpu/pic1670/pic1670.h,CPUS["PIC1670"] = true
--------------------------------------------------
-if (CPUS["PIC1670"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "PIC1670") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/pic1670/pic1670d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/pic1670/pic1670d.h")
end
@@ -1345,14 +1348,14 @@ end
--@src/devices/cpu/pic16c62x/pic16c62x.h,CPUS["PIC16C62X"] = true
--------------------------------------------------
-if (CPUS["PIC16C62X"]~=null) then
+if CPUS["PIC16C62X"] then
files {
MAME_DIR .. "src/devices/cpu/pic16c62x/pic16c62x.cpp",
MAME_DIR .. "src/devices/cpu/pic16c62x/pic16c62x.h",
}
end
-if (CPUS["PIC16C62X"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "PIC16C62X") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/pic16c62x/16c62xdsm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/pic16c62x/16c62xdsm.h")
end
@@ -1362,7 +1365,7 @@ end
--@src/devices/cpu/pic16/pic16.h,CPUS["PIC16"] = true
--------------------------------------------------
-if (CPUS["PIC16"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "PIC16") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/pic16/pic16d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/pic16/pic16d.h")
end
@@ -1372,7 +1375,7 @@ end
--@src/devices/cpu/pic17/pic17.h,CPUS["PIC17"] = true
--------------------------------------------------
-if (CPUS["PIC17"]~=null) then
+if CPUS["PIC17"] then
files {
MAME_DIR .. "src/devices/cpu/pic17/pic17.cpp",
MAME_DIR .. "src/devices/cpu/pic17/pic17.h",
@@ -1381,7 +1384,7 @@ if (CPUS["PIC17"]~=null) then
}
end
-if (CPUS["PIC17"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "PIC17") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/pic17/pic17d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/pic17/pic17d.h")
end
@@ -1391,14 +1394,14 @@ end
--@src/devices/cpu/mips/mips1.h,CPUS["MIPS1"] = true
--------------------------------------------------
-if (CPUS["MIPS1"]~=null) then
+if CPUS["MIPS1"] then
files {
MAME_DIR .. "src/devices/cpu/mips/mips1.cpp",
MAME_DIR .. "src/devices/cpu/mips/mips1.h",
}
end
-if (CPUS["MIPS1"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "MIPS1") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/mips/mips1dsm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/mips/mips1dsm.h")
end
@@ -1409,7 +1412,7 @@ end
--@src/devices/cpu/mips/r4000.h,CPUS["MIPS3"] = true
--------------------------------------------------
-if (CPUS["MIPS3"]~=null) then
+if CPUS["MIPS3"] then
files {
MAME_DIR .. "src/devices/cpu/mips/mips3com.cpp",
MAME_DIR .. "src/devices/cpu/mips/mips3com.h",
@@ -1428,7 +1431,7 @@ if (CPUS["MIPS3"]~=null) then
}
end
-if (CPUS["MIPS3"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "MIPS3") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/mips/mips3dsm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/mips/mips3dsm.h")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/mips/vudasm.cpp")
@@ -1440,7 +1443,7 @@ end
--@src/devices/cpu/psx/psx.h,CPUS["PSX"] = true
--------------------------------------------------
-if (CPUS["PSX"]~=null) then
+if CPUS["PSX"] then
files {
MAME_DIR .. "src/devices/cpu/psx/psx.cpp",
MAME_DIR .. "src/devices/cpu/psx/psx.h",
@@ -1460,7 +1463,7 @@ if (CPUS["PSX"]~=null) then
}
end
-if (CPUS["PSX"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "PSX") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/psx/psxdasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/psx/psxdasm.h")
end
@@ -1470,7 +1473,7 @@ end
--@src/devices/cpu/melps4/melps4.h,CPUS["MELPS4"] = true
--------------------------------------------------
-if (CPUS["MELPS4"]~=null) then
+if CPUS["MELPS4"] then
files {
MAME_DIR .. "src/devices/cpu/melps4/melps4.cpp",
MAME_DIR .. "src/devices/cpu/melps4/melps4.h",
@@ -1480,7 +1483,7 @@ if (CPUS["MELPS4"]~=null) then
}
end
-if (CPUS["MELPS4"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "MELPS4") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/melps4/melps4d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/melps4/melps4d.h")
end
@@ -1489,7 +1492,7 @@ end
-- Mitsubishi M32C, disassembler only
--------------------------------------------------
-if (_OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "M23C") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/m32c/m32cdasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/m32c/m32cdasm.h")
end
@@ -1499,7 +1502,7 @@ end
--@src/devices/cpu/m37710/m37710.h,CPUS["M37710"] = true
--------------------------------------------------
-if (CPUS["M37710"]~=null) then
+if CPUS["M37710"] then
files {
MAME_DIR .. "src/devices/cpu/m37710/m37710.cpp",
MAME_DIR .. "src/devices/cpu/m37710/m37710.h",
@@ -1513,7 +1516,7 @@ if (CPUS["M37710"]~=null) then
}
end
-if (CPUS["M37710"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "M37710") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/m37710/m7700ds.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/m37710/m7700ds.h")
end
@@ -1548,7 +1551,7 @@ end
--------------------------------------------------
-if (CPUS["M6502"]~=null) then
+if CPUS["M6502"] then
files {
MAME_DIR .. "src/devices/cpu/m6502/deco16.cpp",
MAME_DIR .. "src/devices/cpu/m6502/deco16.h",
@@ -1621,7 +1624,7 @@ if (CPUS["M6502"]~=null) then
}
end
-if (CPUS["ST2XXX"]~=null) then
+if CPUS["ST2XXX"] then
files {
MAME_DIR .. "src/devices/cpu/m6502/st2xxx.cpp",
MAME_DIR .. "src/devices/cpu/m6502/st2xxx.h",
@@ -1640,7 +1643,7 @@ if (CPUS["ST2XXX"]~=null) then
}
end
-if (CPUS["XAVIX"]~=null) then
+if CPUS["XAVIX"] then
files {
MAME_DIR .. "src/devices/cpu/m6502/xavix.cpp",
MAME_DIR .. "src/devices/cpu/m6502/xavix.h",
@@ -1655,7 +1658,7 @@ if (CPUS["XAVIX"]~=null) then
}
end
-if (CPUS["XAVIX2000"]~=null) then
+if CPUS["XAVIX2000"] then
files {
MAME_DIR .. "src/devices/cpu/m6502/xavix2000.cpp",
MAME_DIR .. "src/devices/cpu/m6502/xavix2000.h",
@@ -1670,7 +1673,7 @@ if (CPUS["XAVIX2000"]~=null) then
}
end
-if (CPUS["M6502"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "M6502") then
table.insert(disasm_custombuildtask, { MAME_DIR .. "src/devices/cpu/m6502/odeco16.lst", GEN_DIR .. "emu/cpu/m6502/deco16d.hxx", { MAME_DIR .. "src/devices/cpu/m6502/m6502make.py", MAME_DIR .. "src/devices/cpu/m6502/ddeco16.lst" }, {"@echo Generating deco16 disassembler source file...", PYTHON .. " $(1) d deco16 $(<) $(2) $(@)" }})
table.insert(disasm_custombuildtask, { MAME_DIR .. "src/devices/cpu/m6502/om4510.lst", GEN_DIR .. "emu/cpu/m6502/m4510d.hxx", { MAME_DIR .. "src/devices/cpu/m6502/m6502make.py", MAME_DIR .. "src/devices/cpu/m6502/dm4510.lst" }, {"@echo Generating m4510 disassembler source file...", PYTHON .. " $(1) d m4510 $(<) $(2) $(@)" }})
table.insert(disasm_custombuildtask, { MAME_DIR .. "src/devices/cpu/m6502/om6502.lst", GEN_DIR .. "emu/cpu/m6502/m6502d.hxx", { MAME_DIR .. "src/devices/cpu/m6502/m6502make.py", MAME_DIR .. "src/devices/cpu/m6502/dm6502.lst" }, {"@echo Generating m6502 disassembler source file...", PYTHON .. " $(1) d m6502 $(<) $(2) $(@)" }})
@@ -1719,7 +1722,7 @@ if (CPUS["M6502"]~=null or _OPTIONS["with-tools"]) then
table.insert(disasm_files, MAME_DIR .. "src/devices/cpu/m6502/r65c19d.h")
end
-if (CPUS["XAVIX"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "XAVIX") then
table.insert(disasm_custombuildtask, { MAME_DIR .. "src/devices/cpu/m6502/oxavix.lst", GEN_DIR .. "emu/cpu/m6502/xavixd.hxx", { MAME_DIR .. "src/devices/cpu/m6502/m6502make.py", MAME_DIR .. "src/devices/cpu/m6502/dxavix.lst" }, {"@echo Generating xavix disassembler source file...", PYTHON .. " $(1) d xavix $(<) $(2) $(@)" }})
table.insert(disasm_dependency, { MAME_DIR .. "src/devices/cpu/m6502/xavixd.cpp", GEN_DIR .. "emu/cpu/m6502/xavixd.hxx" })
@@ -1728,7 +1731,7 @@ if (CPUS["XAVIX"]~=null or _OPTIONS["with-tools"]) then
table.insert(disasm_files, MAME_DIR .. "src/devices/cpu/m6502/xavixd.h")
end
-if (CPUS["XAVIX2000"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "XAVIX2000") then
table.insert(disasm_custombuildtask, { MAME_DIR .. "src/devices/cpu/m6502/oxavix2000.lst", GEN_DIR .. "emu/cpu/m6502/xavix2000d.hxx", { MAME_DIR .. "src/devices/cpu/m6502/m6502make.py", MAME_DIR .. "src/devices/cpu/m6502/dxavix2000.lst" }, {"@echo Generating xavix2000 disassembler source file...", PYTHON .. " $(1) d xavix2000 $(<) $(2) $(@)" }})
table.insert(disasm_dependency, { MAME_DIR .. "src/devices/cpu/m6502/xavix2000d.cpp", GEN_DIR .. "emu/cpu/m6502/xavix2000d.hxx" })
@@ -1743,7 +1746,7 @@ end
--@src/devices/cpu/m6800/m6801.h,CPUS["M6800"] = true
--------------------------------------------------
-if (CPUS["M6800"]~=null) then
+if CPUS["M6800"] then
files {
MAME_DIR .. "src/devices/cpu/m6800/m6800.cpp",
MAME_DIR .. "src/devices/cpu/m6800/m6800.h",
@@ -1753,7 +1756,7 @@ if (CPUS["M6800"]~=null) then
}
end
-if (CPUS["M6800"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "M6800") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/m6800/6800dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/m6800/6800dasm.h")
end
@@ -1763,7 +1766,7 @@ end
--@src/devices/cpu/m6805/m6805.h,CPUS["M6805"] = true
--------------------------------------------------
-if (CPUS["M6805"]~=null) then
+if CPUS["M6805"] then
files {
MAME_DIR .. "src/devices/cpu/m6805/m6805.cpp",
MAME_DIR .. "src/devices/cpu/m6805/m6805.h",
@@ -1776,7 +1779,7 @@ if (CPUS["M6805"]~=null) then
}
end
-if (CPUS["M6805"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "M6805") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/m6805/6805dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/m6805/6805dasm.h")
end
@@ -1788,7 +1791,7 @@ end
--@src/devices/cpu/m6809/konami.h,CPUS["M6809"] = true
--------------------------------------------------
-if (CPUS["M6809"]~=null) then
+if CPUS["M6809"] then
files {
MAME_DIR .. "src/devices/cpu/m6809/m6809.cpp",
MAME_DIR .. "src/devices/cpu/m6809/m6809.h",
@@ -1812,7 +1815,7 @@ if (CPUS["M6809"]~=null) then
}
end
-if (CPUS["M6809"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "M6809") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/m6809/6x09dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/m6809/6x09dasm.h")
end
@@ -1822,7 +1825,7 @@ end
--@src/devices/cpu/mc68hc11/mc68hc11.h,CPUS["MC68HC11"] = true
--------------------------------------------------
-if (CPUS["MC68HC11"]~=null) then
+if CPUS["MC68HC11"] then
files {
MAME_DIR .. "src/devices/cpu/mc68hc11/mc68hc11.cpp",
MAME_DIR .. "src/devices/cpu/mc68hc11/mc68hc11.h",
@@ -1831,7 +1834,7 @@ if (CPUS["MC68HC11"]~=null) then
}
end
-if (CPUS["MC68HC11"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "MC68HC11") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/mc68hc11/hc11dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/mc68hc11/hc11dasm.h")
end
@@ -1841,7 +1844,7 @@ end
--@src/devices/cpu/m68000/m68000.h,CPUS["M680X0"] = true
--------------------------------------------------
-if (CPUS["M680X0"]~=null) then
+if CPUS["M680X0"] then
files {
MAME_DIR .. "src/devices/cpu/m68000/m68kcpu.cpp",
MAME_DIR .. "src/devices/cpu/m68000/m68kcpu.h",
@@ -1853,7 +1856,7 @@ if (CPUS["M680X0"]~=null) then
}
end
-if (CPUS["M680X0"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "M680X0") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/m68000/m68kdasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/m68000/m68kdasm.h")
end
@@ -1863,7 +1866,7 @@ end
--@src/devices/cpu/dsp56156/dsp56156.h,CPUS["DSP56156"] = true
--------------------------------------------------
-if (CPUS["DSP56156"]~=null) then
+if CPUS["DSP56156"] then
files {
MAME_DIR .. "src/devices/cpu/dsp56156/dsp56156.cpp",
MAME_DIR .. "src/devices/cpu/dsp56156/dsp56156.h",
@@ -1876,7 +1879,7 @@ if (CPUS["DSP56156"]~=null) then
}
end
-if (CPUS["DSP56156"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "DSP56156") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/dsp56156/dsp56dsm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/dsp56156/dsp56dsm.h")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/dsp56156/opcode.cpp")
@@ -1894,14 +1897,14 @@ end
--@src/devices/cpu/pdp1/pdp1.h,CPUS["PDP1"] = true
--------------------------------------------------
-if (CPUS["PDP1"]~=null) then
+if CPUS["PDP1"] then
files {
MAME_DIR .. "src/devices/cpu/pdp1/pdp1.cpp",
MAME_DIR .. "src/devices/cpu/pdp1/pdp1.h",
}
end
-if (CPUS["PDP1"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "PDP1") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/pdp1/pdp1dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/pdp1/pdp1dasm.h")
end
@@ -1911,14 +1914,14 @@ end
--@src/devices/cpu/patinhofeio/patinhofeio_cpu.h,CPUS["PATINHOFEIO"] = true
--------------------------------------------------
-if (CPUS["PATINHOFEIO"]~=null) then
+if CPUS["PATINHOFEIO"] then
files {
MAME_DIR .. "src/devices/cpu/patinhofeio/patinho_feio.cpp",
MAME_DIR .. "src/devices/cpu/patinhofeio/patinhofeio_cpu.h",
}
end
-if (CPUS["PATINHOFEIO"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "PATINHOFEIO") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/patinhofeio/patinho_feio_dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/patinhofeio/patinho_feio_dasm.h")
end
@@ -1928,7 +1931,7 @@ end
--@src/devices/cpu/powerpc/ppc.h,CPUS["POWERPC"] = true
--------------------------------------------------
-if (CPUS["POWERPC"]~=null) then
+if CPUS["POWERPC"] then
files {
MAME_DIR .. "src/devices/cpu/powerpc/ppccom.cpp",
MAME_DIR .. "src/devices/cpu/powerpc/ppccom.h",
@@ -1939,7 +1942,7 @@ if (CPUS["POWERPC"]~=null) then
}
end
-if (CPUS["POWERPC"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "POWERPC") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/powerpc/ppc_dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/powerpc/ppc_dasm.h")
end
@@ -1952,7 +1955,7 @@ end
--@src/devices/cpu/v30mz/v30mz.h,CPUS["V30MZ"] = true
--------------------------------------------------
-if (CPUS["NEC"]~=null) then
+if CPUS["NEC"] then
files {
MAME_DIR .. "src/devices/cpu/nec/nec.cpp",
MAME_DIR .. "src/devices/cpu/nec/nec.h",
@@ -1974,19 +1977,19 @@ if (CPUS["NEC"]~=null) then
}
end
-if (CPUS["NEC"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "NEC") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/nec/necdasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/nec/necdasm.h")
end
-if (CPUS["V30MZ"]~=null) then
+if CPUS["V30MZ"] then
files {
MAME_DIR .. "src/devices/cpu/v30mz/v30mz.cpp",
MAME_DIR .. "src/devices/cpu/v30mz/v30mz.h",
}
end
-if (CPUS["V30MZ"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "V30MZ") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/nec/necdasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/nec/necdasm.h")
end
@@ -1996,7 +1999,7 @@ end
--@src/devices/cpu/v60/v60.h,CPUS["V60"] = true
--------------------------------------------------
-if (CPUS["V60"]~=null) then
+if CPUS["V60"] then
files {
MAME_DIR .. "src/devices/cpu/v60/v60.cpp",
MAME_DIR .. "src/devices/cpu/v60/v60.h",
@@ -2015,7 +2018,7 @@ if (CPUS["V60"]~=null) then
}
end
-if (CPUS["V60"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "V60") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/v60/v60d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/v60/v60d.h")
end
@@ -2025,14 +2028,14 @@ end
--@src/devices/cpu/v810/v810.h,CPUS["V810"] = true
--------------------------------------------------
-if (CPUS["V810"]~=null) then
+if CPUS["V810"] then
files {
MAME_DIR .. "src/devices/cpu/v810/v810.cpp",
MAME_DIR .. "src/devices/cpu/v810/v810.h",
}
end
-if (CPUS["V810"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "V810") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/v810/v810dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/v810/v810dasm.h")
end
@@ -2041,7 +2044,7 @@ end
-- NEC V850, disassembler only
--------------------------------------------------
-if (_OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "V850") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/v850/v850dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/v850/v850dasm.h")
end
@@ -2051,14 +2054,14 @@ end
--@src/devices/cpu/upd7725/upd7725.h,CPUS["UPD7725"] = true
--------------------------------------------------
-if (CPUS["UPD7725"]~=null) then
+if CPUS["UPD7725"] then
files {
MAME_DIR .. "src/devices/cpu/upd7725/upd7725.cpp",
MAME_DIR .. "src/devices/cpu/upd7725/upd7725.h",
}
end
-if (CPUS["UPD7725"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "UPD7725") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/upd7725/dasm7725.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/upd7725/dasm7725.h")
end
@@ -2068,7 +2071,7 @@ end
--@src/devices/cpu/upd7810/upd7810.h,CPUS["UPD7810"] = true
--------------------------------------------------
-if (CPUS["UPD7810"]~=null) then
+if CPUS["UPD7810"] then
files {
MAME_DIR .. "src/devices/cpu/upd7810/upd7810.cpp",
MAME_DIR .. "src/devices/cpu/upd7810/upd7810.h",
@@ -2080,7 +2083,7 @@ if (CPUS["UPD7810"]~=null) then
}
end
-if (CPUS["UPD7810"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "UPD7810") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/upd7810/upd7810_dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/upd7810/upd7810_dasm.h")
end
@@ -2090,7 +2093,7 @@ end
--@src/devices/cpu/ucom4/ucom4.h,CPUS["UCOM4"] = true
--------------------------------------------------
-if (CPUS["UCOM4"]~=null) then
+if CPUS["UCOM4"] then
files {
MAME_DIR .. "src/devices/cpu/ucom4/ucom4.cpp",
MAME_DIR .. "src/devices/cpu/ucom4/ucom4.h",
@@ -2098,7 +2101,7 @@ if (CPUS["UCOM4"]~=null) then
}
end
-if (CPUS["UCOM4"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "UCOM4") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/ucom4/ucom4d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/ucom4/ucom4d.h")
end
@@ -2108,7 +2111,7 @@ end
--@src/devices/cpu/minx/minx.h,CPUS["MINX"] = true
--------------------------------------------------
-if (CPUS["MINX"]~=null) then
+if CPUS["MINX"] then
files {
MAME_DIR .. "src/devices/cpu/minx/minx.cpp",
MAME_DIR .. "src/devices/cpu/minx/minx.h",
@@ -2119,7 +2122,7 @@ if (CPUS["MINX"]~=null) then
}
end
-if (CPUS["MINX"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "MINX") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/minx/minxd.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/minx/minxd.h")
end
@@ -2129,7 +2132,7 @@ end
--@src/devices/cpu/rsp/rsp.h,CPUS["RSP"] = true
--------------------------------------------------
-if (CPUS["RSP"]~=null) then
+if CPUS["RSP"] then
files {
MAME_DIR .. "src/devices/cpu/rsp/rsp.cpp",
MAME_DIR .. "src/devices/cpu/rsp/rsp.h",
@@ -2171,7 +2174,7 @@ if (CPUS["RSP"]~=null) then
}
end
-if (CPUS["RSP"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "RSP") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/rsp/rsp_dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/rsp/rsp_dasm.h")
end
@@ -2181,14 +2184,14 @@ end
--@src/devices/cpu/mn1880/mn1880.h,CPUS["MN1880"] = true
--------------------------------------------------
-if (CPUS["MN1880"]~=null) then
+if CPUS["MN1880"] then
files {
MAME_DIR .. "src/devices/cpu/mn1880/mn1880.cpp",
MAME_DIR .. "src/devices/cpu/mn1880/mn1880.h",
}
end
-if (CPUS["MN1880"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "MN1880") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/mn1880/mn1880d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/mn1880/mn1880d.h")
end
@@ -2198,14 +2201,14 @@ end
--@src/devices/cpu/mn10200/mn10200.h,CPUS["MN10200"] = true
--------------------------------------------------
-if (CPUS["MN10200"]~=null) then
+if CPUS["MN10200"] then
files {
MAME_DIR .. "src/devices/cpu/mn10200/mn10200.cpp",
MAME_DIR .. "src/devices/cpu/mn10200/mn10200.h",
}
end
-if (CPUS["MN10200"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "MN10200") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/mn10200/mn102dis.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/mn10200/mn102dis.h")
end
@@ -2215,7 +2218,7 @@ end
--@src/devices/cpu/saturn/saturn.h,CPUS["SATURN"] = true
--------------------------------------------------
-if (CPUS["SATURN"]~=null) then
+if CPUS["SATURN"] then
files {
MAME_DIR .. "src/devices/cpu/saturn/saturn.cpp",
MAME_DIR .. "src/devices/cpu/saturn/saturn.h",
@@ -2224,7 +2227,7 @@ if (CPUS["SATURN"]~=null) then
}
end
-if (CPUS["SATURN"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "SATURN") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/saturn/saturnds.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/saturn/saturnds.h")
end
@@ -2234,7 +2237,7 @@ end
--@src/devices/cpu/sm510/sm510.h,CPUS["SM510"] = true
--------------------------------------------------
-if (CPUS["SM510"]~=null) then
+if CPUS["SM510"] then
files {
MAME_DIR .. "src/devices/cpu/sm510/sm510base.cpp",
MAME_DIR .. "src/devices/cpu/sm510/sm510.h",
@@ -2254,7 +2257,7 @@ if (CPUS["SM510"]~=null) then
}
end
-if (CPUS["SM510"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "SM510") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/sm510/sm510d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/sm510/sm510d.h")
end
@@ -2264,7 +2267,7 @@ end
--@src/devices/cpu/sm8500/sm8500.h,CPUS["SM8500"] = true
--------------------------------------------------
-if (CPUS["SM8500"]~=null) then
+if CPUS["SM8500"] then
files {
MAME_DIR .. "src/devices/cpu/sm8500/sm8500.cpp",
MAME_DIR .. "src/devices/cpu/sm8500/sm8500.h",
@@ -2272,7 +2275,7 @@ if (CPUS["SM8500"]~=null) then
}
end
-if (CPUS["SM8500"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "SM8500") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/sm8500/sm8500d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/sm8500/sm8500d.h")
end
@@ -2282,7 +2285,7 @@ end
--@src/devices/cpu/s2650/s2650.h,CPUS["S2650"] = true
--------------------------------------------------
-if (CPUS["S2650"]~=null) then
+if CPUS["S2650"] then
files {
MAME_DIR .. "src/devices/cpu/s2650/s2650.cpp",
MAME_DIR .. "src/devices/cpu/s2650/s2650.h",
@@ -2290,7 +2293,7 @@ if (CPUS["S2650"]~=null) then
}
end
-if (CPUS["S2650"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "S2650") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/s2650/2650dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/s2650/2650dasm.h")
end
@@ -2300,7 +2303,7 @@ end
--@src/devices/cpu/sc61860/sc61860.h,CPUS["SC61860"] = true
--------------------------------------------------
-if (CPUS["SC61860"]~=null) then
+if CPUS["SC61860"] then
files {
MAME_DIR .. "src/devices/cpu/sc61860/sc61860.cpp",
MAME_DIR .. "src/devices/cpu/sc61860/sc61860.h",
@@ -2310,7 +2313,7 @@ if (CPUS["SC61860"]~=null) then
}
end
-if (CPUS["SC61860"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "SC61860") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/sc61860/scdasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/sc61860/scdasm.h")
end
@@ -2320,7 +2323,7 @@ end
--@src/devices/cpu/spc700/spc700.h,CPUS["SPC700"] = true
--------------------------------------------------
-if (CPUS["SPC700"]~=null) then
+if CPUS["SPC700"] then
files {
MAME_DIR .. "src/devices/cpu/spc700/spc700.cpp",
MAME_DIR .. "src/devices/cpu/spc700/spc700.h",
@@ -2328,7 +2331,7 @@ if (CPUS["SPC700"]~=null) then
}
end
-if (CPUS["SPC700"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "SPC700") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/spc700/spc700ds.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/spc700/spc700ds.h")
end
@@ -2338,14 +2341,14 @@ end
--@src/devices/cpu/ssp1601/ssp1601.h,CPUS["SSP1601"] = true
--------------------------------------------------
-if (CPUS["SSP1601"]~=null) then
+if CPUS["SSP1601"] then
files {
MAME_DIR .. "src/devices/cpu/ssp1601/ssp1601.cpp",
MAME_DIR .. "src/devices/cpu/ssp1601/ssp1601.h",
}
end
-if (CPUS["SSP1601"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "SSP1601") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/ssp1601/ssp1601d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/ssp1601/ssp1601d.h")
end
@@ -2355,7 +2358,7 @@ end
--@src/devices/cpu/unsp/unsp.h,CPUS["UNSP"] = true
--------------------------------------------------
-if (CPUS["UNSP"]~=null) then
+if CPUS["UNSP"] then
files {
MAME_DIR .. "src/devices/cpu/unsp/unsp.cpp",
MAME_DIR .. "src/devices/cpu/unsp/unsp.h",
@@ -2371,7 +2374,7 @@ if (CPUS["UNSP"]~=null) then
}
end
-if (CPUS["UNSP"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "UNSP") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/unsp/unspdasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/unsp/unspdasm.h")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/unsp/unspdasm_extended.cpp")
@@ -2386,14 +2389,14 @@ end
--@src/devices/cpu/avr8/avr8.h,CPUS["AVR8"] = true
--------------------------------------------------
-if (CPUS["AVR8"]~=null) then
+if CPUS["AVR8"] then
files {
MAME_DIR .. "src/devices/cpu/avr8/avr8.cpp",
MAME_DIR .. "src/devices/cpu/avr8/avr8.h",
}
end
-if (CPUS["AVR8"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "AVR8") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/avr8/avr8dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/avr8/avr8dasm.h")
end
@@ -2410,7 +2413,7 @@ end
--@src/devices/cpu/tms1000/tp0320.h,CPUS["TMS1000"] = true
--------------------------------------------------
-if (CPUS["TMS1000"]~=null) then
+if CPUS["TMS1000"] then
files {
MAME_DIR .. "src/devices/cpu/tms1000/tms1k_base.cpp",
MAME_DIR .. "src/devices/cpu/tms1000/tms1k_base.h",
@@ -2433,7 +2436,7 @@ if (CPUS["TMS1000"]~=null) then
}
end
-if (CPUS["TMS1000"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "TMS1000") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/tms1000/tms1k_dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/tms1000/tms1k_dasm.h")
end
@@ -2443,7 +2446,7 @@ end
--@src/devices/cpu/tms7000/tms7000.h,CPUS["TMS7000"] = true
--------------------------------------------------
-if (CPUS["TMS7000"]~=null) then
+if CPUS["TMS7000"] then
files {
MAME_DIR .. "src/devices/cpu/tms7000/tms7000.cpp",
MAME_DIR .. "src/devices/cpu/tms7000/tms7000.h",
@@ -2451,7 +2454,7 @@ if (CPUS["TMS7000"]~=null) then
}
end
-if (CPUS["TMS7000"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "TMS7000") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/tms7000/7000dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/tms7000/7000dasm.h")
end
@@ -2464,7 +2467,7 @@ end
--@src/devices/cpu/tms9900/ti990_10.h,CPUS["TMS9900"] = true
--------------------------------------------------
-if (CPUS["TMS9900"]~=null) then
+if CPUS["TMS9900"] then
files {
MAME_DIR .. "src/devices/cpu/tms9900/tms9900.cpp",
MAME_DIR .. "src/devices/cpu/tms9900/tms9900.h",
@@ -2478,7 +2481,7 @@ if (CPUS["TMS9900"]~=null) then
}
end
-if (CPUS["TMS9900"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "TMS9900") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/tms9900/9900dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/tms9900/9900dasm.h")
end
@@ -2488,7 +2491,7 @@ end
--@src/devices/cpu/tms34010/tms34010.h,CPUS["TMS340X0"] = true
--------------------------------------------------
-if (CPUS["TMS340X0"]~=null) then
+if CPUS["TMS340X0"] then
files {
MAME_DIR .. "src/devices/cpu/tms34010/tms34010.cpp",
MAME_DIR .. "src/devices/cpu/tms34010/tms34010.h",
@@ -2500,7 +2503,7 @@ if (CPUS["TMS340X0"]~=null) then
}
end
-if (CPUS["TMS340X0"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "TMS340X0") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/tms34010/34010dsm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/tms34010/34010dsm.h")
end
@@ -2510,14 +2513,14 @@ end
--@src/devices/cpu/tms32010/tms32010.h,CPUS["TMS32010"] = true
--------------------------------------------------
-if (CPUS["TMS32010"]~=null) then
+if CPUS["TMS32010"] then
files {
MAME_DIR .. "src/devices/cpu/tms32010/tms32010.cpp",
MAME_DIR .. "src/devices/cpu/tms32010/tms32010.h",
}
end
-if (CPUS["TMS32010"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "TMS32010") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/tms32010/32010dsm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/tms32010/32010dsm.h")
end
@@ -2527,14 +2530,14 @@ end
--@src/devices/cpu/tms32025/tms32025.h,CPUS["TMS32025"] = true
--------------------------------------------------
-if (CPUS["TMS32025"]~=null) then
+if CPUS["TMS32025"] then
files {
MAME_DIR .. "src/devices/cpu/tms32025/tms32025.cpp",
MAME_DIR .. "src/devices/cpu/tms32025/tms32025.h",
}
end
-if (CPUS["TMS32025"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "TMS32025") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/tms32025/32025dsm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/tms32025/32025dsm.h")
end
@@ -2544,7 +2547,7 @@ end
--@src/devices/cpu/tms32031/tms32031.h,CPUS["TMS32031"] = true
--------------------------------------------------
-if (CPUS["TMS32031"]~=null) then
+if CPUS["TMS32031"] then
files {
MAME_DIR .. "src/devices/cpu/tms32031/tms32031.cpp",
MAME_DIR .. "src/devices/cpu/tms32031/tms32031.h",
@@ -2552,7 +2555,7 @@ if (CPUS["TMS32031"]~=null) then
}
end
-if (CPUS["TMS32031"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "TMS32031") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/tms32031/dis32031.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/tms32031/dis32031.h")
end
@@ -2562,7 +2565,7 @@ end
--@src/devices/cpu/tms32051/tms32051.h,CPUS["TMS32051"] = true
--------------------------------------------------
-if (CPUS["TMS32051"]~=null) then
+if CPUS["TMS32051"] then
files {
MAME_DIR .. "src/devices/cpu/tms32051/tms32051.cpp",
MAME_DIR .. "src/devices/cpu/tms32051/tms32051.h",
@@ -2571,7 +2574,7 @@ if (CPUS["TMS32051"]~=null) then
}
end
-if (CPUS["TMS32051"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "TMS32051") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/tms32051/dis32051.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/tms32051/dis32051.h")
end
@@ -2581,7 +2584,7 @@ end
--@src/devices/cpu/tms32082/tms32082.h,CPUS["TMS32082"] = true
--------------------------------------------------
-if (CPUS["TMS32082"]~=null) then
+if CPUS["TMS32082"] then
files {
MAME_DIR .. "src/devices/cpu/tms32082/tms32082.cpp",
MAME_DIR .. "src/devices/cpu/tms32082/tms32082.h",
@@ -2589,7 +2592,7 @@ if (CPUS["TMS32082"]~=null) then
}
end
-if (CPUS["TMS32082"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "TMS32082") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/tms32082/dis_mp.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/tms32082/dis_mp.h")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/tms32082/dis_pp.cpp")
@@ -2601,7 +2604,7 @@ end
--@src/devices/cpu/tms57002/tms57002.h,CPUS["TMS57002"] = true
--------------------------------------------------
-if (CPUS["TMS57002"]~=null) then
+if CPUS["TMS57002"] then
files {
MAME_DIR .. "src/devices/cpu/tms57002/tms57002.cpp",
MAME_DIR .. "src/devices/cpu/tms57002/tms57002.h",
@@ -2618,7 +2621,7 @@ if (CPUS["TMS57002"]~=null) then
}
end
-if (CPUS["TMS57002"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "TMS57002") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/tms57002/57002dsm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/tms57002/57002dsm.h")
table.insert(disasm_dependency , { MAME_DIR .. "src/devices/cpu/tms57002/57002dsm.cpp", GEN_DIR .. "emu/cpu/tms57002/tms57002.hxx" } )
@@ -2630,14 +2633,14 @@ end
--@src/devices/cpu/tlcs90/tlcs90.h,CPUS["TLCS90"] = true
--------------------------------------------------
-if (CPUS["TLCS90"]~=null) then
+if CPUS["TLCS90"] then
files {
MAME_DIR .. "src/devices/cpu/tlcs90/tlcs90.cpp",
MAME_DIR .. "src/devices/cpu/tlcs90/tlcs90.h",
}
end
-if (CPUS["TLCS90"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "TLCS90") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/tlcs90/tlcs90d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/tlcs90/tlcs90d.h")
end
@@ -2647,7 +2650,7 @@ end
--@src/devices/cpu/tlcs870/tlcs870.h,CPUS["TLCS870"] = true
--------------------------------------------------
-if (CPUS["TLCS870"]~=null) then
+if CPUS["TLCS870"] then
files {
MAME_DIR .. "src/devices/cpu/tlcs870/tlcs870.cpp",
MAME_DIR .. "src/devices/cpu/tlcs870/tlcs870_ops.cpp",
@@ -2659,7 +2662,7 @@ if (CPUS["TLCS870"]~=null) then
}
end
-if (CPUS["TLCS870"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "TLCS870") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/tlcs870/tlcs870d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/tlcs870/tlcs870d.h")
end
@@ -2669,7 +2672,7 @@ end
--@src/devices/cpu/tlcs900/tlcs900.h,CPUS["TLCS900"] = true
--------------------------------------------------
-if (CPUS["TLCS900"]~=null) then
+if CPUS["TLCS900"] then
files {
MAME_DIR .. "src/devices/cpu/tlcs900/tlcs900.cpp",
MAME_DIR .. "src/devices/cpu/tlcs900/tlcs900.h",
@@ -2684,7 +2687,7 @@ if (CPUS["TLCS900"]~=null) then
}
end
-if (CPUS["TLCS900"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "TLCS900") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/tlcs900/dasm900.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/tlcs900/dasm900.h")
end
@@ -2694,14 +2697,14 @@ end
--@src/devices/cpu/tx0/tx0.h,CPUS["TX0"] = true
--------------------------------------------------
-if (CPUS["TX0"]~=null) then
+if CPUS["TX0"] then
files {
MAME_DIR .. "src/devices/cpu/tx0/tx0.cpp",
MAME_DIR .. "src/devices/cpu/tx0/tx0.h",
}
end
-if (CPUS["TX0"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "TX0") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/tx0/tx0dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/tx0/tx0dasm.h")
end
@@ -2728,7 +2731,7 @@ if (CPUS["Z80"]~=null or CPUS["KC80"]~=null) then
}
end
-if (CPUS["KC80"]~=null) then
+if CPUS["KC80"] then
files {
MAME_DIR .. "src/devices/cpu/z80/kc82.cpp",
MAME_DIR .. "src/devices/cpu/z80/kc82.h",
@@ -2745,7 +2748,10 @@ if (CPUS["KC80"]~=null) then
}
end
-if (CPUS["Z80"]~=null or CPUS["KC80"]~=null or _OPTIONS["with-tools"]) then
+local want_disasm_z80 = opt_tool(CPUS, "Z80")
+local want_disasm_kc80 = opt_tool(CPUS, "KC80")
+
+if want_disasm_z80 or want_disasm_kc80 then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/z80/z80dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/z80/z80dasm.h")
end
@@ -2755,7 +2761,7 @@ end
--@src/devices/cpu/lr35902/lr35902.h,CPUS["LR35902"] = true
--------------------------------------------------
-if (CPUS["LR35902"]~=null) then
+if CPUS["LR35902"] then
files {
MAME_DIR .. "src/devices/cpu/lr35902/lr35902.cpp",
MAME_DIR .. "src/devices/cpu/lr35902/lr35902.h",
@@ -2764,7 +2770,7 @@ if (CPUS["LR35902"]~=null) then
}
end
-if (CPUS["LR35902"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "LR35902") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/lr35902/lr35902d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/lr35902/lr35902d.h")
end
@@ -2774,7 +2780,7 @@ end
--@src/devices/cpu/z180/z180.h,CPUS["Z180"] = true
--------------------------------------------------
-if (CPUS["Z180"]~=null) then
+if CPUS["Z180"] then
files {
MAME_DIR .. "src/devices/cpu/z180/hd647180x.cpp",
MAME_DIR .. "src/devices/cpu/z180/hd647180x.h",
@@ -2791,7 +2797,7 @@ if (CPUS["Z180"]~=null) then
}
end
-if (CPUS["Z180"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "Z180") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/z180/z180dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/z180/z180dasm.h")
end
@@ -2801,7 +2807,7 @@ end
--@src/devices/cpu/z8000/z8000.h,CPUS["Z8000"] = true
--------------------------------------------------
-if (CPUS["Z8000"]~=null) then
+if CPUS["Z8000"] then
files {
MAME_DIR .. "src/devices/cpu/z8000/z8000.cpp",
MAME_DIR .. "src/devices/cpu/z8000/z8000.h",
@@ -2813,7 +2819,7 @@ if (CPUS["Z8000"]~=null) then
}
end
-if (CPUS["Z8000"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "Z8000") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/z8000/8000dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/z8000/8000dasm.h")
end
@@ -2823,7 +2829,7 @@ end
--@src/devices/cpu/z8/z8.h,CPUS["Z8"] = true
--------------------------------------------------
-if (CPUS["Z8"]~=null) then
+if CPUS["Z8"] then
files {
MAME_DIR .. "src/devices/cpu/z8/z8.cpp",
MAME_DIR .. "src/devices/cpu/z8/z8.h",
@@ -2831,7 +2837,7 @@ if (CPUS["Z8"]~=null) then
}
end
-if (CPUS["Z8"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "Z8") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/z8/z8dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/z8/z8dasm.h")
end
@@ -2841,14 +2847,14 @@ end
--@src/devices/cpu/superfx/superfx.h,CPUS["SUPERFX"] = true
--------------------------------------------------
-if (CPUS["SUPERFX"]~=null) then
+if CPUS["SUPERFX"] then
files {
MAME_DIR .. "src/devices/cpu/superfx/superfx.cpp",
MAME_DIR .. "src/devices/cpu/superfx/superfx.h",
}
end
-if (CPUS["SUPERFX"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "SUPERFX") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/superfx/sfx_dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/superfx/sfx_dasm.h")
end
@@ -2858,14 +2864,14 @@ end
--@src/devices/cpu/pps4/pps4.h,CPUS["PPS4"] = true
--------------------------------------------------
-if (CPUS["PPS4"]~=null) then
+if CPUS["PPS4"] then
files {
MAME_DIR .. "src/devices/cpu/pps4/pps4.cpp",
MAME_DIR .. "src/devices/cpu/pps4/pps4.h",
}
end
-if (CPUS["PPS4"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "PPS4") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/pps4/pps4dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/pps4/pps4dasm.h")
end
@@ -2875,7 +2881,7 @@ end
--@src/devices/cpu/pps41/mm76.h,CPUS["PPS41"] = true
--------------------------------------------------
-if (CPUS["PPS41"]~=null) then
+if CPUS["PPS41"] then
files {
MAME_DIR .. "src/devices/cpu/pps41/pps41base.cpp",
MAME_DIR .. "src/devices/cpu/pps41/pps41base.h",
@@ -2885,7 +2891,7 @@ if (CPUS["PPS41"]~=null) then
}
end
-if (CPUS["PPS41"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "PPS41") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/pps41/pps41d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/pps41/pps41d.h")
end
@@ -2895,14 +2901,14 @@ end
--@src/devices/cpu/hd61700/hd61700.h,CPUS["HD61700"] = true
--------------------------------------------------
-if (CPUS["HD61700"]~=null) then
+if CPUS["HD61700"] then
files {
MAME_DIR .. "src/devices/cpu/hd61700/hd61700.cpp",
MAME_DIR .. "src/devices/cpu/hd61700/hd61700.h",
}
end
-if (CPUS["HD61700"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "HD61700") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/hd61700/hd61700d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/hd61700/hd61700d.h")
end
@@ -2912,14 +2918,14 @@ end
--@src/devices/cpu/lc8670/lc8670.h,CPUS["LC8670"] = true
--------------------------------------------------
-if (CPUS["LC8670"]~=null) then
+if CPUS["LC8670"] then
files {
MAME_DIR .. "src/devices/cpu/lc8670/lc8670.cpp",
MAME_DIR .. "src/devices/cpu/lc8670/lc8670.h",
}
end
-if (CPUS["LC8670"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "LC8670") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/lc8670/lc8670dsm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/lc8670/lc8670dsm.h")
end
@@ -2929,14 +2935,14 @@ end
--@src/devices/cpu/scudsp/scudsp.h,CPUS["SCUDSP"] = true
--------------------------------------------------
-if (CPUS["SCUDSP"]~=null) then
+if CPUS["SCUDSP"] then
files {
MAME_DIR .. "src/devices/cpu/scudsp/scudsp.cpp",
MAME_DIR .. "src/devices/cpu/scudsp/scudsp.h",
}
end
-if (CPUS["SCUDSP"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "SCUDSP") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/scudsp/scudspdasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/scudsp/scudspdasm.h")
end
@@ -2946,7 +2952,7 @@ end
--@src/devices/cpu/score/score.h,CPUS["SCORE"] = true
--------------------------------------------------
-if (CPUS["SCORE"]~=null) then
+if CPUS["SCORE"] then
files {
MAME_DIR .. "src/devices/cpu/score/score.cpp",
MAME_DIR .. "src/devices/cpu/score/score.h",
@@ -2954,7 +2960,7 @@ if (CPUS["SCORE"]~=null) then
}
end
-if (CPUS["SCORE"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "SCORE") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/score/scoredsm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/score/scoredsm.h")
end
@@ -2964,7 +2970,7 @@ end
--@src/devices/cpu/alto2/alto2cpu.h,CPUS["ALTO2"] = true
--------------------------------------------------
-if (CPUS["ALTO2"]~=null) then
+if CPUS["ALTO2"] then
files {
MAME_DIR .. "src/devices/cpu/alto2/alto2cpu.cpp",
MAME_DIR .. "src/devices/cpu/alto2/alto2cpu.h",
@@ -3008,7 +3014,7 @@ if (CPUS["ALTO2"]~=null) then
}
end
-if (CPUS["ALTO2"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "ALTO2") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/alto2/alto2dsm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/alto2/alto2dsm.h")
end
@@ -3018,7 +3024,7 @@ end
--@src/devices/cpu/sparc/sparc.h,CPUS["SPARC"] = true
--------------------------------------------------
-if (CPUS["SPARC"]~=null) then
+if CPUS["SPARC"] then
files {
MAME_DIR .. "src/devices/cpu/sparc/sparc.cpp",
MAME_DIR .. "src/devices/cpu/sparc/sparcdefs.h",
@@ -3027,7 +3033,7 @@ if (CPUS["SPARC"]~=null) then
}
end
-if (CPUS["SPARC"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "SPARC") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/sparc/sparcdasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/sparc/sparcdasm.h")
end
@@ -3037,14 +3043,14 @@ end
--@src/devices/cpu/clipper/clipper.h,CPUS["CLIPPER"] = true
--------------------------------------------------
-if (CPUS["CLIPPER"]~=null) then
+if CPUS["CLIPPER"] then
files {
MAME_DIR .. "src/devices/cpu/clipper/clipper.cpp",
MAME_DIR .. "src/devices/cpu/clipper/clipper.h",
}
end
-if (CPUS["CLIPPER"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "CLIPPER") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/clipper/clipperd.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/clipper/clipperd.h")
end
@@ -3054,7 +3060,7 @@ end
-- VM Labs Nuon, disassembler only
--------------------------------------------------
-if (_OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "NUON") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/nuon/nuondasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/nuon/nuondasm.h")
end
@@ -3064,14 +3070,14 @@ end
--@src/devices/cpu/alpha/alpha.h,CPUS["ALPHA"] = true
--------------------------------------------------
-if (CPUS["ALPHA"]~=null) then
+if CPUS["ALPHA"] then
files {
MAME_DIR .. "src/devices/cpu/alpha/alpha.cpp",
MAME_DIR .. "src/devices/cpu/alpha/alpha.h",
}
end
-if (CPUS["ALPHA"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "ALPHA") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/alpha/alphad.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/alpha/alphad.h")
end
@@ -3081,14 +3087,14 @@ end
--@src/devices/cpu/hpc/hpc.h,CPUS["HPC"] = true
--------------------------------------------------
-if (CPUS["HPC"]~=null) then
+if CPUS["HPC"] then
files {
MAME_DIR .. "src/devices/cpu/hpc/hpc.cpp",
MAME_DIR .. "src/devices/cpu/hpc/hpc.h",
}
end
-if (CPUS["HPC"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "HPC") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/hpc/hpcdasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/hpc/hpcdasm.h")
end
@@ -3098,14 +3104,14 @@ end
--@src/devices/sound/meg.h,CPUS["MEG"] = true
--------------------------------------------------
-if (CPUS["MEG"]~=null) then
+if CPUS["MEG"] then
files {
MAME_DIR .. "src/devices/sound/meg.cpp",
MAME_DIR .. "src/devices/sound/meg.h",
}
end
-if (CPUS["MEG"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "MEG") then
table.insert(disasm_files , MAME_DIR .. "src/devices/sound/megd.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/sound/megd.h")
end
@@ -3115,14 +3121,14 @@ end
--@src/devices/sound/dspv.h,CPUS["DSPV"] = true
--------------------------------------------------
-if (CPUS["DSPV"]~=null) then
+if CPUS["DSPV"] then
files {
MAME_DIR .. "src/devices/sound/dspv.cpp",
MAME_DIR .. "src/devices/sound/dspv.h",
}
end
-if (CPUS["DSPV"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "DSPV") then
table.insert(disasm_files , MAME_DIR .. "src/devices/sound/dspvd.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/sound/dspvd.h")
end
@@ -3132,7 +3138,7 @@ end
--@src/devices/cpu/ns32000/ns32000.h,CPUS["NS32000"] = true
--------------------------------------------------
-if (CPUS["NS32000"]~=null) then
+if CPUS["NS32000"] then
files {
MAME_DIR .. "src/devices/cpu/ns32000/ns32000.cpp",
MAME_DIR .. "src/devices/cpu/ns32000/ns32000.h",
@@ -3140,7 +3146,7 @@ if (CPUS["NS32000"]~=null) then
}
end
-if (CPUS["NS32000"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "NS32000") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/ns32000/ns32000dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/ns32000/ns32000dasm.h")
end
@@ -3150,14 +3156,14 @@ end
--@src/devices/cpu/rii/riscii.h,CPUS["RII"] = true
--------------------------------------------------
-if (CPUS["RII"]~=null) then
+if CPUS["RII"] then
files {
MAME_DIR .. "src/devices/cpu/rii/riscii.cpp",
MAME_DIR .. "src/devices/cpu/rii/riscii.h",
}
end
-if (CPUS["RII"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "RII") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/rii/riidasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/rii/riidasm.h")
end
@@ -3167,14 +3173,14 @@ end
--@src/devices/cpu/bcp/dp8344.h,CPUS["BCP"] = true
--------------------------------------------------
-if (CPUS["BCP"]~=null) then
+if CPUS["BCP"] then
files {
MAME_DIR .. "src/devices/cpu/bcp/dp8344.cpp",
MAME_DIR .. "src/devices/cpu/bcp/dp8344.h",
}
end
-if (CPUS["BCP"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "BCP") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/bcp/bcpdasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/bcp/bcpdasm.h")
end
@@ -3184,7 +3190,7 @@ end
--@src/devices/cpu/f2mc16/f2mc16.h,CPUS["F2MC16"] = true
--------------------------------------------------
-if (CPUS["F2MC16"]~=null) then
+if CPUS["F2MC16"] then
files {
MAME_DIR .. "src/devices/cpu/f2mc16/f2mc16.cpp",
MAME_DIR .. "src/devices/cpu/f2mc16/f2mc16.h",
@@ -3193,7 +3199,7 @@ if (CPUS["F2MC16"]~=null) then
}
end
-if (CPUS["F2MC16"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "F2MC16") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/f2mc16/f2mc16dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/f2mc16/f2mc16dasm.h")
end
@@ -3203,14 +3209,14 @@ end
--@src/devices/cpu/cr16b/cr16b.h,CPUS["CR16B"] = true
--------------------------------------------------
-if (CPUS["CR16B"]~=null) then
+if CPUS["CR16B"] then
files {
MAME_DIR .. "src/devices/cpu/cr16b/cr16b.cpp",
MAME_DIR .. "src/devices/cpu/cr16b/cr16b.h",
}
end
-if (CPUS["CR16B"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "CR16B") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/cr16b/cr16bdasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/cr16b/cr16bdasm.h")
end
@@ -3219,7 +3225,7 @@ end
-- National Semiconductor CR16C, disassembler only
--------------------------------------------------
-if (_OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "CR16C") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/cr16c/cr16cdasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/cr16c/cr16cdasm.h")
end
@@ -3229,14 +3235,14 @@ end
--@src/devices/cpu/gigatron/gigatron.h,CPUS["GTRON"] = true
--------------------------------------------------
-if (CPUS["GTRON"]~=null) then
+if CPUS["GTRON"] then
files {
MAME_DIR .. "src/devices/cpu/gigatron/gigatron.cpp",
MAME_DIR .. "src/devices/cpu/gigatron/gigatron.h",
}
end
-if (CPUS["GTRON"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "GTRON") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/gigatron/gigatrondasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/gigatron/gigatrondasm.h")
end
@@ -3246,14 +3252,14 @@ end
--@src/devices/cpu/dsp56000/dsp56000.h,CPUS["DSP56000"] = true
--------------------------------------------------
-if (CPUS["DSP56000"]~=null) then
+if CPUS["DSP56000"] then
files {
MAME_DIR .. "src/devices/cpu/dsp56000/dsp56000.cpp",
MAME_DIR .. "src/devices/cpu/dsp56000/dsp56000.h",
}
end
-if (CPUS["DSP56000"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "DSP56000") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/dsp56000/dsp56000d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/dsp56000/dsp56000d.h")
end
@@ -3263,14 +3269,14 @@ end
--@src/devices/cpu/vt50/vt50.h,CPUS["VT50"] = true
--------------------------------------------------
-if (CPUS["VT50"]~=null) then
+if CPUS["VT50"] then
files {
MAME_DIR .. "src/devices/cpu/vt50/vt50.cpp",
MAME_DIR .. "src/devices/cpu/vt50/vt50.h",
}
end
-if (CPUS["VT50"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "VT50") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/vt50/vt50dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/vt50/vt50dasm.h")
end
@@ -3280,14 +3286,14 @@ end
--@src/devices/cpu/vt61/vt61.h,CPUS["VT61"] = true
--------------------------------------------------
-if (CPUS["VT61"]~=null) then
+if CPUS["VT61"] then
files {
MAME_DIR .. "src/devices/cpu/vt61/vt61.cpp",
MAME_DIR .. "src/devices/cpu/vt61/vt61.h",
}
end
-if (CPUS["VT61"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "VT61") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/vt61/vt61dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/vt61/vt61dasm.h")
end
@@ -3297,14 +3303,14 @@ end
--@src/devices/cpu/pace/pace.h,CPUS["PACE"] = true
--------------------------------------------------
-if (CPUS["PACE"]~=null) then
+if CPUS["PACE"] then
files {
MAME_DIR .. "src/devices/cpu/pace/pace.cpp",
MAME_DIR .. "src/devices/cpu/pace/pace.h",
}
end
-if (CPUS["PACE"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "PACE") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/pace/pacedasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/pace/pacedasm.h")
end
@@ -3314,14 +3320,14 @@ end
--@src/devices/cpu/we32000/we32100.h,CPUS["WE32000"] = true
--------------------------------------------------
-if (CPUS["WE32000"]~=null) then
+if CPUS["WE32000"] then
files {
MAME_DIR .. "src/devices/cpu/we32000/we32100.cpp",
MAME_DIR .. "src/devices/cpu/we32000/we32100.h",
}
end
-if (CPUS["WE32000"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "WE32000") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/we32000/we32100d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/we32000/we32100d.h")
end
@@ -3331,14 +3337,14 @@ end
--@src/devices/cpu/rx01/rx01.h,CPUS["RX01"] = true
--------------------------------------------------
-if (CPUS["RX01"]~=null) then
+if CPUS["RX01"] then
files {
MAME_DIR .. "src/devices/cpu/rx01/rx01.cpp",
MAME_DIR .. "src/devices/cpu/rx01/rx01.h",
}
end
-if (CPUS["RX01"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "RX01") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/rx01/rx01dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/rx01/rx01dasm.h")
end
@@ -3348,14 +3354,14 @@ end
--@src/devices/cpu/m88000/m88000.h,CPUS["M88000"] = true
--------------------------------------------------
-if (CPUS["M88000"]~=null) then
+if CPUS["M88000"] then
files {
MAME_DIR .. "src/devices/cpu/m88000/m88000.cpp",
MAME_DIR .. "src/devices/cpu/m88000/m88000.h",
}
end
-if (CPUS["M88000"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "M88000") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/m88000/m88000d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/m88000/m88000d.h")
end
@@ -3365,14 +3371,14 @@ end
--@src/devices/cpu/xavix2/xavix2.h,CPUS["XAVIX2"] = true
--------------------------------------------------
-if (CPUS["XAVIX2"]~=null) then
+if CPUS["XAVIX2"] then
files {
MAME_DIR .. "src/devices/cpu/xavix2/xavix2.cpp",
MAME_DIR .. "src/devices/cpu/xavix2/xavix2.h",
}
end
-if (CPUS["XAVIX2"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "XAVIX2") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/xavix2/xavix2d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/xavix2/xavix2d.h")
end
@@ -3384,7 +3390,7 @@ end
--@src/devices/cpu/upd78k/upd78k3.h,CPUS["UPD78K"] = true
--------------------------------------------------
-if (CPUS["UPD78K"]~=null) then
+if CPUS["UPD78K"] then
files {
MAME_DIR .. "src/devices/cpu/upd78k/upd78k0.cpp",
MAME_DIR .. "src/devices/cpu/upd78k/upd78k0.h",
@@ -3395,7 +3401,7 @@ if (CPUS["UPD78K"]~=null) then
}
end
-if (CPUS["UPD78K"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "UPD78K") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/upd78k/upd78kd.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/upd78k/upd78kd.h")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/upd78k/upd78k0d.cpp")
@@ -3413,7 +3419,7 @@ end
--@src/devices/cpu/romp/romp.h,CPUS["ROMP"] = true
--------------------------------------------------
-if (CPUS["ROMP"]~=null) then
+if CPUS["ROMP"] then
files {
MAME_DIR .. "src/devices/cpu/romp/romp.cpp",
MAME_DIR .. "src/devices/cpu/romp/romp.h",
@@ -3421,7 +3427,7 @@ if (CPUS["ROMP"]~=null) then
}
end
-if (CPUS["ROMP"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "ROMP") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/romp/rompdasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/romp/rompdasm.h")
end
@@ -3431,14 +3437,14 @@ end
--@src/devices/cpu/ks0164/ks0164.h,CPUS["KS0164"] = true
--------------------------------------------------
-if (CPUS["KS0164"]~=null) then
+if CPUS["KS0164"] then
files {
MAME_DIR .. "src/devices/cpu/ks0164/ks0164.cpp",
MAME_DIR .. "src/devices/cpu/ks0164/ks0164.h",
}
end
-if (CPUS["KS0164"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "KS0164") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/ks0164/ks0164d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/ks0164/ks0164d.h")
end
@@ -3448,7 +3454,7 @@ end
--@src/devices/cpu/upd177x/upd177x.h,CPUS["UPD177X"] = true
--------------------------------------------------
-if (CPUS["UPD177X"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "UPD177X") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/upd177x/upd177xd.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/upd177x/upd177xd.h")
end
@@ -3458,7 +3464,7 @@ end
--@src/devices/cpu/lc58/lc58.h,CPUS["LC58"] = true
--------------------------------------------------
-if (CPUS["LC58"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "LC58") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/lc58/lc58d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/lc58/lc58d.h")
end
@@ -3468,7 +3474,7 @@ end
--@src/devices/cpu/msm65x2/msm65x2.h,CPUS["MSM65X2"] = true
--------------------------------------------------
-if (CPUS["MSM65X2"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "MSM65X2") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/msm65x2/msm65x2d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/msm65x2/msm65x2d.h")
end
@@ -3478,7 +3484,7 @@ end
--@src/devices/cpu/lc57/lc57.h,CPUS["LC57"] = true
--------------------------------------------------
-if (CPUS["LC57"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "LC57") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/lc57/lc57d.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/lc57/lc57d.h")
end
@@ -3488,14 +3494,14 @@ end
--@src/devices/cpu/mk1/mk1.h,CPUS["MK1"] = true
--------------------------------------------------
-if (CPUS["MK1"]~=null) then
+if CPUS["MK1"] then
files {
MAME_DIR .. "src/devices/cpu/mk1/mk1.cpp",
MAME_DIR .. "src/devices/cpu/mk1/mk1.h",
}
end
-if (CPUS["MK1"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(CPUS, "MK1") then
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/mk1/mk1dasm.cpp")
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/mk1/mk1dasm.h")
end
diff --git a/scripts/src/formats.lua b/scripts/src/formats.lua
index b8bf90c2c55..029b388675f 100644
--- a/scripts/src/formats.lua
+++ b/scripts/src/formats.lua
@@ -25,10 +25,14 @@ project "formats"
MAME_DIR .. "src/lib",
MAME_DIR .. "src/lib/util",
MAME_DIR .. "3rdparty",
+ GEN_DIR,
ext_includedir("zlib"),
}
files {
+ MAME_DIR .. "src/lib/formats/all.cpp",
+ MAME_DIR .. "src/lib/formats/all.h",
+
MAME_DIR .. "src/lib/formats/ioprocs.cpp",
MAME_DIR .. "src/lib/formats/ioprocs.h",
MAME_DIR .. "src/lib/formats/imageutl.cpp",
@@ -72,7 +76,7 @@ project "formats"
--@src/lib/formats/2d_dsk.h,FORMATS["2D_DSK"] = true
--------------------------------------------------
-if (FORMATS["2D_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "2D_DSK") then
files {
MAME_DIR.. "src/lib/formats/2d_dsk.cpp",
MAME_DIR.. "src/lib/formats/2d_dsk.h",
@@ -84,7 +88,7 @@ end
--@src/lib/formats/a26_cas.h,FORMATS["A26_CAS"] = true
--------------------------------------------------
-if (FORMATS["A26_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "A26_CAS") then
files {
MAME_DIR.. "src/lib/formats/a26_cas.cpp",
MAME_DIR.. "src/lib/formats/a26_cas.h",
@@ -96,7 +100,7 @@ end
--@src/lib/formats/a5105_dsk.h,FORMATS["A5105_DSK"] = true
--------------------------------------------------
-if (FORMATS["A5105_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "A5105_DSK") then
files {
MAME_DIR.. "src/lib/formats/a5105_dsk.cpp",
MAME_DIR.. "src/lib/formats/a5105_dsk.h",
@@ -108,7 +112,7 @@ end
--@src/lib/formats/abc800_dsk.h,FORMATS["ABC800_DSK"] = true
--------------------------------------------------
-if (FORMATS["ABC800_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "ABC800_DSK") then
files {
MAME_DIR.. "src/lib/formats/abc800_dsk.cpp",
MAME_DIR.. "src/lib/formats/abc800_dsk.h",
@@ -120,7 +124,7 @@ end
--@src/lib/formats/abcfd2_dsk.h,FORMATS["ABCFD2_DSK"] = true
--------------------------------------------------
-if (FORMATS["ABCFD2_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "ABCFD2_DSK") then
files {
MAME_DIR.. "src/lib/formats/abcfd2_dsk.cpp",
MAME_DIR.. "src/lib/formats/abcfd2_dsk.h",
@@ -132,7 +136,7 @@ end
--@src/lib/formats/ace_tap.h,FORMATS["ACE_TAP"] = true
--------------------------------------------------
-if (FORMATS["ACE_TAP"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "ACE_TAP") then
files {
MAME_DIR.. "src/lib/formats/ace_tap.cpp",
MAME_DIR.. "src/lib/formats/ace_tap.h",
@@ -144,7 +148,7 @@ end
--@src/lib/formats/acorn_dsk.h,FORMATS["ACORN_DSK"] = true
--------------------------------------------------
-if (FORMATS["ACORN_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "ACORN_DSK") then
files {
MAME_DIR.. "src/lib/formats/acorn_dsk.cpp",
MAME_DIR.. "src/lib/formats/acorn_dsk.h",
@@ -156,7 +160,7 @@ end
--@src/lib/formats/adam_cas.h,FORMATS["ADAM_CAS"] = true
--------------------------------------------------
-if (FORMATS["ADAM_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "ADAM_CAS") then
files {
MAME_DIR.. "src/lib/formats/adam_cas.cpp",
MAME_DIR.. "src/lib/formats/adam_cas.h",
@@ -168,7 +172,7 @@ end
--@src/lib/formats/adam_dsk.h,FORMATS["ADAM_DSK"] = true
--------------------------------------------------
-if (FORMATS["ADAM_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "ADAM_DSK") then
files {
MAME_DIR.. "src/lib/formats/adam_dsk.cpp",
MAME_DIR.. "src/lib/formats/adam_dsk.h",
@@ -180,7 +184,7 @@ end
--@src/lib/formats/afs_dsk.h,FORMATS["AFS_DSK"] = true
--------------------------------------------------
-if (FORMATS["AFS_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "AFS_DSK") then
files {
MAME_DIR.. "src/lib/formats/afs_dsk.cpp",
MAME_DIR.. "src/lib/formats/afs_dsk.h",
@@ -192,7 +196,7 @@ end
--@src/lib/formats/agat840k_hle_dsk.h,FORMATS["AGAT840K_HLE_DSK"] = true
--------------------------------------------------
-if (FORMATS["AGAT840K_HLE_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "AGAT840K_HLE_DSK") then
files {
MAME_DIR.. "src/lib/formats/agat840k_hle_dsk.cpp",
MAME_DIR.. "src/lib/formats/agat840k_hle_dsk.h",
@@ -204,7 +208,7 @@ end
--@src/lib/formats/aim_dsk.h,FORMATS["AIM_DSK"] = true
--------------------------------------------------
-if (FORMATS["AIM_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "AIM_DSK") then
files {
MAME_DIR.. "src/lib/formats/aim_dsk.cpp",
MAME_DIR.. "src/lib/formats/aim_dsk.h",
@@ -216,7 +220,7 @@ end
--@src/lib/formats/ami_dsk.h,FORMATS["AMI_DSK"] = true
--------------------------------------------------
-if (FORMATS["AMI_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "AMI_DSK") then
files {
MAME_DIR.. "src/lib/formats/ami_dsk.cpp",
MAME_DIR.. "src/lib/formats/ami_dsk.h",
@@ -228,7 +232,7 @@ end
--@src/lib/formats/ap2_dsk.h,FORMATS["AP2_DSK"] = true
--------------------------------------------------
-if (FORMATS["AP2_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "AP2_DSK") then
files {
MAME_DIR.. "src/lib/formats/ap2_dsk.cpp",
MAME_DIR.. "src/lib/formats/ap2_dsk.h",
@@ -240,7 +244,7 @@ end
--@src/lib/formats/apd_dsk.h,FORMATS["APD_DSK"] = true
--------------------------------------------------
-if (FORMATS["APD_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "APD_DSK") then
files {
MAME_DIR.. "src/lib/formats/apd_dsk.cpp",
MAME_DIR.. "src/lib/formats/apd_dsk.h",
@@ -252,7 +256,7 @@ end
--@src/lib/formats/apf_apt.h,FORMATS["APF_APT"] = true
--------------------------------------------------
-if (FORMATS["APF_APT"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "APF_APT") then
files {
MAME_DIR.. "src/lib/formats/apf_apt.cpp",
MAME_DIR.. "src/lib/formats/apf_apt.h",
@@ -264,7 +268,7 @@ end
--@src/lib/formats/apollo_dsk.h,FORMATS["APOLLO_DSK"] = true
--------------------------------------------------
-if (FORMATS["APOLLO_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "APOLLO_DSK") then
files {
MAME_DIR.. "src/lib/formats/apollo_dsk.cpp",
MAME_DIR.. "src/lib/formats/apollo_dsk.h",
@@ -276,7 +280,7 @@ end
--@src/lib/formats/applix_dsk.h,FORMATS["APPLIX_DSK"] = true
--------------------------------------------------
-if (FORMATS["APPLIX_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "APPLIX_DSK") then
files {
MAME_DIR.. "src/lib/formats/applix_dsk.cpp",
MAME_DIR.. "src/lib/formats/applix_dsk.h",
@@ -288,7 +292,7 @@ end
--@src/lib/formats/apridisk.h,FORMATS["APRIDISK"] = true
--------------------------------------------------
-if (FORMATS["APRIDISK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "APRIDISK") then
files {
MAME_DIR.. "src/lib/formats/apridisk.cpp",
MAME_DIR.. "src/lib/formats/apridisk.h",
@@ -300,7 +304,7 @@ end
--@src/lib/formats/ap_dsk35.h,FORMATS["AP_DSK35"] = true
--------------------------------------------------
-if (FORMATS["AP_DSK35"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "AP_DSK35") then
files {
MAME_DIR.. "src/lib/formats/ap_dsk35.cpp",
MAME_DIR.. "src/lib/formats/ap_dsk35.h",
@@ -312,7 +316,7 @@ end
--@src/lib/formats/aquarius_caq.h,FORMATS["AQUARIUS_CAQ"] = true
--------------------------------------------------
-if (FORMATS["AQUARIUS_CAQ"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "AQUARIUS_CAQ") then
files {
MAME_DIR.. "src/lib/formats/aquarius_caq.cpp",
MAME_DIR.. "src/lib/formats/aquarius_caq.h",
@@ -324,7 +328,7 @@ end
--@src/lib/formats/asst128_dsk.h,FORMATS["ASST128_DSK"] = true
--------------------------------------------------
-if (FORMATS["ASST128_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "ASST128_DSK") then
files {
MAME_DIR.. "src/lib/formats/asst128_dsk.cpp",
MAME_DIR.. "src/lib/formats/asst128_dsk.h",
@@ -336,7 +340,7 @@ end
--@src/lib/formats/atari_dsk.h,FORMATS["ATARI_DSK"] = true
--------------------------------------------------
-if (FORMATS["ATARI_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "ATARI_DSK") then
files {
MAME_DIR.. "src/lib/formats/atari_dsk.cpp",
MAME_DIR.. "src/lib/formats/atari_dsk.h",
@@ -348,7 +352,7 @@ end
--@src/lib/formats/atom_dsk.h,FORMATS["ATOM_DSK"] = true
--------------------------------------------------
-if (FORMATS["ATOM_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "ATOM_DSK") then
files {
MAME_DIR.. "src/lib/formats/atom_dsk.cpp",
MAME_DIR.. "src/lib/formats/atom_dsk.h",
@@ -360,7 +364,7 @@ end
--@src/lib/formats/atom_tap.h,FORMATS["ATOM_TAP"] = true
--------------------------------------------------
-if (FORMATS["ATOM_TAP"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "ATOM_TAP") then
files {
MAME_DIR.. "src/lib/formats/atom_tap.cpp",
MAME_DIR.. "src/lib/formats/atom_tap.h",
@@ -372,7 +376,7 @@ end
--@src/lib/formats/basicdsk.h,FORMATS["BASICDSK"] = true
--------------------------------------------------
-if (FORMATS["BASICDSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "BASICDSK") then
files {
MAME_DIR.. "src/lib/formats/basicdsk.cpp",
MAME_DIR.. "src/lib/formats/basicdsk.h",
@@ -384,7 +388,7 @@ end
--@src/lib/formats/bw12_dsk.h,FORMATS["BW12_DSK"] = true
--------------------------------------------------
-if (FORMATS["BW12_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "BW12_DSK") then
files {
MAME_DIR.. "src/lib/formats/bw12_dsk.cpp",
MAME_DIR.. "src/lib/formats/bw12_dsk.h",
@@ -396,7 +400,7 @@ end
--@src/lib/formats/bw2_dsk.h,FORMATS["BW2_DSK"] = true
--------------------------------------------------
-if (FORMATS["BW2_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "BW2_DSK") then
files {
MAME_DIR.. "src/lib/formats/bw2_dsk.cpp",
MAME_DIR.. "src/lib/formats/bw2_dsk.h",
@@ -408,7 +412,7 @@ end
--@src/lib/formats/c3040_dsk.h,FORMATS["C3040_DSK"] = true
--------------------------------------------------
-if (FORMATS["C3040_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "C3040_DSK") then
files {
MAME_DIR.. "src/lib/formats/c3040_dsk.cpp",
MAME_DIR.. "src/lib/formats/c3040_dsk.h",
@@ -420,7 +424,7 @@ end
--@src/lib/formats/c4040_dsk.h,FORMATS["C4040_DSK"] = true
--------------------------------------------------
-if (FORMATS["C4040_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "C4040_DSK") then
files {
MAME_DIR.. "src/lib/formats/c4040_dsk.cpp",
MAME_DIR.. "src/lib/formats/c4040_dsk.h",
@@ -432,7 +436,7 @@ end
--@src/lib/formats/c8280_dsk.h,FORMATS["C8280_DSK"] = true
--------------------------------------------------
-if (FORMATS["C8280_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "C8280_DSK") then
files {
MAME_DIR.. "src/lib/formats/c8280_dsk.cpp",
MAME_DIR.. "src/lib/formats/c8280_dsk.h",
@@ -444,7 +448,7 @@ end
--@src/lib/formats/camplynx_cas.h,FORMATS["CAMPLYNX_CAS"] = true
--------------------------------------------------
-if (FORMATS["CAMPLYNX_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "CAMPLYNX_CAS") then
files {
MAME_DIR.. "src/lib/formats/camplynx_cas.cpp",
MAME_DIR.. "src/lib/formats/camplynx_cas.h",
@@ -456,7 +460,7 @@ end
--@src/lib/formats/camplynx_dsk.h,FORMATS["CAMPLYNX_DSK"] = true
--------------------------------------------------
-if (FORMATS["CAMPLYNX_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "CAMPLYNX_DSK") then
files {
MAME_DIR.. "src/lib/formats/camplynx_dsk.cpp",
MAME_DIR.. "src/lib/formats/camplynx_dsk.h",
@@ -468,7 +472,7 @@ end
--@src/lib/formats/cbm_crt.h,FORMATS["CBM_CRT"] = true
--------------------------------------------------
-if (FORMATS["CBM_CRT"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "CBM_CRT") then
files {
MAME_DIR.. "src/lib/formats/cbm_crt.cpp",
MAME_DIR.. "src/lib/formats/cbm_crt.h",
@@ -480,7 +484,7 @@ end
--@src/lib/formats/cbm_tap.h,FORMATS["CBM_TAP"] = true
--------------------------------------------------
-if (FORMATS["CBM_TAP"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "CBM_TAP") then
files {
MAME_DIR.. "src/lib/formats/cbm_tap.cpp",
MAME_DIR.. "src/lib/formats/cbm_tap.h",
@@ -492,7 +496,7 @@ end
--@src/lib/formats/ccvf_dsk.h,FORMATS["CCVF_DSK"] = true
--------------------------------------------------
-if (FORMATS["CCVF_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "CCVF_DSK") then
files {
MAME_DIR.. "src/lib/formats/ccvf_dsk.cpp",
MAME_DIR.. "src/lib/formats/ccvf_dsk.h",
@@ -504,7 +508,7 @@ end
--@src/lib/formats/cd90_640_dsk.h,FORMATS["CD90_640_DSK"] = true
--------------------------------------------------
-if (FORMATS["CD90_640_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "CD90_640_DSK") then
files {
MAME_DIR.. "src/lib/formats/cd90_640_dsk.cpp",
MAME_DIR.. "src/lib/formats/cd90_640_dsk.h",
@@ -516,7 +520,7 @@ end
--@src/lib/formats/cgenie_dsk.h,FORMATS["CGENIE_DSK"] = true
--------------------------------------------------
-if (FORMATS["CGENIE_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "CGENIE_DSK") then
files {
MAME_DIR.. "src/lib/formats/cgenie_dsk.cpp",
MAME_DIR.. "src/lib/formats/cgenie_dsk.h",
@@ -528,7 +532,7 @@ end
--@src/lib/formats/cgen_cas.h,FORMATS["CGEN_CAS"] = true
--------------------------------------------------
-if (FORMATS["CGEN_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "CGEN_CAS") then
files {
MAME_DIR.. "src/lib/formats/cgen_cas.cpp",
MAME_DIR.. "src/lib/formats/cgen_cas.h",
@@ -540,7 +544,7 @@ end
--@src/lib/formats/coco_cas.h,FORMATS["COCO_CAS"] = true
--------------------------------------------------
-if (FORMATS["COCO_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "COCO_CAS") then
files {
MAME_DIR.. "src/lib/formats/coco_cas.cpp",
MAME_DIR.. "src/lib/formats/coco_cas.h",
@@ -552,7 +556,7 @@ end
--@src/lib/formats/comx35_dsk.h,FORMATS["COMX35_DSK"] = true
--------------------------------------------------
-if (FORMATS["COMX35_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "COMX35_DSK") then
files {
MAME_DIR.. "src/lib/formats/comx35_dsk.cpp",
MAME_DIR.. "src/lib/formats/comx35_dsk.h",
@@ -564,7 +568,7 @@ end
--@src/lib/formats/concept_dsk.h,FORMATS["CONCEPT_DSK"] = true
--------------------------------------------------
-if (FORMATS["CONCEPT_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "CONCEPT_DSK") then
files {
MAME_DIR.. "src/lib/formats/concept_dsk.cpp",
MAME_DIR.. "src/lib/formats/concept_dsk.h",
@@ -576,7 +580,7 @@ end
--@src/lib/formats/coupedsk.h,FORMATS["COUPEDSK"] = true
--------------------------------------------------
-if (FORMATS["COUPEDSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "COUPEDSK") then
files {
MAME_DIR.. "src/lib/formats/coupedsk.cpp",
MAME_DIR.. "src/lib/formats/coupedsk.h",
@@ -588,7 +592,7 @@ end
--@src/lib/formats/cpis_dsk.h,FORMATS["CPIS_DSK"] = true
--------------------------------------------------
-if (FORMATS["CPIS_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "CPIS_DSK") then
files {
MAME_DIR.. "src/lib/formats/cpis_dsk.cpp",
MAME_DIR.. "src/lib/formats/cpis_dsk.h",
@@ -600,7 +604,7 @@ end
--@src/lib/formats/csw_cas.h,FORMATS["CSW_CAS"] = true
--------------------------------------------------
-if (FORMATS["CSW_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "CSW_CAS") then
files {
MAME_DIR.. "src/lib/formats/csw_cas.cpp",
MAME_DIR.. "src/lib/formats/csw_cas.h",
@@ -612,7 +616,7 @@ end
--@src/lib/formats/d64_dsk.h,FORMATS["D64_DSK"] = true
--------------------------------------------------
-if (FORMATS["D64_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "D64_DSK") then
files {
MAME_DIR.. "src/lib/formats/d64_dsk.cpp",
MAME_DIR.. "src/lib/formats/d64_dsk.h",
@@ -624,7 +628,7 @@ end
--@src/lib/formats/d71_dsk.h,FORMATS["D71_DSK"] = true
--------------------------------------------------
-if (FORMATS["D71_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "D71_DSK") then
files {
MAME_DIR.. "src/lib/formats/d71_dsk.cpp",
MAME_DIR.. "src/lib/formats/d71_dsk.h",
@@ -636,7 +640,7 @@ end
--@src/lib/formats/d80_dsk.h,FORMATS["D80_DSK"] = true
--------------------------------------------------
-if (FORMATS["D80_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "D80_DSK") then
files {
MAME_DIR.. "src/lib/formats/d80_dsk.cpp",
MAME_DIR.. "src/lib/formats/d80_dsk.h",
@@ -648,7 +652,7 @@ end
--@src/lib/formats/d81_dsk.h,FORMATS["D81_DSK"] = true
--------------------------------------------------
-if (FORMATS["D81_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "D81_DSK") then
files {
MAME_DIR.. "src/lib/formats/d81_dsk.cpp",
MAME_DIR.. "src/lib/formats/d81_dsk.h",
@@ -660,7 +664,7 @@ end
--@src/lib/formats/d82_dsk.h,FORMATS["D82_DSK"] = true
--------------------------------------------------
-if (FORMATS["D82_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "D82_DSK") then
files {
MAME_DIR.. "src/lib/formats/d82_dsk.cpp",
MAME_DIR.. "src/lib/formats/d82_dsk.h",
@@ -672,7 +676,7 @@ end
--@src/lib/formats/dcp_dsk.h,FORMATS["DCP_DSK"] = true
--------------------------------------------------
-if (FORMATS["DCP_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "DCP_DSK") then
files {
MAME_DIR.. "src/lib/formats/dcp_dsk.cpp",
MAME_DIR.. "src/lib/formats/dcp_dsk.h",
@@ -684,7 +688,7 @@ end
--@src/lib/formats/dim_dsk.h,FORMATS["DIM_DSK"] = true
--------------------------------------------------
-if (FORMATS["DIM_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "DIM_DSK") then
files {
MAME_DIR.. "src/lib/formats/dim_dsk.cpp",
MAME_DIR.. "src/lib/formats/dim_dsk.h",
@@ -696,7 +700,7 @@ end
--@src/lib/formats/dip_dsk.h,FORMATS["DIP_DSK"] = true
--------------------------------------------------
-if (FORMATS["DIP_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "DIP_DSK") then
files {
MAME_DIR.. "src/lib/formats/dip_dsk.cpp",
MAME_DIR.. "src/lib/formats/dip_dsk.h",
@@ -708,7 +712,7 @@ end
--@src/lib/formats/dmk_dsk.h,FORMATS["DMK_DSK"] = true
--------------------------------------------------
-if (FORMATS["DMK_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "DMK_DSK") then
files {
MAME_DIR.. "src/lib/formats/dmk_dsk.cpp",
MAME_DIR.. "src/lib/formats/dmk_dsk.h",
@@ -720,7 +724,7 @@ end
--@src/lib/formats/ds9_dsk.h,FORMATS["DS9_DSK"] = true
--------------------------------------------------
-if (FORMATS["DS9_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "DS9_DSK") then
files {
MAME_DIR.. "src/lib/formats/ds9_dsk.cpp",
MAME_DIR.. "src/lib/formats/ds9_dsk.h",
@@ -732,7 +736,7 @@ end
--@src/lib/formats/sdf_dsk.h,FORMATS["SDF_DSK"] = true
--------------------------------------------------
-if (FORMATS["SDF_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "SDF_DSK") then
files {
MAME_DIR.. "src/lib/formats/sdf_dsk.cpp",
MAME_DIR.. "src/lib/formats/sdf_dsk.h",
@@ -744,7 +748,7 @@ end
--@src/lib/formats/ep64_dsk.h,FORMATS["EP64_DSK"] = true
--------------------------------------------------
-if (FORMATS["EP64_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "EP64_DSK") then
files {
MAME_DIR.. "src/lib/formats/ep64_dsk.cpp",
MAME_DIR.. "src/lib/formats/ep64_dsk.h",
@@ -756,7 +760,7 @@ end
--@src/lib/formats/dmv_dsk.h,FORMATS["DMV_DSK"] = true
--------------------------------------------------
-if (FORMATS["DMV_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "DMV_DSK") then
files {
MAME_DIR.. "src/lib/formats/dmv_dsk.cpp",
MAME_DIR.. "src/lib/formats/dmv_dsk.h",
@@ -768,7 +772,7 @@ end
--@src/lib/formats/dvk_mx_dsk.h,FORMATS["DVK_MX_DSK"] = true
--------------------------------------------------
-if (FORMATS["DVK_MX_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "DVK_MX_DSK") then
files {
MAME_DIR.. "src/lib/formats/dvk_mx_dsk.cpp",
MAME_DIR.. "src/lib/formats/dvk_mx_dsk.h",
@@ -780,7 +784,7 @@ end
--@src/lib/formats/esq16_dsk.h,FORMATS["ESQ16_DSK"] = true
--------------------------------------------------
-if (FORMATS["ESQ16_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "ESQ16_DSK") then
files {
MAME_DIR.. "src/lib/formats/esq16_dsk.cpp",
MAME_DIR.. "src/lib/formats/esq16_dsk.h",
@@ -792,7 +796,7 @@ end
--@src/lib/formats/esq8_dsk.h,FORMATS["ESQ8_DSK"] = true
--------------------------------------------------
-if (FORMATS["ESQ8_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "ESQ8_DSK") then
files {
MAME_DIR.. "src/lib/formats/esq8_dsk.cpp",
MAME_DIR.. "src/lib/formats/esq8_dsk.h",
@@ -804,7 +808,7 @@ end
--@src/lib/formats/excali64_dsk.h,FORMATS["EXCALI64_DSK"] = true
--------------------------------------------------
-if (FORMATS["EXCALI64_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "EXCALI64_DSK") then
files {
MAME_DIR.. "src/lib/formats/excali64_dsk.cpp",
MAME_DIR.. "src/lib/formats/excali64_dsk.h",
@@ -816,7 +820,7 @@ end
--@src/lib/formats/fc100_cas.h,FORMATS["FC100_CAS"] = true
--------------------------------------------------
-if (FORMATS["FC100_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "FC100_CAS") then
files {
MAME_DIR.. "src/lib/formats/fc100_cas.cpp",
MAME_DIR.. "src/lib/formats/fc100_cas.h",
@@ -828,7 +832,7 @@ end
--@src/lib/formats/fdd_dsk.h,FORMATS["FDD_DSK"] = true
--------------------------------------------------
-if (FORMATS["FDD_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "FDD_DSK") then
files {
MAME_DIR.. "src/lib/formats/fdd_dsk.cpp",
MAME_DIR.. "src/lib/formats/fdd_dsk.h",
@@ -840,7 +844,7 @@ end
--@src/lib/formats/fl1_dsk.h,FORMATS["FL1_DSK"] = true
--------------------------------------------------
-if (FORMATS["FL1_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "FL1_DSK") then
files {
MAME_DIR.. "src/lib/formats/fl1_dsk.cpp",
MAME_DIR.. "src/lib/formats/fl1_dsk.h",
@@ -852,7 +856,7 @@ end
--@src/lib/formats/flex_dsk.h,FORMATS["FLEX_DSK"] = true
--------------------------------------------------
-if (FORMATS["FLEX_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "FLEX_DSK") then
files {
MAME_DIR.. "src/lib/formats/flex_dsk.cpp",
MAME_DIR.. "src/lib/formats/flex_dsk.h",
@@ -864,7 +868,7 @@ end
--@src/lib/formats/uniflex_dsk.h,FORMATS["UNIFLEX_DSK"] = true
--------------------------------------------------
-if (FORMATS["UNIFLEX_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "UNIFLEX_DSK") then
files {
MAME_DIR.. "src/lib/formats/uniflex_dsk.cpp",
MAME_DIR.. "src/lib/formats/uniflex_dsk.h",
@@ -876,7 +880,7 @@ end
--@src/lib/formats/fm7_cas.h,FORMATS["FM7_CAS"] = true
--------------------------------------------------
-if (FORMATS["FM7_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "FM7_CAS") then
files {
MAME_DIR.. "src/lib/formats/fm7_cas.cpp",
MAME_DIR.. "src/lib/formats/fm7_cas.h",
@@ -888,7 +892,7 @@ end
--@src/lib/formats/fmsx_cas.h,FORMATS["FMSX_CAS"] = true
--------------------------------------------------
-if (FORMATS["FMSX_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "FMSX_CAS") then
files {
MAME_DIR.. "src/lib/formats/fmsx_cas.cpp",
MAME_DIR.. "src/lib/formats/fmsx_cas.h",
@@ -900,7 +904,7 @@ end
--@src/lib/formats/fmtowns_dsk.h,FORMATS["FMTOWNS_DSK"] = true
--------------------------------------------------
-if (FORMATS["FMTOWNS_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "FMTOWNS_DSK") then
files {
MAME_DIR.. "src/lib/formats/fmtowns_dsk.cpp",
MAME_DIR.. "src/lib/formats/fmtowns_dsk.h",
@@ -912,7 +916,7 @@ end
--@src/lib/formats/fsd_dsk.h,FORMATS["FSD_DSK"] = true
--------------------------------------------------
-if (FORMATS["FSD_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "FSD_DSK") then
files {
MAME_DIR.. "src/lib/formats/fsd_dsk.cpp",
MAME_DIR.. "src/lib/formats/fsd_dsk.h",
@@ -924,7 +928,7 @@ end
--@src/lib/formats/g64_dsk.h,FORMATS["G64_DSK"] = true
--------------------------------------------------
-if (FORMATS["G64_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "G64_DSK") then
files {
MAME_DIR.. "src/lib/formats/g64_dsk.cpp",
MAME_DIR.. "src/lib/formats/g64_dsk.h",
@@ -936,7 +940,7 @@ end
--@src/lib/formats/gtp_cas.h,FORMATS["GTP_CAS"] = true
--------------------------------------------------
-if (FORMATS["GTP_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "GTP_CAS") then
files {
MAME_DIR.. "src/lib/formats/gtp_cas.cpp",
MAME_DIR.. "src/lib/formats/gtp_cas.h",
@@ -948,7 +952,7 @@ end
--@src/lib/formats/guab_dsk.h,FORMATS["GUAB_DSK"] = true
--------------------------------------------------
-if (FORMATS["GUAB_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "GUAB_DSK") then
files {
MAME_DIR.. "src/lib/formats/guab_dsk.cpp",
MAME_DIR.. "src/lib/formats/guab_dsk.h",
@@ -960,7 +964,7 @@ end
--@src/lib/formats/h8_cas.h,FORMATS["H8_CAS"] = true
--------------------------------------------------
-if (FORMATS["H8_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "H8_CAS") then
files {
MAME_DIR.. "src/lib/formats/h8_cas.cpp",
MAME_DIR.. "src/lib/formats/h8_cas.h",
@@ -972,7 +976,7 @@ end
--@src/lib/formats/hector_minidisc.h,FORMATS["HECTOR_MINIDISC"] = true
--------------------------------------------------
-if (FORMATS["HECTOR_MINIDISC"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "HECTOR_MINIDISC") then
files {
MAME_DIR.. "src/lib/formats/hector_minidisc.cpp",
MAME_DIR.. "src/lib/formats/hector_minidisc.h",
@@ -984,7 +988,7 @@ end
--@src/lib/formats/hect_dsk.h,FORMATS["HECT_DSK"] = true
--------------------------------------------------
-if (FORMATS["HECT_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "HECT_DSK") then
files {
MAME_DIR.. "src/lib/formats/hect_dsk.cpp",
MAME_DIR.. "src/lib/formats/hect_dsk.h",
@@ -996,7 +1000,7 @@ end
--@src/lib/formats/hect_tap.h,FORMATS["HECT_TAP"] = true
--------------------------------------------------
-if (FORMATS["HECT_TAP"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "HECT_TAP") then
files {
MAME_DIR.. "src/lib/formats/hect_tap.cpp",
MAME_DIR.. "src/lib/formats/hect_tap.h",
@@ -1008,7 +1012,7 @@ end
--@src/lib/formats/hti_tape.h,FORMATS["HTI_TAP"] = true
--------------------------------------------------
-if (FORMATS["HTI_TAP"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "HTI_TAP") then
files {
MAME_DIR.. "src/lib/formats/hti_tape.cpp",
MAME_DIR.. "src/lib/formats/hti_tape.h",
@@ -1020,7 +1024,7 @@ end
--@src/lib/formats/hpi_dsk.h,FORMATS["HPI_DSK"] = true
--------------------------------------------------
-if (FORMATS["HPI_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "HPI_DSK") then
files {
MAME_DIR.. "src/lib/formats/hpi_dsk.cpp",
MAME_DIR.. "src/lib/formats/hpi_dsk.h",
@@ -1032,7 +1036,7 @@ end
--@src/lib/formats/hp_ipc_dsk.h,FORMATS["HP_IPC_DSK"] = true
--------------------------------------------------
-if (FORMATS["HP_IPC_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "HP_IPC_DSK") then
files {
MAME_DIR.. "src/lib/formats/hp_ipc_dsk.cpp",
MAME_DIR.. "src/lib/formats/hp_ipc_dsk.h",
@@ -1044,7 +1048,7 @@ end
--@src/lib/formats/img_dsk.h,FORMATS["IMG_DSK"] = true
--------------------------------------------------
-if (FORMATS["IMG_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "IMG_DSK") then
files {
MAME_DIR.. "src/lib/formats/img_dsk.cpp",
MAME_DIR.. "src/lib/formats/img_dsk.h",
@@ -1056,7 +1060,7 @@ end
--@src/lib/formats/iq151_dsk.h,FORMATS["IQ151_DSK"] = true
--------------------------------------------------
-if (FORMATS["IQ151_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "IQ151_DSK") then
files {
MAME_DIR.. "src/lib/formats/iq151_dsk.cpp",
MAME_DIR.. "src/lib/formats/iq151_dsk.h",
@@ -1068,7 +1072,7 @@ end
--@src/lib/formats/itt3030_dsk.h,FORMATS["ITT3030_DSK"] = true
--------------------------------------------------
-if (FORMATS["ITT3030_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "ITT3030_DSK") then
files {
MAME_DIR.. "src/lib/formats/itt3030_dsk.cpp",
MAME_DIR.. "src/lib/formats/itt3030_dsk.h",
@@ -1080,7 +1084,7 @@ end
--@src/lib/formats/juku_dsk.h,FORMATS["JUKU_DSK"] = true
--------------------------------------------------
-if (FORMATS["JUKU_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "JUKU_DSK") then
files {
MAME_DIR.. "src/lib/formats/juku_dsk.cpp",
MAME_DIR.. "src/lib/formats/juku_dsk.h",
@@ -1092,7 +1096,7 @@ end
--@src/lib/formats/jvc_dsk.h,FORMATS["JVC_DSK"] = true
--------------------------------------------------
-if (FORMATS["JVC_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "JVC_DSK") then
files {
MAME_DIR.. "src/lib/formats/jvc_dsk.cpp",
MAME_DIR.. "src/lib/formats/jvc_dsk.h",
@@ -1104,7 +1108,7 @@ end
--@src/lib/formats/os9_dsk.h,FORMATS["OS9_DSK"] = true
--------------------------------------------------
-if (FORMATS["OS9_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "OS9_DSK") then
files {
MAME_DIR.. "src/lib/formats/os9_dsk.cpp",
MAME_DIR.. "src/lib/formats/os9_dsk.h",
@@ -1116,7 +1120,7 @@ end
--@src/lib/formats/jfd_dsk.h,FORMATS["JFD_DSK"] = true
--------------------------------------------------
-if (FORMATS["JFD_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "JFD_DSK") then
files {
MAME_DIR.. "src/lib/formats/jfd_dsk.cpp",
MAME_DIR.. "src/lib/formats/jfd_dsk.h",
@@ -1128,7 +1132,7 @@ end
--@src/lib/formats/kaypro_dsk.h,FORMATS["KAYPRO_DSK"] = true
--------------------------------------------------
-if (FORMATS["KAYPRO_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "KAYPRO_DSK") then
files {
MAME_DIR.. "src/lib/formats/kaypro_dsk.cpp",
MAME_DIR.. "src/lib/formats/kaypro_dsk.h",
@@ -1140,7 +1144,7 @@ end
--@src/lib/formats/kc85_dsk.h,FORMATS["KC85_DSK"] = true
--------------------------------------------------
-if (FORMATS["KC85_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "KC85_DSK") then
files {
MAME_DIR.. "src/lib/formats/kc85_dsk.cpp",
MAME_DIR.. "src/lib/formats/kc85_dsk.h",
@@ -1152,7 +1156,7 @@ end
--@src/lib/formats/kc_cas.h,FORMATS["KC_CAS"] = true
--------------------------------------------------
-if (FORMATS["KC_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "KC_CAS") then
files {
MAME_DIR.. "src/lib/formats/kc_cas.cpp",
MAME_DIR.. "src/lib/formats/kc_cas.h",
@@ -1164,7 +1168,7 @@ end
--@src/lib/formats/kim1_cas.h,FORMATS["KIM1_CAS"] = true
--------------------------------------------------
-if (FORMATS["KIM1_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "KIM1_CAS") then
files {
MAME_DIR.. "src/lib/formats/kim1_cas.cpp",
MAME_DIR.. "src/lib/formats/kim1_cas.h",
@@ -1176,7 +1180,7 @@ end
--@src/lib/formats/lviv_lvt.h,FORMATS["LVIV_LVT"] = true
--------------------------------------------------
-if (FORMATS["LVIV_LVT"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "LVIV_LVT") then
files {
MAME_DIR.. "src/lib/formats/lviv_lvt.cpp",
MAME_DIR.. "src/lib/formats/lviv_lvt.h",
@@ -1188,7 +1192,7 @@ end
--@src/lib/formats/m20_dsk.h,FORMATS["M20_DSK"] = true
--------------------------------------------------
-if (FORMATS["M20_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "M20_DSK") then
files {
MAME_DIR.. "src/lib/formats/m20_dsk.cpp",
MAME_DIR.. "src/lib/formats/m20_dsk.h",
@@ -1200,7 +1204,7 @@ end
--@src/lib/formats/m5_dsk.h,FORMATS["M5_DSK"] = true
--------------------------------------------------
-if (FORMATS["M5_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "M5_DSK") then
files {
MAME_DIR.. "src/lib/formats/m5_dsk.cpp",
MAME_DIR.. "src/lib/formats/m5_dsk.h",
@@ -1212,7 +1216,7 @@ end
--@src/lib/formats/mbee_cas.h,FORMATS["MBEE_CAS"] = true
--------------------------------------------------
-if (FORMATS["MBEE_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "MBEE_CAS") then
files {
MAME_DIR.. "src/lib/formats/mbee_cas.cpp",
MAME_DIR.. "src/lib/formats/mbee_cas.h",
@@ -1224,7 +1228,7 @@ end
--@src/lib/formats/mdos_dsk.h,FORMATS["MDOS_DSK"] = true
--------------------------------------------------
-if (FORMATS["MDOS_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "MDOS_DSK") then
files {
MAME_DIR.. "src/lib/formats/mdos_dsk.cpp",
MAME_DIR.. "src/lib/formats/mdos_dsk.h",
@@ -1236,7 +1240,7 @@ end
--@src/lib/formats/mfm_hd.h,FORMATS["MFM_HD"] = true
--------------------------------------------------
-if (FORMATS["MFM_HD"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "MFM_HD") then
files {
MAME_DIR.. "src/lib/formats/mfm_hd.cpp",
MAME_DIR.. "src/lib/formats/mfm_hd.h",
@@ -1248,7 +1252,7 @@ end
--@src/lib/formats/mm_dsk.h,FORMATS["MM_DSK"] = true
--------------------------------------------------
-if (FORMATS["MM_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "MM_DSK") then
files {
MAME_DIR.. "src/lib/formats/mm_dsk.cpp",
MAME_DIR.. "src/lib/formats/mm_dsk.h",
@@ -1260,7 +1264,7 @@ end
--@src/lib/formats/ms0515_dsk.h,FORMATS["MS0515_DSK"] = true
--------------------------------------------------
-if (FORMATS["MS0515_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "MS0515_DSK") then
files {
MAME_DIR.. "src/lib/formats/ms0515_dsk.cpp",
MAME_DIR.. "src/lib/formats/ms0515_dsk.h",
@@ -1272,7 +1276,7 @@ end
--@src/lib/formats/msx_dsk.h,FORMATS["MSX_DSK"] = true
--------------------------------------------------
-if (FORMATS["MSX_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "MSX_DSK") then
files {
MAME_DIR.. "src/lib/formats/msx_dsk.cpp",
MAME_DIR.. "src/lib/formats/msx_dsk.h",
@@ -1284,7 +1288,7 @@ end
--@src/lib/formats/mtx_dsk.h,FORMATS["MTX_DSK"] = true
--------------------------------------------------
-if (FORMATS["MTX_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "MTX_DSK") then
files {
MAME_DIR.. "src/lib/formats/mtx_dsk.cpp",
MAME_DIR.. "src/lib/formats/mtx_dsk.h",
@@ -1296,7 +1300,7 @@ end
--@src/lib/formats/mz_cas.h,FORMATS["MZ_CAS"] = true
--------------------------------------------------
-if (FORMATS["MZ_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "MZ_CAS") then
files {
MAME_DIR.. "src/lib/formats/mz_cas.cpp",
MAME_DIR.. "src/lib/formats/mz_cas.h",
@@ -1308,7 +1312,7 @@ end
--@src/lib/formats/nanos_dsk.h,FORMATS["NANOS_DSK"] = true
--------------------------------------------------
-if (FORMATS["NANOS_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "NANOS_DSK") then
files {
MAME_DIR.. "src/lib/formats/nanos_dsk.cpp",
MAME_DIR.. "src/lib/formats/nanos_dsk.h",
@@ -1320,7 +1324,7 @@ end
--@src/lib/formats/nascom_dsk.h,FORMATS["NASCOM_DSK"] = true
--------------------------------------------------
-if (FORMATS["NASCOM_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "NASCOM_DSK") then
files {
MAME_DIR.. "src/lib/formats/nascom_dsk.cpp",
MAME_DIR.. "src/lib/formats/nascom_dsk.h",
@@ -1332,7 +1336,7 @@ end
--@src/lib/formats/naslite_dsk.h,FORMATS["NASLITE_DSK"] = true
--------------------------------------------------
-if (FORMATS["NASLITE_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "NASLITE_DSK") then
files {
MAME_DIR.. "src/lib/formats/naslite_dsk.cpp",
MAME_DIR.. "src/lib/formats/naslite_dsk.h",
@@ -1344,7 +1348,7 @@ end
--@src/lib/formats/nes_dsk.h,FORMATS["NES_DSK"] = true
--------------------------------------------------
-if (FORMATS["NES_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "NES_DSK") then
files {
MAME_DIR.. "src/lib/formats/nes_dsk.cpp",
MAME_DIR.. "src/lib/formats/nes_dsk.h",
@@ -1356,7 +1360,7 @@ end
--@src/lib/formats/nfd_dsk.h,FORMATS["NFD_DSK"] = true
--------------------------------------------------
-if (FORMATS["NFD_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "NFD_DSK") then
files {
MAME_DIR.. "src/lib/formats/nfd_dsk.cpp",
MAME_DIR.. "src/lib/formats/nfd_dsk.h",
@@ -1368,7 +1372,7 @@ end
--@src/lib/formats/opd_dsk.h,FORMATS["OPD_DSK"] = true
--------------------------------------------------
-if (FORMATS["OPD_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "OPD_DSK") then
files {
MAME_DIR.. "src/lib/formats/opd_dsk.cpp",
MAME_DIR.. "src/lib/formats/opd_dsk.h",
@@ -1380,7 +1384,7 @@ end
--@src/lib/formats/orao_cas.h,FORMATS["ORAO_CAS"] = true
--------------------------------------------------
-if (FORMATS["ORAO_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "ORAO_CAS") then
files {
MAME_DIR.. "src/lib/formats/orao_cas.cpp",
MAME_DIR.. "src/lib/formats/orao_cas.h",
@@ -1392,7 +1396,7 @@ end
--@src/lib/formats/oric_dsk.h,FORMATS["ORIC_DSK"] = true
--------------------------------------------------
-if (FORMATS["ORIC_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "ORIC_DSK") then
files {
MAME_DIR.. "src/lib/formats/oric_dsk.cpp",
MAME_DIR.. "src/lib/formats/oric_dsk.h",
@@ -1404,7 +1408,7 @@ end
--@src/lib/formats/oric_tap.h,FORMATS["ORIC_TAP"] = true
--------------------------------------------------
-if (FORMATS["ORIC_TAP"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "ORIC_TAP") then
files {
MAME_DIR.. "src/lib/formats/oric_tap.cpp",
MAME_DIR.. "src/lib/formats/oric_tap.h",
@@ -1416,7 +1420,7 @@ end
--@src/lib/formats/ibmxdf_dsk.h,FORMATS["IBMXDF_DSK"] = true
--------------------------------------------------
-if (FORMATS["IBMXDF_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "IBMXDF_DSK") then
files {
MAME_DIR.. "src/lib/formats/ibmxdf_dsk.cpp",
MAME_DIR.. "src/lib/formats/ibmxdf_dsk.h",
@@ -1428,7 +1432,7 @@ end
--@src/lib/formats/p2000t_cas.h,FORMATS["P2000T_CAS"] = true
--------------------------------------------------
-if (FORMATS["P2000T_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "P2000T_CAS") then
files {
MAME_DIR.. "src/lib/formats/p2000t_cas.cpp",
MAME_DIR.. "src/lib/formats/p2000t_cas.h",
@@ -1441,7 +1445,7 @@ end
--@src/lib/formats/p6001_cas.h,FORMATS["P6001_CAS"] = true
--------------------------------------------------
-if (FORMATS["P6001_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "P6001_CAS") then
files {
MAME_DIR.. "src/lib/formats/p6001_cas.cpp",
MAME_DIR.. "src/lib/formats/p6001_cas.h",
@@ -1453,7 +1457,7 @@ end
--@src/lib/formats/pasti_dsk.h,FORMATS["PASTI_DSK"] = true
--------------------------------------------------
-if (FORMATS["PASTI_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "PASTI_DSK") then
files {
MAME_DIR.. "src/lib/formats/pasti_dsk.cpp",
MAME_DIR.. "src/lib/formats/pasti_dsk.h",
@@ -1465,7 +1469,7 @@ end
--@src/lib/formats/pc98fdi_dsk.h,FORMATS["PC98FDI_DSK"] = true
--------------------------------------------------
-if (FORMATS["PC98FDI_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "PC98FDI_DSK") then
files {
MAME_DIR.. "src/lib/formats/pc98fdi_dsk.cpp",
MAME_DIR.. "src/lib/formats/pc98fdi_dsk.h",
@@ -1477,7 +1481,7 @@ end
--@src/lib/formats/pc98_dsk.h,FORMATS["PC98_DSK"] = true
--------------------------------------------------
-if (FORMATS["PC98_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "PC98_DSK") then
files {
MAME_DIR.. "src/lib/formats/pc98_dsk.cpp",
MAME_DIR.. "src/lib/formats/pc98_dsk.h",
@@ -1489,7 +1493,7 @@ end
--@src/lib/formats/ipf_dsk.h,FORMATS["IPF_DSK"] = true
--------------------------------------------------
-if (FORMATS["IPF_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "IPF_DSK") then
files {
MAME_DIR.. "src/lib/formats/ipf_dsk.cpp",
MAME_DIR.. "src/lib/formats/ipf_dsk.h",
@@ -1501,7 +1505,7 @@ end
--@src/lib/formats/phc25_cas.h,FORMATS["PHC25_CAS"] = true
--------------------------------------------------
-if (FORMATS["PHC25_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "PHC25_CAS") then
files {
MAME_DIR.. "src/lib/formats/phc25_cas.cpp",
MAME_DIR.. "src/lib/formats/phc25_cas.h",
@@ -1513,7 +1517,7 @@ end
--@src/lib/formats/pk8020_dsk.h,FORMATS["PK8020_DSK"] = true
--------------------------------------------------
-if (FORMATS["PK8020_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "PK8020_DSK") then
files {
MAME_DIR.. "src/lib/formats/pk8020_dsk.cpp",
MAME_DIR.. "src/lib/formats/pk8020_dsk.h",
@@ -1525,7 +1529,7 @@ end
--@src/lib/formats/pmd_cas.h,FORMATS["PMD_CAS"] = true
--------------------------------------------------
-if (FORMATS["PMD_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "PMD_CAS") then
files {
MAME_DIR.. "src/lib/formats/pmd_cas.cpp",
MAME_DIR.. "src/lib/formats/pmd_cas.h",
@@ -1537,7 +1541,7 @@ end
--@src/lib/formats/poly_dsk.h,FORMATS["POLY_DSK"] = true
--------------------------------------------------
-if (FORMATS["POLY_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "POLY_DSK") then
files {
MAME_DIR.. "src/lib/formats/poly_dsk.cpp",
MAME_DIR.. "src/lib/formats/poly_dsk.h",
@@ -1549,7 +1553,7 @@ end
--@src/lib/formats/ppg_dsk.h,FORMATS["PPG_DSK"] = true
--------------------------------------------------
-if (FORMATS["PPG_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "PPG_DSK") then
files {
MAME_DIR.. "src/lib/formats/ppg_dsk.cpp",
MAME_DIR.. "src/lib/formats/ppg_dsk.h",
@@ -1561,7 +1565,7 @@ end
--@src/lib/formats/primoptp.h,FORMATS["PRIMOPTP"] = true
--------------------------------------------------
-if (FORMATS["PRIMOPTP"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "PRIMOPTP") then
files {
MAME_DIR.. "src/lib/formats/primoptp.cpp",
MAME_DIR.. "src/lib/formats/primoptp.h",
@@ -1573,7 +1577,7 @@ end
--@src/lib/formats/pyldin_dsk.h,FORMATS["PYLDIN_DSK"] = true
--------------------------------------------------
-if (FORMATS["PYLDIN_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "PYLDIN_DSK") then
files {
MAME_DIR.. "src/lib/formats/pyldin_dsk.cpp",
MAME_DIR.. "src/lib/formats/pyldin_dsk.h",
@@ -1585,7 +1589,7 @@ end
--@src/lib/formats/ql_dsk.h,FORMATS["QL_DSK"] = true
--------------------------------------------------
-if (FORMATS["QL_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "QL_DSK") then
files {
MAME_DIR.. "src/lib/formats/ql_dsk.cpp",
MAME_DIR.. "src/lib/formats/ql_dsk.h",
@@ -1609,7 +1613,7 @@ end
--@src/lib/formats/rk_cas.h,FORMATS["RK_CAS"] = true
--------------------------------------------------
-if (FORMATS["RK_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "RK_CAS") then
files {
MAME_DIR.. "src/lib/formats/rk_cas.cpp",
MAME_DIR.. "src/lib/formats/rk_cas.h",
@@ -1621,7 +1625,7 @@ end
--@src/lib/formats/rx50_dsk.h,FORMATS["RX50_DSK"] = true
--------------------------------------------------
-if (FORMATS["RX50_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "RX50_DSK") then
files {
MAME_DIR.. "src/lib/formats/rx50_dsk.cpp",
MAME_DIR.. "src/lib/formats/rx50_dsk.h",
@@ -1633,7 +1637,7 @@ end
--@src/lib/formats/sc3000_bit.h,FORMATS["SC3000_BIT"] = true
--------------------------------------------------
-if (FORMATS["SC3000_BIT"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "SC3000_BIT") then
files {
MAME_DIR.. "src/lib/formats/sc3000_bit.cpp",
MAME_DIR.. "src/lib/formats/sc3000_bit.h",
@@ -1645,7 +1649,7 @@ end
--@src/lib/formats/sdd_dsk.h,FORMATS["SDD_DSK"] = true
--------------------------------------------------
-if (FORMATS["SDD_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "SDD_DSK") then
files {
MAME_DIR.. "src/lib/formats/sdd_dsk.cpp",
MAME_DIR.. "src/lib/formats/sdd_dsk.h",
@@ -1657,7 +1661,7 @@ end
--@src/lib/formats/sf7000_dsk.h,FORMATS["SF7000_DSK"] = true
--------------------------------------------------
-if (FORMATS["SF7000_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "SF7000_DSK") then
files {
MAME_DIR.. "src/lib/formats/sf7000_dsk.cpp",
MAME_DIR.. "src/lib/formats/sf7000_dsk.h",
@@ -1669,7 +1673,7 @@ end
--@src/lib/formats/smx_dsk.h,FORMATS["SMX_DSK"] = true
--------------------------------------------------
-if (FORMATS["SMX_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "SMX_DSK") then
files {
MAME_DIR.. "src/lib/formats/smx_dsk.cpp",
MAME_DIR.. "src/lib/formats/smx_dsk.h",
@@ -1681,7 +1685,7 @@ end
--@src/lib/formats/sol_cas.h,FORMATS["SOL_CAS"] = true
--------------------------------------------------
-if (FORMATS["SOL_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "SOL_CAS") then
files {
MAME_DIR.. "src/lib/formats/sol_cas.cpp",
MAME_DIR.. "src/lib/formats/sol_cas.h",
@@ -1693,7 +1697,7 @@ end
--@src/lib/formats/sorc_cas.h,FORMATS["SORC_CAS"] = true
--------------------------------------------------
-if (FORMATS["SORC_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "SORC_CAS") then
files {
MAME_DIR.. "src/lib/formats/sorc_cas.cpp",
MAME_DIR.. "src/lib/formats/sorc_cas.h",
@@ -1705,7 +1709,7 @@ end
--@src/lib/formats/sorc_dsk.h,FORMATS["SORC_DSK"] = true
--------------------------------------------------
-if (FORMATS["SORC_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "SORC_DSK") then
files {
MAME_DIR.. "src/lib/formats/sorc_dsk.cpp",
MAME_DIR.. "src/lib/formats/sorc_dsk.h",
@@ -1717,7 +1721,7 @@ end
--@src/lib/formats/sord_cas.h,FORMATS["SORD_CAS"] = true
--------------------------------------------------
-if (FORMATS["SORD_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "SORD_CAS") then
files {
MAME_DIR.. "src/lib/formats/sord_cas.cpp",
MAME_DIR.. "src/lib/formats/sord_cas.h",
@@ -1729,7 +1733,7 @@ end
--@src/lib/formats/spc1000_cas.h,FORMATS["SPC1000_CAS"] = true
--------------------------------------------------
-if (FORMATS["SPC1000_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "SPC1000_CAS") then
files {
MAME_DIR.. "src/lib/formats/spc1000_cas.cpp",
MAME_DIR.. "src/lib/formats/spc1000_cas.h",
@@ -1741,7 +1745,7 @@ end
--@src/lib/formats/st_dsk.h,FORMATS["ST_DSK"] = true
--------------------------------------------------
-if (FORMATS["ST_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "ST_DSK") then
files {
MAME_DIR.. "src/lib/formats/st_dsk.cpp",
MAME_DIR.. "src/lib/formats/st_dsk.h",
@@ -1753,7 +1757,7 @@ end
--@src/lib/formats/svi_cas.h,FORMATS["SVI_CAS"] = true
--------------------------------------------------
-if (FORMATS["SVI_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "SVI_CAS") then
files {
MAME_DIR.. "src/lib/formats/svi_cas.cpp",
MAME_DIR.. "src/lib/formats/svi_cas.h",
@@ -1765,7 +1769,7 @@ end
--@src/lib/formats/svi_dsk.h,FORMATS["SVI_DSK"] = true
--------------------------------------------------
-if (FORMATS["SVI_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "SVI_DSK") then
files {
MAME_DIR.. "src/lib/formats/svi_dsk.cpp",
MAME_DIR.. "src/lib/formats/svi_dsk.h",
@@ -1777,7 +1781,7 @@ end
--@src/lib/formats/swd_dsk.h,FORMATS["SWD_DSK"] = true
--------------------------------------------------
-if (FORMATS["SWD_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "SWD_DSK") then
files {
MAME_DIR.. "src/lib/formats/swd_dsk.cpp",
MAME_DIR.. "src/lib/formats/swd_dsk.h",
@@ -1789,7 +1793,7 @@ end
--@src/lib/formats/tandy2k_dsk.h,FORMATS["TANDY2K_DSK"] = true
--------------------------------------------------
-if (FORMATS["TANDY2K_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "TANDY2K_DSK") then
files {
MAME_DIR.. "src/lib/formats/tandy2k_dsk.cpp",
MAME_DIR.. "src/lib/formats/tandy2k_dsk.h",
@@ -1801,7 +1805,7 @@ end
--@src/lib/formats/thom_cas.h,FORMATS["THOM_CAS"] = true
--------------------------------------------------
-if (FORMATS["THOM_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "THOM_CAS") then
files {
MAME_DIR.. "src/lib/formats/thom_cas.cpp",
MAME_DIR.. "src/lib/formats/thom_cas.h",
@@ -1813,7 +1817,7 @@ end
--@src/lib/formats/thom_dsk.h,FORMATS["THOM_DSK"] = true
--------------------------------------------------
-if (FORMATS["THOM_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "THOM_DSK") then
files {
MAME_DIR.. "src/lib/formats/thom_dsk.cpp",
MAME_DIR.. "src/lib/formats/thom_dsk.h",
@@ -1825,7 +1829,7 @@ end
--@src/lib/formats/ti99_dsk.h,FORMATS["TI99_DSK"] = true
--------------------------------------------------
-if (FORMATS["TI99_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "TI99_DSK") then
files {
MAME_DIR.. "src/lib/formats/ti99_dsk.cpp",
MAME_DIR.. "src/lib/formats/ti99_dsk.h",
@@ -1837,7 +1841,7 @@ end
--@src/lib/formats/tiki100_dsk.h,FORMATS["TIKI100_DSK"] = true
--------------------------------------------------
-if (FORMATS["TIKI100_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "TIKI100_DSK") then
files {
MAME_DIR.. "src/lib/formats/tiki100_dsk.cpp",
MAME_DIR.. "src/lib/formats/tiki100_dsk.h",
@@ -1849,7 +1853,7 @@ end
--@src/lib/formats/trd_dsk.h,FORMATS["TRD_DSK"] = true
--------------------------------------------------
-if (FORMATS["TRD_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "TRD_DSK") then
files {
MAME_DIR.. "src/lib/formats/trd_dsk.cpp",
MAME_DIR.. "src/lib/formats/trd_dsk.h",
@@ -1861,7 +1865,7 @@ end
--@src/lib/formats/trs80_dsk.h,FORMATS["TRS80_DSK"] = true
--------------------------------------------------
-if (FORMATS["TRS80_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "TRS80_DSK") then
files {
MAME_DIR.. "src/lib/formats/trs80_dsk.cpp",
MAME_DIR.. "src/lib/formats/trs80_dsk.h",
@@ -1873,7 +1877,7 @@ end
--@src/lib/formats/trs_cas.h,FORMATS["TRS_CAS"] = true
--------------------------------------------------
-if (FORMATS["TRS_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "TRS_CAS") then
files {
MAME_DIR.. "src/lib/formats/trs_cas.cpp",
MAME_DIR.. "src/lib/formats/trs_cas.h",
@@ -1885,7 +1889,7 @@ end
--@src/lib/formats/tvc_cas.h,FORMATS["TVC_CAS"] = true
--------------------------------------------------
-if (FORMATS["TVC_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "TVC_CAS") then
files {
MAME_DIR.. "src/lib/formats/tvc_cas.cpp",
MAME_DIR.. "src/lib/formats/tvc_cas.h",
@@ -1897,7 +1901,7 @@ end
--@src/lib/formats/tvc_dsk.h,FORMATS["TVC_DSK"] = true
--------------------------------------------------
-if (FORMATS["TVC_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "TVC_DSK") then
files {
MAME_DIR.. "src/lib/formats/tvc_dsk.cpp",
MAME_DIR.. "src/lib/formats/tvc_dsk.h",
@@ -1909,7 +1913,7 @@ end
--@src/lib/formats/tzx_cas.h,FORMATS["TZX_CAS"] = true
--------------------------------------------------
-if (FORMATS["TZX_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "TZX_CAS") then
files {
MAME_DIR.. "src/lib/formats/tzx_cas.cpp",
MAME_DIR.. "src/lib/formats/tzx_cas.h",
@@ -1921,7 +1925,7 @@ end
--@src/lib/formats/uef_cas.h,FORMATS["UEF_CAS"] = true
--------------------------------------------------
-if (FORMATS["UEF_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "UEF_CAS") then
files {
MAME_DIR.. "src/lib/formats/uef_cas.cpp",
MAME_DIR.. "src/lib/formats/uef_cas.h",
@@ -1933,7 +1937,7 @@ end
--@src/lib/formats/vdk_dsk.h,FORMATS["VDK_DSK"] = true
--------------------------------------------------
-if (FORMATS["VDK_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "VDK_DSK") then
files {
MAME_DIR.. "src/lib/formats/vdk_dsk.cpp",
MAME_DIR.. "src/lib/formats/vdk_dsk.h",
@@ -1945,7 +1949,7 @@ end
--@src/lib/formats/vector06_dsk.h,FORMATS["VECTOR06_DSK"] = true
--------------------------------------------------
-if (FORMATS["VECTOR06_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "VECTOR06_DSK") then
files {
MAME_DIR.. "src/lib/formats/vector06_dsk.cpp",
MAME_DIR.. "src/lib/formats/vector06_dsk.h",
@@ -1957,7 +1961,7 @@ end
--@src/lib/formats/vg5k_cas.h,FORMATS["VG5K_CAS"] = true
--------------------------------------------------
-if (FORMATS["VG5K_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "VG5K_CAS") then
files {
MAME_DIR.. "src/lib/formats/vg5k_cas.cpp",
MAME_DIR.. "src/lib/formats/vg5k_cas.h",
@@ -1969,7 +1973,7 @@ end
--@src/lib/formats/victor9k_dsk.h,FORMATS["VICTOR9K_DSK"] = true
--------------------------------------------------
-if (FORMATS["VICTOR9K_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "VICTOR9K_DSK") then
files {
MAME_DIR.. "src/lib/formats/victor9k_dsk.cpp",
MAME_DIR.. "src/lib/formats/victor9k_dsk.h",
@@ -1981,7 +1985,7 @@ end
--@src/lib/formats/vt_cas.h,FORMATS["VT_CAS"] = true
--------------------------------------------------
-if (FORMATS["VT_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "VT_CAS") then
files {
MAME_DIR.. "src/lib/formats/vt_cas.cpp",
MAME_DIR.. "src/lib/formats/vt_cas.h",
@@ -1993,7 +1997,7 @@ end
--@src/lib/formats/wd177x_dsk.h,FORMATS["WD177X_DSK"] = true
--------------------------------------------------
-if (FORMATS["WD177X_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "WD177X_DSK") then
files {
MAME_DIR.. "src/lib/formats/wd177x_dsk.cpp",
MAME_DIR.. "src/lib/formats/wd177x_dsk.h",
@@ -2005,7 +2009,7 @@ end
--@src/lib/formats/x07_cas.h,FORMATS["X07_CAS"] = true
--------------------------------------------------
-if (FORMATS["X07_CAS"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "X07_CAS") then
files {
MAME_DIR.. "src/lib/formats/x07_cas.cpp",
MAME_DIR.. "src/lib/formats/x07_cas.h",
@@ -2017,7 +2021,7 @@ end
--@src/lib/formats/x1_tap.h,FORMATS["X1_TAP"] = true
--------------------------------------------------
-if (FORMATS["X1_TAP"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "X1_TAP") then
files {
MAME_DIR.. "src/lib/formats/x1_tap.cpp",
MAME_DIR.. "src/lib/formats/x1_tap.h",
@@ -2029,7 +2033,7 @@ end
--@src/lib/formats/xdf_dsk.h,FORMATS["XDF_DSK"] = true
--------------------------------------------------
-if (FORMATS["XDF_DSK"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "XDF_DSK") then
files {
MAME_DIR.. "src/lib/formats/xdf_dsk.cpp",
MAME_DIR.. "src/lib/formats/xdf_dsk.h",
@@ -2041,7 +2045,7 @@ end
--@src/lib/formats/zx81_p.h,FORMATS["ZX81_P"] = true
--------------------------------------------------
-if (FORMATS["ZX81_P"]~=null or _OPTIONS["with-tools"]) then
+if opt_tool(FORMATS, "ZX81_P") then
files {
MAME_DIR.. "src/lib/formats/zx81_p.cpp",
MAME_DIR.. "src/lib/formats/zx81_p.h",