]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
spns #24019 Ajout du plugin StaticMesh
authornghodban <Nabil.Ghodbane@c-s.fr>
Mon, 8 Mar 2021 15:11:59 +0000 (16:11 +0100)
committernghodban <Nabil.Ghodbane@c-s.fr>
Mon, 8 Mar 2021 15:11:59 +0000 (16:11 +0100)
applications/SALOME-master.pyconf
products/StaticMeshPlugin.pyconf [new file with mode: 0644]
products/compil_scripts/ParaView-5.8.0.sh
products/compil_scripts/ParaView-5.9.0.sh
products/patches/StaticMeshPlugin-5.8.0.patch [new file with mode: 0644]

index 665e35168295150c5a13923fcdece32b62ff918f..e8fbbd99bc2621665f347e564574b9726ee959ce 100644 (file)
@@ -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 (file)
index 0000000..36ded53
--- /dev/null
@@ -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'
+    ]
+  }
index ea7506efe254a6f6f1b7b96c9adba0b7c029cfc8..d42292e35cd2b6d77ddf5993fe31c5ba2e43b23e 100755 (executable)
@@ -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
index 452cbf0c5af1e0836751c590703f3f76bf0e6d22..079f278da57d1dc794744bcbd4c7dd0c9ad8bf30 100755 (executable)
@@ -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 (file)
index 0000000..833f61b
--- /dev/null
@@ -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
++)