From: nghodban Date: Mon, 8 Mar 2021 15:11:59 +0000 (+0100) Subject: spns #24019 Ajout du plugin StaticMesh X-Git-Tag: V9_7_0~94 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=59d4f5aff4f6e8f676e2958c6078a5c7a4a92733;p=tools%2Fsat_salome.git spns #24019 Ajout du plugin StaticMesh --- diff --git a/applications/SALOME-master.pyconf b/applications/SALOME-master.pyconf index 665e351..e8fbbd9 100644 --- a/applications/SALOME-master.pyconf +++ b/applications/SALOME-master.pyconf @@ -99,6 +99,7 @@ APPLICATION : sphinxcontrib_websupport : '1.1.0' sphinx_rtd_theme : '0.4.3' sphinxintl: '0.9.10' + StaticMeshPlugin : '5.8.0' swig : '3.0.12' tbb : 'native' tcl : '8.6.0' diff --git a/products/StaticMeshPlugin.pyconf b/products/StaticMeshPlugin.pyconf new file mode 100644 index 0000000..36ded53 --- /dev/null +++ b/products/StaticMeshPlugin.pyconf @@ -0,0 +1,63 @@ +#!/usr/bin/env python +#-*- coding:utf-8 -*- + + default : + { + name : 'StaticMeshPlugin' + build_source : 'cmake' + cmake_options : '' + get_source : "archive" + patches: [] + environ : + { + StaticMeshPlugin : $install_dir + PV_PLUGIN_PATH_ : $install_dir + $VARS.sep + 'lib' + $VARS.sep + 'paraview' + } + depend : + [ + 'KERNEL' + 'GUI' + 'MEDCOUPLING' + 'PARAVIS' + 'FIELDS' + 'GEOM' + 'SMESH' + 'Python' + 'qt' + 'boost' + 'hdf5' + 'medfile' + 'ParaView' + 'CAS' + 'omniORB' + 'docutils' + 'libxml2' + 'six' + 'pytz' + ] + opt_depend : ['openmpi'] + build_depend : + [ + 'cmake' + 'swig' + 'cppunit' + ] + source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name + build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name + properties : + { + incremental : 'yes' + } + } + version_5_8_0: + { + patches: ['StaticMeshPlugin-5.8.0.patch'] + } + + default_win : + { + depend : + [ + 'PARAVIS' + ] + } diff --git a/products/compil_scripts/ParaView-5.8.0.sh b/products/compil_scripts/ParaView-5.8.0.sh index ea7506e..d42292e 100755 --- a/products/compil_scripts/ParaView-5.8.0.sh +++ b/products/compil_scripts/ParaView-5.8.0.sh @@ -217,6 +217,9 @@ CMAKE_OPTIONS="${CMAKE_OPTIONS} -DPARAVIEW_PLUGIN_ENABLE_SierraPlotTools:BOOL=OF CMAKE_OPTIONS="${CMAKE_OPTIONS} -DPARAVIEW_PLUGIN_ENABLE_PacMan:BOOL=OFF" CMAKE_OPTIONS="${CMAKE_OPTIONS} -DPARAVIEW_PLUGIN_ENABLE_pvblot:BOOL=OFF" +# allow additional plugins +CMAKE_OPTIONS="${CMAKE_OPTIONS} -DVTK_ALL_NEW_OBJECT_FACTORY:BOOL=ON" + echo echo "*** cmake" ${CMAKE_OPTIONS} cmake ${CMAKE_OPTIONS} $SOURCE_DIR diff --git a/products/compil_scripts/ParaView-5.9.0.sh b/products/compil_scripts/ParaView-5.9.0.sh index 452cbf0..079f278 100755 --- a/products/compil_scripts/ParaView-5.9.0.sh +++ b/products/compil_scripts/ParaView-5.9.0.sh @@ -218,6 +218,9 @@ CMAKE_OPTIONS="${CMAKE_OPTIONS} -DPARAVIEW_PLUGIN_ENABLE_SierraPlotTools:BOOL=OF CMAKE_OPTIONS="${CMAKE_OPTIONS} -DPARAVIEW_PLUGIN_ENABLE_PacMan:BOOL=OFF" CMAKE_OPTIONS="${CMAKE_OPTIONS} -DPARAVIEW_PLUGIN_ENABLE_pvblot:BOOL=OFF" +# allow additional plugins +CMAKE_OPTIONS="${CMAKE_OPTIONS} -DVTK_ALL_NEW_OBJECT_FACTORY:BOOL=ON" + echo echo "*** cmake" ${CMAKE_OPTIONS} cmake ${CMAKE_OPTIONS} $SOURCE_DIR diff --git a/products/patches/StaticMeshPlugin-5.8.0.patch b/products/patches/StaticMeshPlugin-5.8.0.patch new file mode 100644 index 0000000..833f61b --- /dev/null +++ b/products/patches/StaticMeshPlugin-5.8.0.patch @@ -0,0 +1,14 @@ +diff --git a/plugin/CMakeLists.txt b/plugin/CMakeLists.txt +index 04bff27..40e81c6 100644 +--- a/plugin/CMakeLists.txt ++++ b/plugin/CMakeLists.txt +@@ -4,3 +4,9 @@ paraview_add_plugin(StaticMesh + MODULE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/StaticMeshModule/vtk.module" + SERVER_MANAGER_XML sources.xml readers.xml filters.xml + ) ++ ++install(TARGETS StaticMesh ++ RUNTIME DESTINATION lib/paraview ++ LIBRARY DESTINATION lib/paraview ++ ARCHIVE DESTINATION lib/paraview ++)