forked from patmarion/ParaViewAutoBuild
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure_paraview_cross.sh
44 lines (39 loc) · 1.29 KB
/
configure_paraview_cross.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
paraview_source_dir=$1
paraview_install_dir=$2
osmesa_install_dir=$3
python_install_dir=$4
cmake_command=$5
toolchain_file=$6
native_build_dir=$7
cxx_flags=$8
$cmake_command \
-DCMAKE_TOOLCHAIN_FILE=$toolchain_file \
-DParaView3CompileTools_DIR=$native_build_dir \
-DBUILD_SHARED_LIBS=0 \
-DPARAVIEW_USE_MPI=1 \
-DPARAVIEW_ENABLE_PYTHON=1 \
-DPARAVIEW_BUILD_QT_GUI=0 \
-DENABLE_MPI4PY=0 \
-DPARAVIEW_BUILD_PLUGIN_pvblot:BOOL=0 \
-DPARAVIEW_BUILD_PLUGIN_PointSprite:BOOL=0 \
-DVTK_USE_X=0 \
-DBUILD_TESTING=0 \
-DPYTHON_INCLUDE_DIR="$python_install_dir/include/python2.5" \
-DPYTHON_LIBRARY="$python_install_dir/lib/libpython2.5.a" \
-DOPENGL_INCLUDE_DIR="$osmesa_install_dir/include" \
-DOPENGL_gl_LIBRARY="" \
-DOPENGL_glu_LIBRARY="$osmesa_install_dir/lib/libGLU.a" \
-DVTK_OPENGL_HAS_OSMESA=1 \
-DOSMESA_LIBRARY="$osmesa_install_dir/lib/libOSMesa.a" \
-DOSMESA_INCLUDE_DIR="$osmesa_install_dir/include" \
-DCMAKE_BUILD_TYPE:STRING="Release" \
-DCMAKE_INSTALL_PREFIX:PATH="$paraview_install_dir" \
-DCMAKE_CXX_FLAGS:STRING="$cxx_flags" \
-DPARAVIEW_ENABLE_COPROCESSING=1 \
-DBUILD_COPROCESSING_ADAPTORS=1 \
-DBUILD_FORTRAN_COPROCESSING_ADAPTORS=1 \
-DBUILD_PYTHON_COPROCESSING_ADAPTOR=1 \
-DBUILD_PHASTA_ADAPTOR=1 \
-C $paraview_source_dir/CMake/TryRunResults-ParaView3-bgl-xlc.cmake \
$paraview_source_dir