6 def set_env(env, prereq_dir, version):
7 env.set('TCL_ROOT_DIR', prereq_dir) # update for cmake
8 env.set('TCLHOME', prereq_dir)
10 root = env.get('TCLHOME')
11 env.prepend('PATH', os.path.join(root, 'bin'))
12 env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'lib'))
13 env.prepend('INCLUDE', os.path.join(root, 'include'))
16 l.append(os.path.join(root, 'lib'))
17 l.append(os.path.join(root, 'lib', 'tcl'))
18 #http://computer-programming-forum.com/57-tcl/1dfddc136afccb94.htm
19 #Tcl treats the contents of that variable as a list. Be happy, for you can now use drive letters on windows.
20 env.prepend('TCLLIBPATH', l, sep=" ")
21 env.set('TCL_SHORT_VERSION', version[:version.rfind('.')])
23 def set_nativ_env(env):
24 env.set('TCL_ROOT_DIR', '/usr') # update for cmake
25 env.set('TCLHOME', '/usr')