Fix osdmini build on Windows (crashes if you run it though)

This commit is contained in:
Vas Crabb 2015-03-30 03:50:34 +11:00
parent 816518fd49
commit 602e2de3e0
5 changed files with 15 additions and 7 deletions

View file

@ -715,13 +715,9 @@ configuration { "osx*" }
configuration { "mingw*" }
defines {
"main=utf8_main",
}
linkoptions {
"-static-libgcc",
"-static-libstdc++",
"-municode",
}
if _OPTIONS["osd"]=="sdl" then
links {
@ -748,9 +744,6 @@ end
}
configuration { "vs*" }
defines {
"main=utf8_main",
}
defines {
"XML_STATIC",
"WIN32",

View file

@ -28,6 +28,14 @@ function maintargetosdoptions(_target)
configuration { }
end
if _OPTIONS["targetos"]=="windows" then
linkoptions {
"-municode",
}
end
configuration { "mingw*" }
linkoptions {
"-Wl,--allow-multiple-definition",

View file

@ -13,6 +13,7 @@ if _OPTIONS["targetos"]=="windows" then
"USE_OPENGL=1",
"USE_QTDEBUG=1",
"SDLMAME_NET_PCAP",
"main=utf8_main",
}
buildoptions {

View file

@ -13,6 +13,11 @@ function maintargetosdoptions(_target)
end
linkoptions {
"-municode",
}
project ("osd_" .. _OPTIONS["osd"])
uuid (os.uuid("osd_" .. _OPTIONS["osd"]))
kind "StaticLib"

View file

@ -12,4 +12,5 @@ defines {
"USE_DISPATCH_GL=1",
"DIRECTINPUT_VERSION=0x0800",
"SDLMAME_NET_PCAP",
"main=utf8_main",
}