Skip to content

Commit

Permalink
add VTK v9.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
lkeegan committed Dec 5, 2023
1 parent 2ae39f7 commit 845165b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ env:
ZIPPER_VERSION: "master"
COMBINE_VERSION: "master"
FUNCTION2_VERSION: "4.2.4"
VTK_VERSION: "v9.3.0"

jobs:
linux:
Expand Down
32 changes: 32 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ echo "BZIP2_VERSION: ${BZIP2_VERSION}"
echo "ZIPPER_VERSION: ${ZIPPER_VERSION}"
echo "COMBINE_VERSION: ${COMBINE_VERSION}"
echo "FUNCTION2_VERSION: ${FUNCTION2_VERSION}"
echo "VTK_VERSION: ${VTK_VERSION}"

NPROCS=2
echo "NPROCS: ${NPROCS}"
Expand Down Expand Up @@ -581,6 +582,37 @@ time make -j$NPROCS
$SUDOCMD make install
cd ../../

# build minimal static version of VTK including GUISupportQt module
git clone -b $VTK_VERSION --depth 1 https://github.com/Kitware/VTK.git
cd VTK
mkdir build
cd build
cmake -G "Unix Makefiles" .. \
-DCMAKE_OSX_DEPLOYMENT_TARGET="${MACOSX_DEPLOYMENT_TARGET}" \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=OFF \
-DCMAKE_C_FLAGS="-fpic -fvisibility=hidden" \
-DCMAKE_CXX_FLAGS="-fpic -fvisibility=hidden" \
-DCMAKE_INSTALL_PREFIX="$INSTALL_PREFIX" \
-DVTK_GROUP_ENABLE_StandAlone=YES \
-DVTK_GROUP_ENABLE_Rendering=YES \
-DVTK_MODULE_ENABLE_VTK_GUISupportQt=YES \
-DVTK_MODULE_USE_EXTERNAL_VTK_expat=ON \
-DVTK_MODULE_USE_EXTERNAL_VTK_fmt=ON \
-DVTK_MODULE_USE_EXTERNAL_VTK_tiff=ON \
-DVTK_MODULE_USE_EXTERNAL_VTK_zlib=ON \
-DVTK_LEGACY_REMOVE=ON \
-DVTK_USE_FUTURE_CONST=ON \
-DVTK_USE_FUTURE_BOOL=ON \
-DVTK_ENABLE_LOGGING=OFF \
-DVTK_USE_CUDA=OFF \
-DVTK_USE_MPI=OFF \
-DVTK_ENABLE_WRAPPING=OFF
time make -j$NPROCS
#make test
$SUDOCMD make install
cd ../../

mkdir artefacts
cd artefacts
tar -zcvf sme_deps_common_${OS_TARGET}.tgz $INSTALL_PREFIX/*

0 comments on commit 845165b

Please sign in to comment.