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

Contents of /trunk/finley/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 481 - (show annotations)
Wed Feb 1 05:57:50 2006 UTC (13 years, 4 months ago) by jgs
File size: 4518 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 = '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 = ['Finley.h']
35
36 sources = ['Assemble_addToSystemMatrix.c',
37 'Assemble_CopyElementData.c',
38 'Assemble_CopyNodalData.c',
39 'Assemble_getAssembleParameters.c',
40 'Assemble_getSize.c',
41 'Assemble_gradient.c',
42 'Assemble_handelShapeMissMatch.c',
43 'Assemble_integrate.c',
44 'Assemble_interpolate.c',
45 'Assemble_NodeCoordinates.c',
46 'Assemble_PDE.c',
47 'Assemble_PDEMatrix_Single2.c',
48 'Assemble_PDEMatrix_System2.c',
49 'Assemble_PDE_RHS.c',
50 'Assemble_RHSMatrix_Single.c',
51 'Assemble_RHSMatrix_System.c',
52 'Assemble_RobinCondition.c',
53 'Assemble_RobinCondition_RHS.c',
54 'Assemble_setNormal.c',
55 'ElementFile_allocTable.c',
56 'ElementFile.c',
57 'ElementFile_copyTable.c',
58 'ElementFile_gather.c',
59 'ElementFile_improveColoring.c',
60 'ElementFile_markNodes.c',
61 'ElementFile_optimizeDistribution.c',
62 'ElementFile_prepare.c',
63 'ElementFile_relableNodes.c',
64 'ElementFile_scatter.c',
65 'ElementFile_setNodeRange.c',
66 'Finley.c',
67 'IndexList.c',
68 'Mesh.c',
69 'Mesh_findMatchingFaces.c',
70 'Mesh_getPattern.c',
71 'Mesh_glueFaces.c',
72 'Mesh_hex20.c',
73 'Mesh_hex8.c',
74 'Mesh_joinFaces.c',
75 'Mesh_line2.c',
76 'Mesh_line3.c',
77 'Mesh_markNodes.c',
78 'Mesh_merge.c',
79 'Mesh_prepare.c',
80 'Mesh_prepareNodes.c',
81 'Mesh_print.c',
82 'Mesh_read.c',
83 'Mesh_rec4.c',
84 'Mesh_rec8.c',
85 'Mesh_relabelElementNodes.c',
86 'Mesh_resolveNodeIds.c',
87 'Mesh_saveDX.c',
88 'Mesh_saveVTK.c',
89 'Mesh_write.c',
90 'NodeFile_allocTable.c',
91 'NodeFile.c',
92 'NodeFile_copyTable.c',
93 'NodeFile_gatter.c',
94 'NodeFile_scatter.c',
95 'NodeFile_setCoordinates.c',
96 'NodeFile_setIdRange.c',
97 'Quadrature.c',
98 'ReferenceElements.c',
99 'ShapeFunctions.c',
100 'Util.c',
101 'CPPAdapter/FinleyError.cpp',
102 'CPPAdapter/MeshAdapter.cpp',
103 'CPPAdapter/MeshAdapterFactory.cpp',
104 'CPPAdapter/SystemMatrixAdapter.cpp',
105 'CPPAdapter/finleycpp.cpp']
106
107 lib_path = [esys_lib_path,
108 mmio_lib_path,
109 esysUtils_lib_path,
110 boost_lib_path] \
111 + solver_lib_paths
112
113
114 libs = ['escriptcpp',
115 'esysUtils',
116 'paso',
117 'mmio',
118 str(boost_lib),
119 'dl',
120 'util'] \
121 + sys_libs \
122 + solver_libs
123
124 finley_env = Environment(ENV = os.environ)
125
126 finley_env.Replace(CC = cc)
127 finley_env.Replace(CXX = cxx)
128 finley_env.Replace(CCFLAGS = cc_flags)
129 finley_env.Replace(CXXFLAGS = cxx_flags)
130 finley_env.Replace(SHOBJSUFFIX = '.lo')
131 finley_env.Replace(CPPPATH = cpp_path)
132 finley_env.Replace(LIBPATH = lib_path)
133 finley_env.Replace(LIBS = libs)
134
135 finley_lib = finley_env.SharedLibrary(libname, sources)
136
137 Depends(finley_lib, esysUtils_lib)
138 Depends(finley_lib, escript_lib)
139 Depends(finley_lib, paso_lib)
140 Depends(finley_lib, mmio_lib)
141
142 Default(finley_env.Install(incdir, incs))
143 Default(finley_env.Install(incdir2, incs))
144 if incinstall != None:
145 Default(finley_env.Install(incinstall, incs))
146
147 Default(finley_env.Install(libdir, finley_lib))
148 Default(finley_env.Install(libdir2, finley_lib))
149 if libinstall != None:
150 Default(finley_env.Install(libinstall, finley_lib))

  ViewVC Help
Powered by ViewVC 1.1.26