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

Contents of /branches/RW_WIN32/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log


Revision 186 - (show annotations)
Sun Nov 20 10:51:16 2005 UTC (13 years, 9 months ago) by robwdcock
File size: 1524 byte(s)
PARTIAL WIN32 PORT
+ Paso, ext_math and mmio libraries build using scons in top level directory
+ Scons build system currently hard coded against RW's third-party library paths.
+ Still lots TODO to complete port and build system 
1 opts = Options('custom.py')
2 opts.AddOptions(
3 BoolOption('RELEASE', 'Set to build for release', 0),
4 PathOption('PYTHON_HOME','Path to python home','C:/python23')
5 )
6 env = Environment(tools = ['default'],options = opts)
7
8 print "PLATFORM is:", env['PLATFORM']
9
10 EnsurePythonVersion(2,3)
11
12 #TODO: How do I convert these to options?
13 #TODO: Is there a more compact way of setting up the include paths?
14
15 # Third-Party libraries
16 boost_inc = 'E:/woo409/development/boost'
17 python_home = 'C:/Python23'
18
19 # Where to install (and find) esys includes and libraries
20 # Note: #/ means relative to the top of source tree
21 esys_inc = '#/include'
22 esys_lib = '#/lib'
23
24 # Derived paths
25 python_inc = python_home + '/include'
26 python_lib = python_home + '/libs'
27
28 incdir = [ boost_inc, python_inc, esys_inc ]
29 libdir = [ python_lib, esys_lib ]
30
31 env.Append(CPPPATH=incdir)
32 env.Append(LIBPATH=libdir)
33
34 env.Append(CPPDEFINES = ['DOASSERT'])
35
36 if env['PLATFORM'] == "win32":
37 env.Append(CCFLAGS = ' /GR /EHsc /TP /wd4068')
38 env.Append(CPPDEFINES = ['MSVC', 'WIN32'])
39 if False :
40 print "RELEASE build"
41 else:
42 print "DEBUG build"
43 env.Append(CCFLAGS = ' /Od /MDd /RTC1')
44 env.Append(CPPDEFINES = ['_DEBUG'])
45
46 Export(["env", "incdir", "esys_inc", "esys_lib" ])
47
48 env.SConscript(dirs = ['paso/src'], build_dir='win32/build/paso', duplicate=0)
49 env.SConscript(dirs = ['win32/win32_utils'], build_dir='win32/build/win32_utils', duplicate=0)
50 env.SConscript(dirs = ['tools/mmio/src'], build_dir='win32/build/tools/mmio', duplicate=0)

  ViewVC Help
Powered by ViewVC 1.1.26