summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src/osd/windows.lua
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2015-04-04 14:53:47 +1100
committer Vas Crabb <vas@vastheman.com>2015-04-04 14:53:47 +1100
commit4cd434246dd203d622d1b3c74050588a514907e4 (patch)
treec85841928a91f5625ed4c8291c20ec7936bb2a49 /scripts/src/osd/windows.lua
parent7b19a9d10bd26555f3af34647f637cdbf15180d2 (diff)
Bring back USE_SDL, CYGWIN_BUILD and malloc debugging for Windows OSD
Diffstat (limited to 'scripts/src/osd/windows.lua')
-rw-r--r--scripts/src/osd/windows.lua47
1 files changed, 45 insertions, 2 deletions
diff --git a/scripts/src/osd/windows.lua b/scripts/src/osd/windows.lua
index fcedd0c6710..3b060f64b55 100644
--- a/scripts/src/osd/windows.lua
+++ b/scripts/src/osd/windows.lua
@@ -21,6 +21,13 @@ function maintargetosdoptions(_target)
}
end
+
+ if _OPTIONS["USE_SDL"] == "1" then
+ links {
+ "SDL.dll",
+ }
+ end
+
local rcfile = MAME_DIR .. "src/" .. _target .. "/osd/windows/" .. _target ..".rc"
if os.isfile(rcfile) then
@@ -40,7 +47,7 @@ newoption {
description = "Minimum DirectInput version to support",
allowed = {
{ "7", "Support DirectInput 7 or later" },
- { "8", "Support DirectInput 8 or later" },
+ { "8", "Support DirectInput 8 or later" },
},
}
@@ -48,6 +55,42 @@ if not _OPTIONS["DIRECTINPUT"] then
_OPTIONS["DIRECTINPUT"] = "8"
end
+newoption {
+ trigger = "USE_SDL",
+ description = "Enable SDL sound output",
+ allowed = {
+ { "0", "Disable SDL sound output" },
+ { "1", "Enable SDL sound output" },
+ },
+}
+
+if not _OPTIONS["USE_SDL"] then
+ _OPTIONS["USE_SDL"] = "0"
+end
+
+newoption {
+ trigger = "CYGWIN_BUILD",
+ description = "Build with Cygwin tools",
+ allowed = {
+ { "0", "Build with MinGW tools" },
+ { "1", "Build with Cygwin tools" },
+ },
+}
+
+if not _OPTIONS["CYGWIN_BUILD"] then
+ _OPTIONS["CYGWIN_BUILD"] = "0"
+end
+
+
+if _OPTIONS["CYGWIN_BUILD"] == "1" then
+ buildoptions {
+ "-mmo-cygwin",
+ }
+ linkoptions {
+ "-mno-cygwin",
+ }
+end
+
project ("osd_" .. _OPTIONS["osd"])
uuid (os.uuid("osd_" .. _OPTIONS["osd"]))
@@ -157,7 +200,7 @@ project ("ocore_" .. _OPTIONS["osd"])
MAME_DIR .. "src/osd/modules/lib/osdlib_win32.c",
}
- if _OPTIONS["NOASM"]=="1" then
+ if _OPTIONS["NOASM"] == "1" then
files {
MAME_DIR .. "src/osd/modules/sync/work_mini.c",
}