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

Annotation of /branches/RW_WIN32/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log


Revision 218 - (hide annotations)
Thu Nov 24 07:42:12 2005 UTC (13 years, 5 months ago) by robwdcock
File size: 2656 byte(s)
All C++/C Unit tests now build (using scons) and pass on win32
1 robwdcock 186 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 robwdcock 209 boost_home = 'E:/woo409/development/boost'
17     python_home = env['PYTHON_HOME']
18 robwdcock 186
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 robwdcock 209 boost_inc = boost_home
28     boost_lib = boost_home + '/windows_binary/lib'
29 robwdcock 186
30     incdir = [ boost_inc, python_inc, esys_inc ]
31 robwdcock 209 libdir = [ boost_lib, python_lib, esys_lib ]
32 robwdcock 186
33     env.Append(CPPPATH=incdir)
34     env.Append(LIBPATH=libdir)
35    
36     env.Append(CPPDEFINES = ['DOASSERT'])
37    
38     if env['PLATFORM'] == "win32":
39     env.Append(CCFLAGS = ' /GR /EHsc /TP /wd4068')
40     env.Append(CPPDEFINES = ['MSVC', 'WIN32'])
41     if False :
42     print "RELEASE build"
43     else:
44     print "DEBUG build"
45     env.Append(CCFLAGS = ' /Od /MDd /RTC1')
46     env.Append(CPPDEFINES = ['_DEBUG'])
47 robwdcock 209 boost_lib_name = 'boost_python-vc71-mt-sgd'
48 robwdcock 186
49 robwdcock 209 Export(["env", "incdir", "esys_inc", "esys_lib", "boost_lib_name" ])
50 robwdcock 186
51 robwdcock 218 # Libraries
52     env.SConscript(dirs = ['paso/src'], build_dir='build/win32/paso', duplicate=0)
53     env.SConscript(dirs = ['bruce/src'], build_dir='build/win32/bruce', duplicate=0)
54     env.SConscript(dirs = ['escript/src/Data'], build_dir='build/win32/escript/Data', duplicate=0)
55     env.SConscript(dirs = ['esysUtils/src'], build_dir='build/win32/esysUtils', duplicate=0)
56     env.SConscript(dirs = ['win32/win32_utils'], build_dir='build/win32/win32_utils', duplicate=0)
57     env.SConscript(dirs = ['tools/mmio/src'], build_dir='build/win32/tools/mmio', duplicate=0)
58     env.SConscript(dirs = ['tools/CppUnitTest/src'], build_dir='build/win32/tools/CppUnitTest', duplicate=0)
59     env.SConscript(dirs = ['finley/src/finleyC'], build_dir='build/win32/finleyC', duplicate=0)
60     env.SConscript(dirs = ['finley/src/CPPAdapter'], build_dir='build/win32/CPPAdapter', duplicate=0)
61    
62     # Unit Tests
63     env.SConscript(dirs = ['esysUtils/test/EsysException'], build_dir='build/win32/esysUtils/test/EsysException', duplicate=0)
64     env.SConscript(dirs = ['escript/test'], build_dir='build/win32/escript/test', duplicate=0)
65     env.SConscript(dirs = ['bruce/test'], build_dir='build/win32/bruce/test', duplicate=0)
66     env.SConscript(dirs = ['finley/test'], build_dir='build/win32/finley/test', duplicate=0)

  ViewVC Help
Powered by ViewVC 1.1.26