/[escript]/branches/RW_WIN32/paso/src/SConscript
ViewVC logotype

Contents of /branches/RW_WIN32/paso/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 234 - (show annotations)
Sun Nov 27 05:34:35 2005 UTC (14 years, 10 months ago) by robwdcock
File size: 1061 byte(s)
Paso -> paso  - why do these changes just not stick!!!!
1 Import('*')
2
3 paso_env=env.Copy()
4
5 src_dir = paso_env.Dir('.').srcnode().abspath
6
7 import os
8 filenames = os.listdir(src_dir)
9 sources = [x for x in filenames if os.path.splitext(x)[1] in ['.cpp', '.c']]
10 headers = [x for x in filenames if os.path.splitext(x)[1] in ['.h']]
11
12 # Paso has additional source in the Solvers sub-directory. Append these to the list
13 solver_filenames = os.listdir(src_dir+'/Solvers');
14 sources += ['Solvers/'+x for x in solver_filenames if os.path.splitext(x)[1] in ['.cpp', '.c']]
15 headers += ['Solvers/'+x for x in solver_filenames if os.path.splitext(x)[1] in ['.h']]
16
17 # TODO: if building with SCSL then the appropriate sources need to be appended to the above.
18
19 if env['PLATFORM'] == "win32":
20 paso_env.Append(CPPDEFINES=['_WINDOWS', '_USRDLL', 'PASO_EXPORTS'])
21 paso_env.Append(LIBS='mmio')
22 paso_env['PDB'] = 'paso.pdb'
23
24 paso_lib = paso_env.SharedLibrary( 'paso', sources)
25
26 include = Dir('paso', esys_inc)
27
28 paso_env.Install( include, headers)
29 paso_env.Install( esys_lib, paso_lib)

  ViewVC Help
Powered by ViewVC 1.1.26