/[escript]/branches/RW_WIN32/SConstruct
ViewVC logotype

Diff of /branches/RW_WIN32/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 218 by robwdcock, Thu Nov 24 07:42:12 2005 UTC revision 220 by robwdcock, Thu Nov 24 09:11:38 2005 UTC
# Line 3  opts.AddOptions( Line 3  opts.AddOptions(
3     BoolOption('RELEASE', 'Set to build for release', 0),     BoolOption('RELEASE', 'Set to build for release', 0),
4     PathOption('PYTHON_HOME','Path to python home','C:/python23')     PathOption('PYTHON_HOME','Path to python home','C:/python23')
5  )  )
6    
7    
8    # Extensions to Scons
9    def build_py(target, source, env):
10       # Code to build .pyc from .py
11       import py_compile, sys;
12       py_compile.compile(str(source[0]), str(target[0]))
13       return None
14    py_builder = Builder(action = build_py, suffix = '.pyc', src_suffix = '.py', single_source=True)
15    
16  env = Environment(tools = ['default'],options = opts)  env = Environment(tools = ['default'],options = opts)
17    env.Append(BUILDERS = {'PyCompile' : py_builder});
18    
19  print "PLATFORM is:", env['PLATFORM']  print "PLATFORM is:", env['PLATFORM']
20    
# Line 48  if env['PLATFORM'] == "win32": Line 59  if env['PLATFORM'] == "win32":
59    
60  Export(["env", "incdir", "esys_inc", "esys_lib", "boost_lib_name" ])  Export(["env", "incdir", "esys_inc", "esys_lib", "boost_lib_name" ])
61    
62  # Libraries  # C/C++ Libraries
63  env.SConscript(dirs = ['paso/src'], build_dir='build/win32/paso', duplicate=0)  env.SConscript(dirs = ['paso/src'], build_dir='build/win32/paso', duplicate=0)
64  env.SConscript(dirs = ['bruce/src'], build_dir='build/win32/bruce', duplicate=0)  env.SConscript(dirs = ['bruce/src'], build_dir='build/win32/bruce', duplicate=0)
65  env.SConscript(dirs = ['escript/src/Data'], build_dir='build/win32/escript/Data', duplicate=0)  env.SConscript(dirs = ['escript/src/Data'], build_dir='build/win32/escript/Data', duplicate=0)

Legend:
Removed from v.218  
changed lines
  Added in v.220

  ViewVC Help
Powered by ViewVC 1.1.26