/[escript]/trunk/bruce/src/Bruce/SConscript
ViewVC logotype

Contents of /trunk/bruce/src/Bruce/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 288 - (show annotations)
Fri Dec 2 01:55:04 2005 UTC (13 years, 4 months ago) by jgs
File size: 1340 byte(s)
now automatically build unit tests as required based on dependencies
between unit tests and libraries

1 libinstall = None
2
3 Import('*')
4
5 import os
6 import string
7
8 libname = 'brucecpp'
9
10 bruce_path = str(esysroot) + '/bruce/inc'
11 escript_path = str(esysroot) + '/escript/inc'
12 esysUtils_path = str(esysroot) + '/esysUtils/inc'
13
14 esys_lib_path = str(esysroot) + '/lib'
15 esysUtils_lib_path = str(esysroot) + '/esysUtils/lib'
16
17 escript_lib = str(esys_lib_path) + '/libescriptcpp.so'
18 esysUtils_lib = str(esysUtils_lib_path) + '/libesysUtils.a'
19
20 cpp_path = [bruce_path,
21 escript_path,
22 esysUtils_path,
23 python_path,
24 boost_path]
25
26 sources = ['Bruce.cpp',
27 'BruceFactory.cpp',
28 'brucecpp.cpp']
29
30 lib_path = [esys_lib_path,
31 esysUtils_lib_path,
32 boost_lib_path]
33
34 libs = ['esysUtils',
35 'escriptcpp',
36 str(boost_lib)]
37
38 libs.extend(sys_libs)
39
40 bruce_env = Environment(ENV = os.environ)
41
42 bruce_env.Replace(CXX = cxx)
43 bruce_env.Replace(SHOBJSUFFIX = '.lo')
44 bruce_env.Replace(CXXFLAGS = cxx_flags)
45 bruce_env.Replace(CPPPATH = cpp_path)
46 bruce_env.Replace(LIBPATH = lib_path)
47 bruce_env.Replace(LIBS = libs)
48
49 bruce_lib = bruce_env.SharedLibrary(libname, sources)
50
51 Depends(bruce_lib, esysUtils_lib)
52 Depends(bruce_lib, escript_lib)
53
54 bruce_env.Install(libdir, bruce_lib)
55 bruce_env.Install(libdir2, bruce_lib)
56 if libinstall != None:
57 bruce_env.Install(libinstall, bruce_lib)

  ViewVC Help
Powered by ViewVC 1.1.26