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

Annotation of /trunk/escript/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 481 - (hide 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 jgs 192 libinstall = None
2 jgs 481 incinstall = None
3 jgs 192
4 jgs 181 Import('*')
5    
6     import os
7 jgs 190 import string
8 jgs 181
9 jgs 277 libname = 'escriptcpp'
10    
11 jgs 474 escript_path = str(esysroot) + '/escript/src'
12 jgs 468 esysUtils_path = str(esysroot) + '/esysUtils/src'
13 jgs 181
14 jgs 277 esysUtils_lib_path = str(esysroot) + '/esysUtils/lib'
15    
16     esysUtils_lib = str(esysUtils_lib_path) + '/libesysUtils.a'
17    
18 jgs 190 cpp_path = [escript_path,
19     esysUtils_path,
20     python_path,
21     boost_path]
22    
23 jgs 481 incs = ['Data.h']
24    
25 jgs 181 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 gross 392 'Utils.cpp',
48 jgs 181 'escriptcpp.cpp']
49    
50 jgs 277 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 jgs 181 escript_env = Environment(ENV = os.environ)
59    
60 jgs 223 escript_env.Replace(CXX = cxx)
61 jgs 181 escript_env.Replace(SHOBJSUFFIX = '.lo')
62     escript_env.Replace(CXXFLAGS = cxx_flags)
63     escript_env.Replace(CPPPATH = cpp_path)
64 jgs 277 escript_env.Replace(LIBPATH = lib_path)
65     escript_env.Replace(LIBS = libs)
66 jgs 181
67 jgs 277 escript_lib = escript_env.SharedLibrary(libname, sources)
68    
69     Depends(escript_lib, esysUtils_lib)
70    
71 jgs 481 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 jgs 352 Default(escript_env.Install(libdir, escript_lib))
77     Default(escript_env.Install(libdir2, escript_lib))
78 jgs 192 if libinstall != None:
79 jgs 352 Default(escript_env.Install(libinstall, escript_lib))

  ViewVC Help
Powered by ViewVC 1.1.26