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

Annotation of /branches/RW_WIN32/paso/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 234 - (hide 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 robwdcock 186 Import('*')
2    
3 robwdcock 200 paso_env=env.Copy()
4 phornby 221
5 robwdcock 209 src_dir = paso_env.Dir('.').srcnode().abspath
6 robwdcock 186
7 phornby 221 import os
8     filenames = os.listdir(src_dir)
9 robwdcock 209 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 phornby 221
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 robwdcock 209 headers += ['Solvers/'+x for x in solver_filenames if os.path.splitext(x)[1] in ['.h']]
16 phornby 221
17 robwdcock 186 # TODO: if building with SCSL then the appropriate sources need to be appended to the above.
18    
19     if env['PLATFORM'] == "win32":
20 phornby 221 paso_env.Append(CPPDEFINES=['_WINDOWS', '_USRDLL', 'PASO_EXPORTS'])
21 robwdcock 186 paso_env.Append(LIBS='mmio')
22     paso_env['PDB'] = 'paso.pdb'
23    
24     paso_lib = paso_env.SharedLibrary( 'paso', sources)
25    
26 robwdcock 234 include = Dir('paso', esys_inc)
27 robwdcock 186
28     paso_env.Install( include, headers)
29 phornby 221 paso_env.Install( esys_lib, paso_lib)

  ViewVC Help
Powered by ViewVC 1.1.26