ENH: support new rendering backend for paraview >= 5.0

ENH: patch paraview 4.4.0 directly before building

- this avoids more manual steps for the user
This commit is contained in:
mark
2016-06-19 14:00:54 +02:00
parent 3da9455ca9
commit cf251ea182
8 changed files with 108 additions and 23 deletions

View File

@ -178,9 +178,9 @@ addPythonSupport()
PYTHON_LIBRARY=$(ldd $pythonBin | \
sed -ne '/libpython/s/.* => \(.*\) (.*/\1/p')
[ -e "$PYTHON_LIBRARY" ] || {
echo "*** Error: Unable to determine path to python library."
}
[ -e "$PYTHON_LIBRARY" ] || {
echo "*** Error: Unable to determine path to python library."
}
fi
[ -e "$PYTHON_LIBRARY" ] || {
@ -230,7 +230,7 @@ addMesaSupport()
{
if [ "${withMESA:=false}" != true ]
then
return
return
fi
if [ -d "$MESA_INCLUDE" -a -f "$MESA_LIBRARY" ]
@ -252,6 +252,18 @@ addMesaSupport()
}
#
# new rendering backend
#
addGL2Support()
{
if [ "${withGL2:=false}" = true ]
then
addCMakeVariable "VTK_RENDERING_BACKEND=OpenGL2"
fi
}
addQtSupport()
{
QtVersion=none
@ -405,6 +417,7 @@ configParaView()
echo " MPI support : ${withMPI:-false}"
echo " Python support : ${withPYTHON:-false}"
echo " MESA support : ${withMESA:-false}"
echo " GL2 rendering : ${withGL2:-false}"
echo " Qt dev support : ${withQT:-false}"
echo " Source : $ParaView_SOURCE_DIR"
echo " Build : $ParaView_BINARY_DIR"