1 |
Import('*') |
2 |
|
3 |
paso_env=env.Copy() |
4 |
|
5 |
sources= Split("""Options_getPackage.c |
6 |
Options_getSolver.c |
7 |
Options_setDefaults.c |
8 |
Paso.c |
9 |
SystemMatrix.c |
10 |
SystemMatrixPattern.c |
11 |
SystemMatrixPattern_getSubpattern.c |
12 |
SystemMatrixPattern_mis.c |
13 |
SystemMatrixPattern_unrollBlocks.c |
14 |
SystemMatrix_MatrixVector.c |
15 |
SystemMatrix_borrowNormalization.c |
16 |
SystemMatrix_copy.c |
17 |
SystemMatrix_getSubmatrix.c |
18 |
SystemMatrix_getSystemMatrixTypeId.c |
19 |
SystemMatrix_loadMM.c |
20 |
SystemMatrix_nullifyRowsAndCols.c |
21 |
SystemMatrix_saveHB.c |
22 |
SystemMatrix_saveMM.c |
23 |
SystemMatrix_setValues.c |
24 |
Util.c |
25 |
solve.c |
26 |
Solvers/BiCGStab.c |
27 |
Solvers/GMRES.c |
28 |
Solvers/PCG.c |
29 |
Solvers/Solver.c |
30 |
Solvers/Solver_ILU.c |
31 |
Solvers/Solver_SchurComplement.c |
32 |
Solvers/Solver_applyBlockDiagonalMatrix.c |
33 |
Solvers/Solver_jacobi.c |
34 |
Solvers/Solver_preconditioner.c""") |
35 |
headers= Split("""Common.h |
36 |
Options.h |
37 |
Paso.h |
38 |
SystemMatrix.h |
39 |
SystemMatrixPattern.h |
40 |
Util.h |
41 |
Solvers/Solver.h""") |
42 |
|
43 |
# TODO: if building with SCSL then the appropriate sources need to be appended to the above. |
44 |
|
45 |
if env['PLATFORM'] == "win32": |
46 |
paso_env.Append(CPPDEFINES=['_WINDOWS', '_USRDLL', 'PASO_EXPORTS']) |
47 |
paso_env.Append(LIBS='mmio') |
48 |
paso_env['PDB'] = 'paso.pdb' |
49 |
|
50 |
paso_lib = paso_env.SharedLibrary( 'paso', sources) |
51 |
|
52 |
include = Dir('paso', esys_inc) |
53 |
|
54 |
paso_env.Install( include, headers) |
55 |
paso_env.Install( esys_lib, paso_lib) |