Salome HOME
C3PO: requires mpi4py
[tools/sat_salome.git] / products / env_scripts / Togl.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.set('TOGL_ROOT_DIR', prereq_dir)   # update for cmake 
9     env.set('TOGL', prereq_dir)
10     env.set('TOGL_SHORT_VERSION', version.split('-')[0])
11     
12     togl = env.get('TOGL_ROOT_DIR')
13
14     env.set('TOGL_LIB_DIR', os.path.join(togl, 'lib', 'Togl' + version.split('-')[0]))
15     
16     env.prepend('PATH', env.get('TOGL_LIB_DIR'))
17
18     if platform.system() == "Windows" :
19         env.prepend('LIB', env.get('TOGL_LIB_DIR'))
20         env.prepend('INCLUDE', os.path.join(prereq_dir, 'include'))
21
22 def set_nativ_env(env):
23     env.set('TOGL_ROOT_DIR', '/usr')   # update for cmake
24     env.set('TOGL', '/usr')
25     env.set('TOGL_LIB_DIR', '/usr/lib')
26