summaryrefslogtreecommitdiff
path: root/scripts/setenv-unibuild.sh
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-01-08 03:48:26 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-01-08 03:48:26 (GMT)
commit25266bed0d6c3a0caae80a0444c073fee78cc686 (patch)
tree207577fa35afd638893fc87ffbb003c120ec9154 /scripts/setenv-unibuild.sh
parent101510c5cb3f696ee01fc900c9269d87a09c0658 (diff)
allow qt5 build
Diffstat (limited to 'scripts/setenv-unibuild.sh')
-rw-r--r--scripts/setenv-unibuild.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/setenv-unibuild.sh b/scripts/setenv-unibuild.sh
index d13782c..e6fd6fe 100644
--- a/scripts/setenv-unibuild.sh
+++ b/scripts/setenv-unibuild.sh
@@ -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
contact: Jan Huwald // Impressum