]> SALOME platform Git repositories - tools/sat.git/blob - data/env_scripts/MeshGems.py
Salome HOME
Rename table to board for jobs publishing
[tools/sat.git] / data / env_scripts / MeshGems.py
1 #!/usr/bin/env python
2 #-*- coding:utf-8 -*-
3
4 import os.path
5 import platform
6
7 def set_env(env, prereq_dir, version):
8     env.add_comment("Here you can define your license parameters for MeshGems")
9     env.add_comment("DISTENE license")
10
11     if not env.is_defined("LICENSE_FILE"):
12         script = os.path.join(os.path.dirname(os.path.realpath(__file__)), "distene_license.py")
13         assert os.path.exists(script), "distene_license.py not found!"
14         env.run_simple_env_script(script)
15
16     env.set('MESHGEMSHOME', prereq_dir)
17     env.set('MESHGEMS_ROOT_DIR', prereq_dir)    # update for cmake
18     root = env.get('MESHGEMSHOME')
19
20     if platform.system() == "Windows" :
21         env.prepend('PATH', os.path.join(root, 'bin'))
22         env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'lib'))
23     else :
24        
25         libdir = "Linux_64"
26     
27         env.prepend('PATH', os.path.join(root, 'bin'))
28         env.prepend('PATH', os.path.join(root, 'bin', libdir))
29         env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'lib', libdir))
30
31
32
33 def set_nativ_env(env):
34     pass