From b33f8aec56dbb6af9291304f31baebd663006e96 Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Wed, 13 Sep 2023 16:07:45 +0200 Subject: [PATCH] bos #37534: add salome_bootstrap module to list of modules (II) --- products/SALOMEBOOTSTRAP.pyconf | 26 +++++++++++++++++++++++++ products/env_scripts/SALOMEBOOTSTRAP.py | 15 ++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 products/SALOMEBOOTSTRAP.pyconf create mode 100644 products/env_scripts/SALOMEBOOTSTRAP.py diff --git a/products/SALOMEBOOTSTRAP.pyconf b/products/SALOMEBOOTSTRAP.pyconf new file mode 100644 index 0000000..1e6ca4e --- /dev/null +++ b/products/SALOMEBOOTSTRAP.pyconf @@ -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 index 0000000..3c042a0 --- /dev/null +++ b/products/env_scripts/SALOMEBOOTSTRAP.py @@ -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 -- 2.39.2