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

Annotation of /trunk/esysUtils/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


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

1 ksteube 1705 #
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 gross 700 import os
18 jgs 180 Import('*')
19    
20 ksteube 1705 local_env = clone_env(env_mpi)
21 robwdcock 682
22 ksteube 1705 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 robwdcock 682
37     lib_name = 'esysUtils'
38 jgs 180
39 robwdcock 682 lib = local_env.StaticLibrary(lib_name, sources)
40 ksteube 1705 env.Alias('target_esysUtils_a', lib)
41 jgs 468
42 ksteube 1705 include_path = Dir(lib_name, local_env['incinstall'])
43 phornby 1628
44 ksteube 1705 tmp1 = local_env.Install(include_path, headers )
45     env.Alias('target_install_esysUtils_headers', [tmp1])
46 jgs 180
47 ksteube 1705 tmp3 = local_env.Install(local_env['libinstall'], lib)
48     env.Alias('target_install_esysUtils_a', tmp3)
49 jgs 180
50 robwdcock 682 # 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 jgs 180
55 ksteube 1705 dep_lib = [local_env['libinstall']+'/'+str(x) for x in lib]
56 robwdcock 682 Export('dep_lib')
57 jgs 352
58 gross 700 local_env.SConscript(dirs = ['#/esysUtils/test'], build_dir='#/build/$PLATFORM/esysUtils/test', duplicate=0)
59 robwdcock 682

  ViewVC Help
Powered by ViewVC 1.1.26