Build Qt debugger on OSX if requested

This commit is contained in:
Vas Crabb 2015-04-01 12:07:12 +11:00
parent fc8ee90512
commit 1ea04c4eb6

View File

@ -101,16 +101,16 @@ function osdmodulesbuild()
if _OPTIONS["targetos"]=="windows" then if _OPTIONS["targetos"]=="windows" then
configuration { "mingw*" } configuration { "mingw*" }
buildoptions { buildoptions {
"-I$(shell qmake -query QT_INSTALL_HEADERS)/QtCore",
"-I$(shell qmake -query QT_INSTALL_HEADERS)/QtGui",
"-I$(shell qmake -query QT_INSTALL_HEADERS)", "-I$(shell qmake -query QT_INSTALL_HEADERS)",
} }
configuration { } configuration { }
elseif _OPTIONS["targetos"]=="macosx" then elseif _OPTIONS["targetos"]=="macosx" then
-- TODO: search path for Qt on OSX platform buildoptions {
"-F" .. string.gsub(os.outputof("qmake -query QT_INSTALL_LIBS"), '[\r\n]+', ''),
}
else else
buildoptions { buildoptions {
string.gsub(os.outputof("pkg-config --cflags QtGui"), '[\r\n]+', ' '), string.gsub(os.outputof("pkg-config --cflags Qt"), '[\r\n]+', ' '),
} }
end end
else else
@ -166,7 +166,13 @@ function osdmodulestargetconf()
"QtCore4", "QtCore4",
} }
elseif _OPTIONS["targetos"]=="macosx" then elseif _OPTIONS["targetos"]=="macosx" then
-- TODO: Qt libs for OSX platform linkoptions {
"-F" .. string.gsub(os.outputof("qmake -query QT_INSTALL_LIBS"), '[\r\n]+', ''),
}
links {
"QtCore.framework",
"QtGui.framework",
}
else else
linkoptions { linkoptions {
string.gsub(os.outputof("pkg-config --libs QtGui"), '[\r\n]+', ' '), string.gsub(os.outputof("pkg-config --libs QtGui"), '[\r\n]+', ' '),