Merge pull request #4773 from mapbox/travis-qt5

[build] Added Qt 5 build for Travis CI
This commit is contained in:
Bruno de Oliveira Abinader
2016-04-21 11:02:00 +03:00
committed by Thiago Marcos P. Santos
parent c625dd0f7e
commit d46982be2b
4 changed files with 20 additions and 2 deletions

View File

@@ -29,6 +29,7 @@
'<@(opengl_cflags)',
'<@(qt_cflags)',
'-Wno-error', # TODO: eliminate
'-fPIC',
],
'ldflags': [
'<@(opengl_ldflags)',

View File

@@ -31,7 +31,10 @@ function print_qt_flags {
CONFIG+=" 'qt_ldflags%': $(quote_flags $(mason ldflags Qt system "QtCore QtGui QtOpenGL QtNetwork")),"$LN
QT_VERSION_MAJOR=$(qmake -query QT_VERSION | cut -d. -f1)
if [ ${QT_VERSION_MAJOR} -gt 4 ] ; then
if hash moc 2>/dev/null && hash rcc 2>/dev/null; then
CONFIG+=" 'qt_moc%': '$(which moc)',"$LN
CONFIG+=" 'qt_rcc%': '$(which rcc)',"$LN
elif [ ${QT_VERSION_MAJOR} -gt 4 ] ; then
CONFIG+=" 'qt_moc%': '$(pkg-config Qt${QT_VERSION_MAJOR}Core --variable=host_bins)/moc',"$LN
CONFIG+=" 'qt_rcc%': '$(pkg-config Qt${QT_VERSION_MAJOR}Core --variable=host_bins)/rcc',"$LN
else