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

Contents of /trunk/esysUtils/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1705 - (show annotations)
Thu Aug 14 05:56:40 2008 UTC (11 years, 2 months ago) by ksteube
File size: 1598 byte(s)
Branch scons-dev is hereby closed.
Some parts of scons scripts have been re-written.

1 #
2 # $Id$
3 #
4 #######################################################
5 #
6 # Copyright 2003-2007 by ACceSS MNRF
7 # Copyright 2007 by University of Queensland
8 #
9 # http://esscc.uq.edu.au
10 # Primary Business: Queensland, Australia
11 # Licensed under the Open Software License version 3.0
12 # http://www.opensource.org/licenses/osl-3.0.php
13 #
14 #######################################################
15 #
16
17 import os
18 Import('*')
19
20 local_env = clone_env(env_mpi)
21
22 sources = """
23 EsysAssertException.cpp
24 EsysException.cpp
25 esysExceptionTranslator.cpp
26 """.split()
27 headers = """
28 EsysAssert.h
29 EsysAssertException.h
30 EsysException.h
31 EsysTypes.h
32 esys_malloc.h
33 esysExceptionTranslator.h
34 system_dep.h
35 """.split()
36
37 lib_name = 'esysUtils'
38
39 lib = local_env.StaticLibrary(lib_name, sources)
40 env.Alias('target_esysUtils_a', lib)
41
42 include_path = Dir(lib_name, local_env['incinstall'])
43
44 tmp1 = local_env.Install(include_path, headers )
45 env.Alias('target_install_esysUtils_headers', [tmp1])
46
47 tmp3 = local_env.Install(local_env['libinstall'], lib)
48 env.Alias('target_install_esysUtils_a', tmp3)
49
50 # Call the unit tests SConscript
51 # export the lib target since tests will depend on it
52 # the lib target is a list of file nodes (why? win32 produces more than one output file: .lib, .dll, .pdb)
53 # FIXME: This list handling produces the desired result but can this be done directly with scons File nodes?
54
55 dep_lib = [local_env['libinstall']+'/'+str(x) for x in lib]
56 Export('dep_lib')
57
58 local_env.SConscript(dirs = ['#/esysUtils/test'], build_dir='#/build/$PLATFORM/esysUtils/test', duplicate=0)
59

  ViewVC Help
Powered by ViewVC 1.1.26