mame/scripts/src/osd/windows_cfg.lua
Vas Crabb 9ce44fa048 osd: Cleaned up Windows API usage a little.
* Bumped target windows version to 6.0.0 (Vista).
* Use WRL COM pointers to manage some COM-like objects.
* Cleaned up logging in DirectSound module.
* Cleaned up includes in Windows input modules.
* Switched to Common Item Dialogs in Windows debugger.
* Replaced disabled code that never really worked with a TODO comment.
2022-05-26 03:07:28 +10:00

69 lines
994 B
Lua

-- license:BSD-3-Clause
-- copyright-holders:MAMEdev Team
defines {
"OSD_WINDOWS",
"WIN32_LEAN_AND_MEAN",
"NOMINMAX",
}
configuration { "mingw* or vs*" }
defines {
"UNICODE",
"_UNICODE"
}
configuration { "vs*" }
flags {
"Unicode",
}
configuration { }
if not _OPTIONS["MODERN_WIN_API"] then
_OPTIONS["MODERN_WIN_API"] = "0"
end
if _OPTIONS["MODERN_WIN_API"]=="1" then
defines {
"WINVER=0x0602",
"_WIN32_WINNT=0x0602",
"NTDDI_VERSION=0x06030000",
"MODERN_WIN_API",
}
else
defines {
"_WIN32_WINNT=0x0600",
"NTDDI_VERSION=0x06000000",
}
end
if _OPTIONS["USE_TAPTUN"]=="1" or _OPTIONS["USE_PCAP"]=="1" then
defines {
"USE_NETWORK",
}
if _OPTIONS["USE_TAPTUN"]=="1" then
defines {
"OSD_NET_USE_TAPTUN",
}
end
if _OPTIONS["USE_PCAP"]=="1" then
defines {
"OSD_NET_USE_PCAP",
}
end
end
if _OPTIONS["USE_SDL"]=="1" then
defines {
"SDLMAME_SDL2=1",
"USE_XINPUT=0",
"USE_SDL=1",
"USE_SDL_SOUND",
}
else
defines {
"USE_SDL=0",
}
end