Made SDL build to be able to be compiled on VS (nw)

This commit is contained in:
Miodrag Milanovic 2015-03-31 13:57:02 +02:00
parent 636cacd0c8
commit e5f612d174
2 changed files with 31 additions and 8 deletions

View file

@ -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)",

View file

@ -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",