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

Contents of /trunk/escript/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 481 - (show annotations)
Wed Feb 1 05:57:50 2006 UTC (13 years, 8 months ago) by jgs
File size: 2002 byte(s)
add mechanism to install .h files to inc directories
(still need to specify full lists of .h files to install)

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

  ViewVC Help
Powered by ViewVC 1.1.26