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

Contents of /trunk/finley/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 484 - (show annotations)
Thu Feb 2 02:12:08 2006 UTC (13 years, 4 months ago) by jgs
File size: 5017 byte(s)
add remainder of includes to SConscript includes install
1 libinstall = None
2 incinstall = None
3
4 Import('*')
5
6 import os
7 import string
8
9 libname = 'finleycpp'
10
11 finley_path = str(esysroot) + '/finley/src'
12 finley_cppadapter_path = str(esysroot) + '/finley/src/CPPAdapter'
13 paso_path = str(esysroot) + '/paso/src'
14 escript_path = str(esysroot) + '/escript/src'
15 esysUtils_path = str(esysroot) + '/esysUtils/src'
16
17 esys_lib_path = str(esysroot) + '/lib'
18 mmio_lib_path = str(esysroot) + '/tools/mmio/lib'
19 esysUtils_lib_path = str(esysroot) + '/esysUtils/lib'
20
21 esysUtils_lib = str(esysUtils_lib_path) + '/libesysUtils.a'
22 escript_lib = str(esys_lib_path) + '/libescriptcpp.so'
23 paso_lib = str(esys_lib_path) + '/libpaso.a'
24 mmio_lib = str(mmio_lib_path) + '/libmmio.a'
25
26 cpp_path = [finley_path,
27 finley_cppadapter_path,
28 paso_path,
29 escript_path,
30 esysUtils_path,
31 python_path,
32 boost_path]
33
34 incs = ['Assemble.h',
35 'ElementFile.h',
36 'Finley.h',
37 'FinleyVersion.h',
38 'IndexList.h',
39 'Mesh.h',
40 'NodeFile.h',
41 'Quadrature.h',
42 'RectangularMesh.h',
43 'ReferenceElements.h',
44 'ShapeFunctions.h',
45 'Util.h',
46 # 'vtkCellType.h',
47 'CPPAdapter/FinleyAdapterException.h',
48 'CPPAdapter/FinleyError.h',
49 'CPPAdapter/MeshAdapterFactory.h',
50 'CPPAdapter/MeshAdapter.h',
51 'CPPAdapter/SystemMatrixAdapter.h']
52
53 sources = ['Assemble_addToSystemMatrix.c',
54 'Assemble_CopyElementData.c',
55 'Assemble_CopyNodalData.c',
56 'Assemble_getAssembleParameters.c',
57 'Assemble_getSize.c',
58 'Assemble_gradient.c',
59 'Assemble_handelShapeMissMatch.c',
60 'Assemble_integrate.c',
61 'Assemble_interpolate.c',
62 'Assemble_NodeCoordinates.c',
63 'Assemble_PDE.c',
64 'Assemble_PDEMatrix_Single2.c',
65 'Assemble_PDEMatrix_System2.c',
66 'Assemble_PDE_RHS.c',
67 'Assemble_RHSMatrix_Single.c',
68 'Assemble_RHSMatrix_System.c',
69 'Assemble_RobinCondition.c',
70 'Assemble_RobinCondition_RHS.c',
71 'Assemble_setNormal.c',
72 'ElementFile_allocTable.c',
73 'ElementFile.c',
74 'ElementFile_copyTable.c',
75 'ElementFile_gather.c',
76 'ElementFile_improveColoring.c',
77 'ElementFile_markNodes.c',
78 'ElementFile_optimizeDistribution.c',
79 'ElementFile_prepare.c',
80 'ElementFile_relableNodes.c',
81 'ElementFile_scatter.c',
82 'ElementFile_setNodeRange.c',
83 'Finley.c',
84 'IndexList.c',
85 'Mesh.c',
86 'Mesh_findMatchingFaces.c',
87 'Mesh_getPattern.c',
88 'Mesh_glueFaces.c',
89 'Mesh_hex20.c',
90 'Mesh_hex8.c',
91 'Mesh_joinFaces.c',
92 'Mesh_line2.c',
93 'Mesh_line3.c',
94 'Mesh_markNodes.c',
95 'Mesh_merge.c',
96 'Mesh_prepare.c',
97 'Mesh_prepareNodes.c',
98 'Mesh_print.c',
99 'Mesh_read.c',
100 'Mesh_rec4.c',
101 'Mesh_rec8.c',
102 'Mesh_relabelElementNodes.c',
103 'Mesh_resolveNodeIds.c',
104 'Mesh_saveDX.c',
105 'Mesh_saveVTK.c',
106 'Mesh_write.c',
107 'NodeFile_allocTable.c',
108 'NodeFile.c',
109 'NodeFile_copyTable.c',
110 'NodeFile_gatter.c',
111 'NodeFile_scatter.c',
112 'NodeFile_setCoordinates.c',
113 'NodeFile_setIdRange.c',
114 'Quadrature.c',
115 'ReferenceElements.c',
116 'ShapeFunctions.c',
117 'Util.c',
118 'CPPAdapter/FinleyError.cpp',
119 'CPPAdapter/MeshAdapter.cpp',
120 'CPPAdapter/MeshAdapterFactory.cpp',
121 'CPPAdapter/SystemMatrixAdapter.cpp',
122 'CPPAdapter/finleycpp.cpp']
123
124 lib_path = [esys_lib_path,
125 mmio_lib_path,
126 esysUtils_lib_path,
127 boost_lib_path] \
128 + solver_lib_paths
129
130
131 libs = ['escriptcpp',
132 'esysUtils',
133 'paso',
134 'mmio',
135 str(boost_lib),
136 'dl',
137 'util'] \
138 + sys_libs \
139 + solver_libs
140
141 finley_env = Environment(ENV = os.environ)
142
143 finley_env.Replace(CC = cc)
144 finley_env.Replace(CXX = cxx)
145 finley_env.Replace(CCFLAGS = cc_flags)
146 finley_env.Replace(CXXFLAGS = cxx_flags)
147 finley_env.Replace(SHOBJSUFFIX = '.lo')
148 finley_env.Replace(CPPPATH = cpp_path)
149 finley_env.Replace(LIBPATH = lib_path)
150 finley_env.Replace(LIBS = libs)
151
152 finley_lib = finley_env.SharedLibrary(libname, sources)
153
154 Depends(finley_lib, esysUtils_lib)
155 Depends(finley_lib, escript_lib)
156 Depends(finley_lib, paso_lib)
157 Depends(finley_lib, mmio_lib)
158
159 Default(finley_env.Install(incdir, incs))
160 Default(finley_env.Install(incdir2, incs))
161 if incinstall != None:
162 Default(finley_env.Install(incinstall, incs))
163
164 Default(finley_env.Install(libdir, finley_lib))
165 Default(finley_env.Install(libdir2, finley_lib))
166 if libinstall != None:
167 Default(finley_env.Install(libinstall, finley_lib))

  ViewVC Help
Powered by ViewVC 1.1.26