Restore ledutil for windows builds with TOOLS=1

This commit is contained in:
Vas Crabb 2015-03-30 19:14:52 +11:00
parent 73deef44fa
commit 3567c77114

View File

@ -24,13 +24,13 @@ project ("osd_" .. _OPTIONS["osd"])
removeflags { removeflags {
"SingleOutputDir", "SingleOutputDir",
} }
options { options {
"ForceCPP", "ForceCPP",
} }
dofile("windows_cfg.lua") dofile("windows_cfg.lua")
defines { defines {
"DIRECTINPUT_VERSION=0x0800", "DIRECTINPUT_VERSION=0x0800",
"DIRECT3D_VERSION=0x0900", "DIRECT3D_VERSION=0x0900",
@ -101,7 +101,7 @@ project ("osd_" .. _OPTIONS["osd"])
MAME_DIR .. "src/osd/modules/sound/sdl_sound.c", MAME_DIR .. "src/osd/modules/sound/sdl_sound.c",
MAME_DIR .. "src/osd/modules/sound/none.c", MAME_DIR .. "src/osd/modules/sound/none.c",
} }
project ("ocore_" .. _OPTIONS["osd"]) project ("ocore_" .. _OPTIONS["osd"])
uuid (os.uuid("ocore_" .. _OPTIONS["osd"])) uuid (os.uuid("ocore_" .. _OPTIONS["osd"]))
kind "StaticLib" kind "StaticLib"
@ -110,11 +110,11 @@ project ("ocore_" .. _OPTIONS["osd"])
"ForceCPP", "ForceCPP",
} }
removeflags { removeflags {
"SingleOutputDir", "SingleOutputDir",
} }
dofile("windows_cfg.lua") dofile("windows_cfg.lua")
includedirs { includedirs {
MAME_DIR .. "src/emu", MAME_DIR .. "src/emu",
MAME_DIR .. "src/osd", MAME_DIR .. "src/osd",
@ -146,3 +146,30 @@ project ("ocore_" .. _OPTIONS["osd"])
MAME_DIR .. "src/osd/modules/sync/work_osd.c", MAME_DIR .. "src/osd/modules/sync/work_osd.c",
MAME_DIR .. "src/osd/modules/lib/osdlib_win32.c", MAME_DIR .. "src/osd/modules/lib/osdlib_win32.c",
} }
--------------------------------------------------
-- ledutil
--------------------------------------------------
if _OPTIONS["with-tools"] then
project("ledutil")
uuid ("061293ca-7290-44ac-b2b5-5913ae8dc9c0")
kind "ConsoleApp"
options {
"ForceCPP",
}
targetdir(MAME_DIR)
links {
"ocore_" .. _OPTIONS["osd"],
}
includeosd()
files {
MAME_DIR .. "src/osd/windows/ledutil.c",
}
end