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

Annotation of /trunk/escript/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 577 - (hide annotations)
Fri Mar 3 08:32:16 2006 UTC (13 years, 7 months ago) by gross
File size: 2829 byte(s)
installation of new inc file
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 484 incs = ['AbstractContinuousDomain.h',
24     'AbstractDomain.h',
25     'AbstractSystemMatrix.h',
26     'BinaryOp.h',
27     'DataAbstract.h',
28     'DataAlgorithm.h',
29     'DataArray.h',
30     'DataArrayView.h',
31     'DataBlocks2D.h',
32     'DataCached.h',
33     'DataC.h',
34     'DataConstant.h',
35     'DataEmpty.h',
36     'DataException.h',
37     'DataExpanded.h',
38     'DataFactory.h',
39     'Data.h',
40     'DataProf.h',
41     'DataTagged.h',
42     'DataVariable.h',
43     'DataVector.h',
44     'DomainException.h',
45     'FunctionSpaceException.h',
46     'FunctionSpaceFactory.h',
47     'FunctionSpace.h',
48     'NullDomain.h',
49     'SystemMatrixException.h',
50     'Taipan.h',
51     'UnaryFuncs.h',
52     'UnaryOp.h',
53     'UtilC.h',
54 gross 577 'LocalOps.h',
55 jgs 484 'Utils.h']
56 jgs 481
57 jgs 181 sources = ['AbstractContinuousDomain.cpp',
58     'AbstractDomain.cpp',
59     'AbstractSystemMatrix.cpp',
60     'DataAbstract.cpp',
61     'DataArray.cpp',
62     'DataArrayView.cpp',
63     'DataBlocks2D.cpp',
64     'DataCached.cpp',
65     'DataC.cpp',
66     'DataConstant.cpp',
67     'Data.cpp',
68     'DataEmpty.cpp',
69     'DataExpanded.cpp',
70     'DataFactory.cpp',
71     'DataProf.cpp',
72     'DataTagged.cpp',
73     'DataVariable.cpp',
74     'DataVector.cpp',
75     'FunctionSpace.cpp',
76     'FunctionSpaceFactory.cpp',
77     'NullDomain.cpp',
78     'Taipan.cpp',
79 gross 392 'Utils.cpp',
80 jgs 181 'escriptcpp.cpp']
81    
82 jgs 277 lib_path = [esysUtils_lib_path,
83     boost_lib_path]
84    
85     libs = ['esysUtils',
86     str(boost_lib)]
87    
88     libs.extend(sys_libs)
89    
90 jgs 181 escript_env = Environment(ENV = os.environ)
91    
92 jgs 223 escript_env.Replace(CXX = cxx)
93 jgs 181 escript_env.Replace(SHOBJSUFFIX = '.lo')
94     escript_env.Replace(CXXFLAGS = cxx_flags)
95     escript_env.Replace(CPPPATH = cpp_path)
96 jgs 277 escript_env.Replace(LIBPATH = lib_path)
97     escript_env.Replace(LIBS = libs)
98 jgs 181
99 jgs 277 escript_lib = escript_env.SharedLibrary(libname, sources)
100    
101     Depends(escript_lib, esysUtils_lib)
102    
103 jgs 481 Default(escript_env.Install(incdir, incs))
104     Default(escript_env.Install(incdir2, incs))
105     if incinstall != None:
106     Default(escript_env.Install(incinstall, incs))
107    
108 jgs 352 Default(escript_env.Install(libdir, escript_lib))
109     Default(escript_env.Install(libdir2, escript_lib))
110 jgs 192 if libinstall != None:
111 jgs 352 Default(escript_env.Install(libinstall, escript_lib))

  ViewVC Help
Powered by ViewVC 1.1.26