mirror of
https://github.com/mamedev/mame.git
synced 2024-11-18 10:06:19 +01:00
Made SDL build to be able to be compiled on VS (nw)
This commit is contained in:
parent
636cacd0c8
commit
e5f612d174
2 changed files with 31 additions and 8 deletions
|
@ -29,9 +29,25 @@ function maintargetosdoptions(_target)
|
|||
end
|
||||
|
||||
if _OPTIONS["targetos"]=="windows" then
|
||||
linkoptions{
|
||||
"-municode",
|
||||
}
|
||||
configuration { "mingw*" }
|
||||
linkoptions{
|
||||
"-municode",
|
||||
}
|
||||
configuration { "x32", "vs*" }
|
||||
libdirs {
|
||||
path.join(_OPTIONS["SDL_INSTALL_ROOT"],"lib","x86")
|
||||
}
|
||||
configuration { "x64", "vs*" }
|
||||
libdirs {
|
||||
path.join(_OPTIONS["SDL_INSTALL_ROOT"],"lib","x64")
|
||||
}
|
||||
configuration { "vs*" }
|
||||
links {
|
||||
"SDL2",
|
||||
"opengl32",
|
||||
}
|
||||
configuration {}
|
||||
|
||||
if (USE_QT == 1) then
|
||||
linkoptions{
|
||||
"-L$(shell qmake -query QT_INSTALL_LIBS)",
|
||||
|
|
|
@ -89,12 +89,19 @@ if _OPTIONS["targetos"]=="windows" then
|
|||
"SDLMAME_NET_PCAP",
|
||||
"main=utf8_main",
|
||||
}
|
||||
configuration { "mingw*" }
|
||||
buildoptions {
|
||||
"-I$(shell qmake -query QT_INSTALL_HEADERS)/QtCore",
|
||||
"-I$(shell qmake -query QT_INSTALL_HEADERS)/QtGui",
|
||||
"-I$(shell qmake -query QT_INSTALL_HEADERS)",
|
||||
}
|
||||
|
||||
configuration { "vs*" }
|
||||
includedirs {
|
||||
path.join(_OPTIONS["SDL_INSTALL_ROOT"],"include")
|
||||
}
|
||||
configuration { }
|
||||
|
||||
buildoptions {
|
||||
"-I$(shell qmake -query QT_INSTALL_HEADERS)/QtCore",
|
||||
"-I$(shell qmake -query QT_INSTALL_HEADERS)/QtGui",
|
||||
"-I$(shell qmake -query QT_INSTALL_HEADERS)",
|
||||
}
|
||||
elseif _OPTIONS["targetos"]=="linux" then
|
||||
defines {
|
||||
"USE_OPENGL=1",
|
||||
|
|
Loading…
Reference in a new issue