]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
bos #37534: add salome_bootstrap module to list of modules (II)
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Wed, 13 Sep 2023 14:07:45 +0000 (16:07 +0200)
committerGuytri KASTANE <guytri.kastane@cea.fr>
Wed, 13 Mar 2024 14:42:43 +0000 (15:42 +0100)
products/SALOMEBOOTSTRAP.pyconf [new file with mode: 0644]
products/env_scripts/SALOMEBOOTSTRAP.py [new file with mode: 0644]

diff --git a/products/SALOMEBOOTSTRAP.pyconf b/products/SALOMEBOOTSTRAP.pyconf
new file mode 100644 (file)
index 0000000..1e6ca4e
--- /dev/null
@@ -0,0 +1,26 @@
+default :
+{
+    name : "SALOMEBOOTSTRAP"
+    build_source : "cmake"
+    cmake_options : ""
+    get_source : "git"
+    git_info:
+    {
+        repo_dev : $PROJECTS.projects.salome.git_info.default_git_server_dev + "salome_bootstrap.git"
+        repo     : $repo_dev
+    }
+    environ :
+    {
+       env_script : $name + ".py"
+    }
+    depend : ["Python"]
+    build_depend : ["cmake", "swig", "doxygen", "cppunit"]
+    source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name
+    build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name
+    properties:
+    {
+        incremental : "yes"
+    }
+    patches: []
+}
+
diff --git a/products/env_scripts/SALOMEBOOTSTRAP.py b/products/env_scripts/SALOMEBOOTSTRAP.py
new file mode 100644 (file)
index 0000000..3c042a0
--- /dev/null
@@ -0,0 +1,15 @@
+#!/usr/bin/env python
+#-*- coding:utf-8 -*-
+
+import os.path
+import platform
+
+def set_env(env, prereq_dir, version):
+  env.set('SALOMEBOOTSTRAP_ROOT_DIR', prereq_dir)
+  if platform.system() == "Windows" :
+    pass
+  else:
+    env.prepend('PYTHONPATH', os.path.join(prereq_dir, '__SALOME_BOOTSTRAP'))
+
+def set_nativ_env(env):
+  pass