allow qt5 build

felipesanches-svg
don bright 2013-01-07 21:48:26 -06:00
parent 101510c5cb
commit 25266bed0d
3 changed files with 31 additions and 1 deletions

View File

@ -67,7 +67,11 @@ isEmpty(EIGEN_INCLUDEPATH) {
}
# EIGEN being under 'include/eigen[2-3]' needs special prepending
QMAKE_INCDIR_QT = $$EIGEN_INCLUDEPATH $$QMAKE_INCDIR_QT
contains(QT_VERSION, ^5\\..*) {
QMAKE_INCDIR = $$EIGEN_INCLUDEPATH $$QMAKE_INCDIR
} else {
QMAKE_INCDIR_QT = $$EIGEN_INCLUDEPATH $$QMAKE_INCDIR_QT
}
# qmakespecs on netbsd prepend system includes, we need eigen first.
netbsd* {

View File

@ -73,11 +73,33 @@ setenv_linux_clang()
echo QMAKESPEC has been modified: $QMAKESPEC
}
setenv_qt5()
{
export QTDIR=/opt/qt5
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export LD_RUN_PATH=$QTDIR/lib:$LD_RUN_PATH
if [ "`echo $CC | grep clang`" ]; then
if [ "`uname | grep -i linux\|debian`" ]; then
export QMAKESPEC=linux-clang
echo QMAKESPEC has been modified: $QMAKESPEC
fi
fi
echo PATH has been modified with $QTDIR/bin
echo LD_LIBRARY_PATH has been modified with $QTDIR/lib
echo LD_RUN_PATH has been modified with $QTDIR/lib
echo QTDIR has been modified: $QTDIR
}
if [ "`uname | grep -i 'linux\|debian'`" ]; then
setenv_common
if [ "`echo $* | grep clang`" ]; then
setenv_linux_clang
fi
if [ "`echo $* | grep qt5`" ]; then
setenv_qt5
fi
elif [ "`uname | grep -i freebsd`" ]; then
setenv_freebsd
elif [ "`uname | grep -i netbsd`" ]; then

View File

@ -31,6 +31,10 @@
#
# . ./scripts/setenv-unibuild.sh clang
#
# Enable Qt5 (experimental)
#
# . ./scripts/setenv-unibuild.sh qt5
#
printUsage()
{