Salome HOME
C3PO: requires mpi4py
[tools/sat_salome.git] / products / env_scripts / zlib.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   # this prerequisites is only used on windows platform
9   env.set('ZLIB_ROOT_DIR', prereq_dir)
10   if platform.system() == "Windows" :
11     env.set('ZLIB_DIR', prereq_dir)
12     env.set('ZLIB_BIN', os.path.join(prereq_dir, 'bin'))
13     env.set('ZLIB_LIBRARY', os.path.join(prereq_dir, 'bin'))
14     env.set('ZLIB_LIBRARIES', os.path.join(prereq_dir, 'bin'))
15     env.set('ZLIB_INCLUDE_DIR', os.path.join(prereq_dir, 'include'))
16     env.prepend('INCLUDE', os.path.join(prereq_dir, 'include'))
17     env.prepend('LIB', os.path.join(prereq_dir, 'bin'))
18     env.prepend('PATH', os.path.join(prereq_dir, 'bin'))
19   else:
20     pass
21     
22 def set_nativ_env(env):
23     pass
24
25