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

Annotation of /trunk/escript/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 288 - (hide annotations)
Fri Dec 2 01:55:04 2005 UTC (13 years, 8 months ago) by jgs
Original Path: trunk/escript/src/Data/SConscript
File size: 1754 byte(s)
now automatically build unit tests as required based on dependencies
between unit tests and libraries

1 jgs 192 libinstall = None
2    
3 jgs 181 Import('*')
4    
5     import os
6 jgs 190 import string
7 jgs 181
8 jgs 277 libname = 'escriptcpp'
9    
10 jgs 190 escript_path = str(esysroot) + '/escript/inc'
11     esysUtils_path = str(esysroot) + '/esysUtils/inc'
12 jgs 181
13 jgs 277 esysUtils_lib_path = str(esysroot) + '/esysUtils/lib'
14    
15     esysUtils_lib = str(esysUtils_lib_path) + '/libesysUtils.a'
16    
17 jgs 190 cpp_path = [escript_path,
18     esysUtils_path,
19     python_path,
20     boost_path]
21    
22 jgs 181 sources = ['AbstractContinuousDomain.cpp',
23     'AbstractDomain.cpp',
24     'AbstractSystemMatrix.cpp',
25     'DataAbstract.cpp',
26     'DataArray.cpp',
27     'DataArrayView.cpp',
28     'DataBlocks2D.cpp',
29     'DataCached.cpp',
30     'DataC.cpp',
31     'DataConstant.cpp',
32     'Data.cpp',
33     'DataEmpty.cpp',
34     'DataExpanded.cpp',
35     'DataFactory.cpp',
36     'DataProf.cpp',
37     'DataTagged.cpp',
38     'DataVariable.cpp',
39     'DataVector.cpp',
40     'FunctionSpace.cpp',
41     'FunctionSpaceFactory.cpp',
42     'NullDomain.cpp',
43     'Taipan.cpp',
44     'escriptcpp.cpp']
45    
46 jgs 277 lib_path = [esysUtils_lib_path,
47     boost_lib_path]
48    
49     libs = ['esysUtils',
50     str(boost_lib)]
51    
52     libs.extend(sys_libs)
53    
54 jgs 181 escript_env = Environment(ENV = os.environ)
55    
56 jgs 223 escript_env.Replace(CXX = cxx)
57 jgs 181 escript_env.Replace(SHOBJSUFFIX = '.lo')
58     escript_env.Replace(CXXFLAGS = cxx_flags)
59     escript_env.Replace(CPPPATH = cpp_path)
60 jgs 277 escript_env.Replace(LIBPATH = lib_path)
61     escript_env.Replace(LIBS = libs)
62 jgs 181
63 jgs 277 escript_lib = escript_env.SharedLibrary(libname, sources)
64    
65     Depends(escript_lib, esysUtils_lib)
66    
67 jgs 181 escript_env.Install(libdir, escript_lib)
68 jgs 288 escript_env.Install(libdir2, escript_lib)
69 jgs 192 if libinstall != None:
70     escript_env.Install(libinstall, escript_lib)

  ViewVC Help
Powered by ViewVC 1.1.26