/[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 221 - (show annotations)
Thu Nov 24 11:23:33 2005 UTC (15 years, 2 months ago) by phornby
File size: 1061 byte(s)
Builds on Linux. Changes to path names in top level
SConstruct will break the windows build. I've done my best
to not change anything else that would break windows, but
something might have slipped past.

Please check the finley_UnitTests.cpp, bruce_UnitTests.cpp and
escript_UnitTest.cpp (look at the TODO).


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