Previous 199869 Revisions Next

r36858 Wednesday 1st April, 2015 at 01:09:38 UTC by Vasantha Crabb
Build Qt debugger on OSX if requested
[scripts/src/osd]modules.lua

trunk/scripts/src/osd/modules.lua
r245369r245370
101101      if _OPTIONS["targetos"]=="windows" then
102102         configuration { "mingw*" }
103103            buildoptions {
104               "-I$(shell qmake -query QT_INSTALL_HEADERS)/QtCore",
105               "-I$(shell qmake -query QT_INSTALL_HEADERS)/QtGui",
106104               "-I$(shell qmake -query QT_INSTALL_HEADERS)",
107105            }
108106         configuration { }
109107      elseif _OPTIONS["targetos"]=="macosx" then
110         -- TODO: search path for Qt on OSX platform
108         buildoptions {
109            "-F" .. string.gsub(os.outputof("qmake -query QT_INSTALL_LIBS"), '[\r\n]+', ''),
110         }
111111      else
112112         buildoptions {
113            string.gsub(os.outputof("pkg-config --cflags QtGui"), '[\r\n]+', ' '),
113            string.gsub(os.outputof("pkg-config --cflags Qt"), '[\r\n]+', ' '),
114114         }
115115      end
116116   else
r245369r245370
166166            "QtCore4",
167167         }
168168      elseif _OPTIONS["targetos"]=="macosx" then
169         -- TODO: Qt libs for OSX platform
169         linkoptions {
170            "-F" .. string.gsub(os.outputof("qmake -query QT_INSTALL_LIBS"), '[\r\n]+', ''),
171         }
172         links {
173            "QtCore.framework",
174            "QtGui.framework",
175         }
170176      else
171177         linkoptions {
172178            string.gsub(os.outputof("pkg-config --libs QtGui"), '[\r\n]+', ' '),


Previous 199869 Revisions Next


© 1997-2024 The MAME Team