/[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 209 by robwdcock, Wed Nov 23 06:32:25 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  env.SConscript(dirs = ['paso/src'], build_dir='win32/build/paso', duplicate=0)  # C/C++ Libraries
63  env.SConscript(dirs = ['bruce/src'], build_dir='win32/build/bruce', duplicate=0)  env.SConscript(dirs = ['paso/src'], build_dir='build/win32/paso', duplicate=0)
64  env.SConscript(dirs = ['escript/src/Data'], build_dir='win32/build/escript/Data', duplicate=0)  env.SConscript(dirs = ['bruce/src'], build_dir='build/win32/bruce', duplicate=0)
65  env.SConscript(dirs = ['esysUtils/src'], build_dir='win32/build/esysUtils', duplicate=0)  env.SConscript(dirs = ['escript/src/Data'], build_dir='build/win32/escript/Data', duplicate=0)
66  env.SConscript(dirs = ['win32/win32_utils'], build_dir='win32/build/win32_utils', duplicate=0)  env.SConscript(dirs = ['esysUtils/src'], build_dir='build/win32/esysUtils', duplicate=0)
67  env.SConscript(dirs = ['tools/mmio/src'], build_dir='win32/build/tools/mmio', duplicate=0)  env.SConscript(dirs = ['win32/win32_utils'], build_dir='build/win32/win32_utils', duplicate=0)
68  env.SConscript(dirs = ['tools/CppUnitTest/src'], build_dir='win32/build/tools/CppUnitTest', duplicate=0)  env.SConscript(dirs = ['tools/mmio/src'], build_dir='build/win32/tools/mmio', duplicate=0)
69    env.SConscript(dirs = ['tools/CppUnitTest/src'], build_dir='build/win32/tools/CppUnitTest', duplicate=0)
70    env.SConscript(dirs = ['finley/src/finleyC'], build_dir='build/win32/finleyC', duplicate=0)
71    env.SConscript(dirs = ['finley/src/CPPAdapter'], build_dir='build/win32/CPPAdapter', duplicate=0)
72    
73    # Unit Tests
74    env.SConscript(dirs = ['esysUtils/test/EsysException'], build_dir='build/win32/esysUtils/test/EsysException', duplicate=0)
75    env.SConscript(dirs = ['escript/test'], build_dir='build/win32/escript/test', duplicate=0)
76    env.SConscript(dirs = ['bruce/test'], build_dir='build/win32/bruce/test', duplicate=0)
77    env.SConscript(dirs = ['finley/test'], build_dir='build/win32/finley/test', duplicate=0)

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

  ViewVC Help
Powered by ViewVC 1.1.26