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

Contents of /trunk/escript/src/Data/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 468 - (show annotations)
Wed Jan 25 06:50:39 2006 UTC (13 years, 8 months ago) by jgs
File size: 1805 byte(s)
reorganised esysUtils to remove inc directory
1 libinstall = None
2
3 Import('*')
4
5 import os
6 import string
7
8 libname = 'escriptcpp'
9
10 escript_path = str(esysroot) + '/escript/inc'
11 esysUtils_path = str(esysroot) + '/esysUtils/src'
12
13 esysUtils_lib_path = str(esysroot) + '/esysUtils/lib'
14
15 esysUtils_lib = str(esysUtils_lib_path) + '/libesysUtils.a'
16
17 cpp_path = [escript_path,
18 esysUtils_path,
19 python_path,
20 boost_path]
21
22 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 'Utils.cpp',
45 'escriptcpp.cpp']
46
47 lib_path = [esysUtils_lib_path,
48 boost_lib_path]
49
50 libs = ['esysUtils',
51 str(boost_lib)]
52
53 libs.extend(sys_libs)
54
55 escript_env = Environment(ENV = os.environ)
56
57 escript_env.Replace(CXX = cxx)
58 escript_env.Replace(SHOBJSUFFIX = '.lo')
59 escript_env.Replace(CXXFLAGS = cxx_flags)
60 escript_env.Replace(CPPPATH = cpp_path)
61 escript_env.Replace(LIBPATH = lib_path)
62 escript_env.Replace(LIBS = libs)
63
64 escript_lib = escript_env.SharedLibrary(libname, sources)
65
66 Depends(escript_lib, esysUtils_lib)
67
68 Default(escript_env.Install(libdir, escript_lib))
69 Default(escript_env.Install(libdir2, escript_lib))
70 if libinstall != None:
71 Default(escript_env.Install(libinstall, escript_lib))

  ViewVC Help
Powered by ViewVC 1.1.26