/[escript]/trunk/esysUtils/src/SConscript
ViewVC logotype

Annotation of /trunk/esysUtils/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 682 - (hide annotations)
Mon Mar 27 02:43:09 2006 UTC (13 years, 5 months ago) by robwdcock
File size: 1081 byte(s)
+ NEW BUILD SYSTEM

This commit contains the new build system with cross-platform support.
Most things work are before though you can have more control.

ENVIRONMENT settings have changed:
+ You no longer require LD_LIBRARY_PATH or PYTHONPATH to point to the
esysroot for building and testing performed via scons
+ ACcESS altix users: It is recommended you change your modules to load
the latest intel compiler and other libraries required by boost to match
the setup in svn (you can override). The correct modules are as follows

module load intel_cc.9.0.026
export
MODULEPATH=${MODULEPATH}:/data/raid2/toolspp4/modulefiles/gcc-3.3.6
module load boost/1.33.0/python-2.4.1
module load python/2.4.1
module load numarray/1.3.3


1 jgs 180 Import('*')
2    
3 robwdcock 682 local_env=env.Copy()
4    
5     src_dir = local_env.Dir('.').srcnode().abspath
6    
7 jgs 180 import os
8 robwdcock 682 filenames = os.listdir(src_dir)
9     sources = [x for x in filenames if os.path.splitext(x)[1] in ['.cpp', '.c']]
10     headers = [x for x in filenames if os.path.splitext(x)[1] in ['.h']]
11     # Filter out sources that should not be in the list automatically
12 jgs 180
13 robwdcock 682 lib_name = 'esysUtils'
14 jgs 180
15 robwdcock 682 local_env.Append(LIBS = [boost_lib, ])
16 jgs 190
17 robwdcock 682 lib = local_env.StaticLibrary(lib_name, sources)
18 jgs 468
19 robwdcock 682 include_path = Dir(lib_name, incinstall)
20 jgs 180
21 robwdcock 682 local_env.Install(include_path, headers )
22     local_env.Install(libinstall, lib)
23 jgs 180
24 robwdcock 682 # Call the unit tests SConscript
25     # export the lib target since tests will depend on it
26     # the lib target is a list of file nodes (why? win32 produces more than one output file: .lib, .dll, .pdb)
27     # FIXME: This list handling produces the desired result but can this be done directly with scons File nodes?
28 jgs 180
29 robwdcock 682 dep_lib = [libinstall+'/'+str(x) for x in lib]
30     Export('dep_lib')
31 jgs 352
32 robwdcock 682 local_env.SConscript(dirs = ['#/esysUtils/test/EsysException'], build_dir='#/build/$PLATFORM/esysUtils/test/EsysException', duplicate=0)
33    

  ViewVC Help
Powered by ViewVC 1.1.26