trunk/scripts/src/osd/modules.lua
| r245369 | r245370 | |
| 101 | 101 | if _OPTIONS["targetos"]=="windows" then |
| 102 | 102 | configuration { "mingw*" } |
| 103 | 103 | buildoptions { |
| 104 | | "-I$(shell qmake -query QT_INSTALL_HEADERS)/QtCore", |
| 105 | | "-I$(shell qmake -query QT_INSTALL_HEADERS)/QtGui", |
| 106 | 104 | "-I$(shell qmake -query QT_INSTALL_HEADERS)", |
| 107 | 105 | } |
| 108 | 106 | configuration { } |
| 109 | 107 | 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 | } |
| 111 | 111 | else |
| 112 | 112 | buildoptions { |
| 113 | | string.gsub(os.outputof("pkg-config --cflags QtGui"), '[\r\n]+', ' '), |
| 113 | string.gsub(os.outputof("pkg-config --cflags Qt"), '[\r\n]+', ' '), |
| 114 | 114 | } |
| 115 | 115 | end |
| 116 | 116 | else |
| r245369 | r245370 | |
| 166 | 166 | "QtCore4", |
| 167 | 167 | } |
| 168 | 168 | 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 | } |
| 170 | 176 | else |
| 171 | 177 | linkoptions { |
| 172 | 178 | string.gsub(os.outputof("pkg-config --libs QtGui"), '[\r\n]+', ' '), |