/[escript]/tags/trunk-mpi-branch-V1/SConstruct
ViewVC logotype

Contents of /tags/trunk-mpi-branch-V1/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1321 - (show annotations)
Thu Sep 27 00:52:07 2007 UTC (13 years, 1 month ago) by ksteube
File size: 22131 byte(s)
Moved trunk-mpi-branch-V1 into tags where it belongs

1 # Copyright 2006 by ACcESS MNRF
2 #
3 # http://www.access.edu.au
4 # Primary Business: Queensland, Australia
5 # Licensed under the Open Software License version 3.0
6 # http://www.opensource.org/licenses/osl-3.0.php
7 #
8 #
9 #
10
11 # top-level Scons configuration file for all esys13 modules
12 # Begin initialisation Section
13 # all of this section just intialises default environments and helper
14 # scripts. You shouldn't need to modify this section.
15 EnsureSConsVersion(0,96,91)
16 EnsurePythonVersion(2,3)
17
18 # import tools:
19 import glob
20 import sys, os
21 import socket
22 # Add our extensions
23 if sys.path.count('scons')==0: sys.path.append('scons')
24 import scons_extensions
25
26 # check if UMFPACK is installed on the system:
27 if os.path.isdir('/opt/UMFPACK/Include') and os.path.isdir('/opt/UMFPACK/Lib'):
28 umf_path_default='/opt/UMFPACK/Include'
29 umf_lib_path_default='/opt/UMFPACK/Lib'
30 umf_libs_default=['umfpack']
31 else:
32 umf_path_default=None
33 umf_lib_path_default=None
34 umf_libs_default=[]
35
36 if os.path.isdir('/opt/AMD/Include') and os.path.isdir('/opt/AMD/Lib'):
37 amd_path_default='/opt/AMD/Include'
38 amd_lib_path_default='/opt/AMD/Lib'
39 amd_libs_default=['amd']
40 else:
41 amd_path_default=None
42 amd_lib_path_default=None
43 amd_libs_default=[]
44
45 if os.path.isdir('/opt/UFconfig'):
46 ufc_path_default='/opt/UFconfig'
47 else:
48 ufc_path_default=None
49
50 if os.path.isdir('/usr/local/include') and os.path.isdir('/usr/local/lib'):
51 netCDF_path_default='/usr/local/include'
52 netCDF_lib_path_default='/usr/local/lib'
53 netCDF_libs_cxx_default=[ 'netcdf_c++', 'netcdf']
54 else:
55 netCDF_path_default=None
56 netCDF_lib_path_default=None
57 netCDF_libs_cxx_default=None
58 # Default options and options help text
59 # These are defaults and can be overridden using command line arguments or an options file.
60 # if the options_file or ARGUMENTS do not exist then the ones listed as default here are used
61 # DO NOT CHANGE THEM HERE
62
63 # Where to install?
64 prefix = ARGUMENTS.get('prefix', Dir('#.').abspath)
65
66 if ARGUMENTS.get('options_file',0):
67 options_file = ARGUMENTS.get('options_file',0)
68 else:
69 from string import ascii_letters,digits
70 hostname=""
71 for s in socket.gethostname().split('.')[0]:
72 if s in ascii_letters+digits:
73 hostname+=s
74 else:
75 hostname+="_"
76 options_file = "scons/"+hostname+"_options.py"
77 if os.path.isfile(options_file):
78 print "option file is ",options_file,"."
79 else:
80 print "option file is ",options_file, "(not present)."
81
82 opts = Options(options_file, ARGUMENTS)
83 opts.AddOptions(
84 # Where to install esys stuff
85 ('incinstall', 'where the esys headers will be installed', prefix+'/include'),
86 ('libinstall', 'where the esys libraries will be installed', prefix+'/lib'),
87 ('pyinstall', 'where the esys python modules will be installed', prefix),
88 ('src_zipfile', 'the source zip file will be installed.', prefix+"/release/escript_src.zip"),
89 ('test_zipfile', 'the test zip file will be installed.', prefix+"/release/escript_tests.zip"),
90 ('src_tarfile', 'the source tar file will be installed.', prefix+"/release/escript_src.tar.gz"),
91 ('test_tarfile', 'the test tar file will be installed.', prefix+"/release/escript_tests.tar.gz"),
92 ('examples_tarfile', 'the examples tar file will be installed.', prefix+"/release/doc/escript_examples.tar.gz"),
93 ('examples_zipfile', 'the examples zip file will be installed.', prefix+"/release/doc/escript_examples.zip"),
94 ('guide_pdf', 'name of the user guide in pdf format', prefix+"/release/doc/user/guide.pdf"),
95 ('api_epydoc', 'name of the epydoc api docs directory',prefix+"/release/doc/epydoc"),
96 ('guide_html', 'name of the directory for user guide in html format', prefix+"/release/doc/user/html"),
97 # Compilation options
98 BoolOption('dodebug', 'Do you want a debug build?', 'no'),
99 ('options_file', "Optional file containing preferred options. Ignored if it doesn't exist (default: scons/hostname_options.py)", options_file),
100 ('cc_defines','C/C++ defines to use', None),
101 ('cc_flags','C compiler flags to use (Release build)', '-O3 -std=c99 -ffast-math -fpic -Wno-unknown-pragmas -ansi -pedantic-errors'),
102 ('cc_flags_debug', 'C compiler flags to use (Debug build)', '-g -O0 -ffast-math -std=c99 -fpic -Wno-unknown-pragmas -ansi -pedantic-errors'),
103 ('cxx_flags', 'C++ compiler flags to use (Release build)', '--no-warn -ansi'),
104 ('cxx_flags_debug', 'C++ compiler flags to use (Debug build)', '--no-warn -ansi -DDOASSERT -DDOPROF -DHAVE_MPI_OFFSET'),
105 ('omp_flags', 'OpenMP compiler flags to use (Release build)', ''),
106 ('omp_flags_debug', 'OpenMP compiler flags to use (Debug build)', ''),
107 ('ar_flags', 'Static library archiver flags to use', None),
108 ('sys_libs', 'System libraries to link with', [ 'pthread' , 'rt' ] ),
109 ('tar_flags','flags for zip files','-c -z'),
110 # MKL
111 PathOption('mkl_path', 'Path to MKL includes', None),
112 PathOption('mkl_lib_path', 'Path to MKL libs', None),
113 ('mkl_libs', 'MKL libraries to link with', None),
114 # TRILINOS
115 PathOption('trilinos_path', 'Path to TRILINOS includes', None),
116 PathOption('trilinos_lib_path', 'Path to TRILINOS libs', None),
117 ('trilinos_libs', 'TRILINOS libraries to link with', None),
118 # SCSL
119 PathOption('scsl_path', 'Path to SCSL includes', None),
120 PathOption('scsl_lib_path', 'Path to SCSL libs', None),
121 ('scsl_libs', 'SCSL libraries to link with', None),
122 # UMFPACK
123 PathOption('ufc_path', 'Path to UFconfig includes', ufc_path_default),
124 PathOption('umf_path', 'Path to UMFPACK includes', umf_path_default),
125 PathOption('umf_lib_path', 'Path to UMFPACK libs', umf_lib_path_default),
126 ('umf_libs', 'UMFPACK libraries to link with', umf_libs_default),
127 # AMD (used by UMFPACK)
128 PathOption('amd_path', 'Path to AMD includes', amd_path_default),
129 PathOption('amd_lib_path', 'Path to AMD libs', amd_lib_path_default),
130 ('amd_libs', 'AMD libraries to link with', amd_libs_default),
131 # BLAS
132 PathOption('blas_path', 'Path to BLAS includes', None),
133 PathOption('blas_lib_path', 'Path to BLAS libs', None),
134 ('blas_libs', 'BLAS libraries to link with', None),
135 # netCDF
136 ('useNetCDF', 'switch on/off the usage of netCDF', 'yes'),
137 PathOption('netCDF_path', 'Path to netCDF includes', netCDF_path_default),
138 PathOption('netCDF_lib_path', 'Path to netCDF libs', netCDF_lib_path_default),
139 ('netCDF_libs_cxx', 'netCDF C++ libraries to link with', netCDF_libs_cxx_default),
140 # Python
141 # locations of include files for python
142 PathOption('python_path', 'Path to Python includes', '/usr/include/python%s.%s'%(sys.version_info[0],sys.version_info[1])),
143 PathOption('python_lib_path', 'Path to Python libs', '/usr/lib'),
144 ('python_libs', 'Python libraries to link with', ["python%s.%s"%(sys.version_info[0],sys.version_info[1]),]),
145 # Boost
146 PathOption('boost_path', 'Path to Boost includes', '/usr/include'),
147 PathOption('boost_lib_path', 'Path to Boost libs', '/usr/lib'),
148 ('boost_libs', 'Boost libraries to link with', ['boost_python',]),
149 # Doc building
150 # PathOption('doxygen_path', 'Path to Doxygen executable', None),
151 # PathOption('epydoc_path', 'Path to Epydoc executable', None),
152 # PAPI
153 PathOption('papi_path', 'Path to PAPI includes', None),
154 PathOption('papi_lib_path', 'Path to PAPI libs', None),
155 ('papi_libs', 'PAPI libraries to link with', None),
156 ('papi_instrument_solver', 'use PAPI in Solver.c to instrument each iteration of the solver', None),
157 # MPI
158 BoolOption('useMPI', 'Compile parallel version using MPI', 'no'),
159 ('MPICH_IGNORE_CXX_SEEK', 'name of macro to ignore MPI settings of C++ SEEK macro (for MPICH)' , 'MPICH_IGNORE_CXX_SEEK'),
160 PathOption('mpi_path', 'Path to MPI includes', '/usr/local/include'),
161 PathOption('mpi_lib_path', 'Path to MPI libs (needs to be added to the LD_LIBRARY_PATH)','/usr/local/lib'),
162 ('mpi_libs', 'MPI libraries to link with (needs to be shared!)', [ 'mpich' , 'pthread', 'rt' ]),
163 )
164 # Note: On the Altix the intel compilers are not automatically
165 # detected by scons intelc.py script. The Altix has a different directory
166 # path and in some locations the "modules" facility is used to support
167 # multiple compiler versions. This forces the need to import the users PATH
168 # environment which isn't the "scons way"
169 # This doesn't impact linux and windows which will use the default compiler (g++ or msvc, or the intel compiler if it is installed on both platforms)
170 # FIXME: Perhaps a modification to intelc.py will allow better support for ia64 on altix
171
172 if os.name != "nt" and os.uname()[4]=='ia64':
173 env = Environment(tools = ['default', 'intelc'], options = opts)
174 if env['CXX'] == 'icpc':
175 env['LINK'] = env['CXX'] # version >=9 of intel c++ compiler requires use of icpc to link in C++ runtimes (icc does not). FIXME: this behaviour could be directly incorporated into scons intelc.py
176 elif os.name == "nt":
177 env = Environment(tools = ['default', 'msvc'], options = opts)
178 #env = Environment(tools = ['default', 'intelc'], options = opts)
179 else:
180 env = Environment(tools = ['default'], options = opts)
181 # Initialise Scons Build Environment
182 # check for user environment variables we are interested in
183 try:
184 python_path = os.environ['PYTHONPATH']
185 env['ENV']['PYTHONPATH'] = python_path
186 except KeyError:
187 python_path = ''
188
189 try:
190 path = os.environ['PATH']
191 env['ENV']['PATH'] = path
192 except KeyError:
193 path = ''
194 try:
195 ld_library_path = os.environ['LD_LIBRARY_PATH']
196 env['ENV']['LD_LIBRARY_PATH'] = ld_library_path
197 except KeyError:
198 ld_library_path = ''
199
200
201 # Setup help for options
202 Help(opts.GenerateHelpText(env))
203
204 # Add some customer builders
205 py_builder = Builder(action = scons_extensions.build_py, suffix = '.pyc', src_suffix = '.py', single_source=True)
206 env.Append(BUILDERS = {'PyCompile' : py_builder});
207
208 if env['PLATFORM'] == "win32":
209 runUnitTest_builder = Builder(action = scons_extensions.runUnitTest, suffix = '.passed', src_suffix='.exe', single_source=True)
210 else:
211 runUnitTest_builder = Builder(action = scons_extensions.runUnitTest, suffix = '.passed', single_source=True)
212 env.Append(BUILDERS = {'RunUnitTest' : runUnitTest_builder});
213
214 runPyUnitTest_builder = Builder(action = scons_extensions.runPyUnitTest, suffix = '.passed', src_suffic='.py', single_source=True)
215 env.Append(BUILDERS = {'RunPyUnitTest' : runPyUnitTest_builder});
216
217 # Convert the options which are held in environment variable into python variables for ease of handling and configure compilation options
218 try:
219 incinstall = env['incinstall']
220 env.Append(CPPPATH = [incinstall,])
221 except KeyError:
222 incinstall = None
223 try:
224 libinstall = env['libinstall']
225 env.Append(LIBPATH = [libinstall,]) # ksteube adds -L for building of libescript.so libfinley.so escriptcpp.so finleycpp.so
226 env.PrependENVPath('LD_LIBRARY_PATH', libinstall)
227 if env['PLATFORM'] == "win32":
228 env.PrependENVPath('PATH', libinstall)
229 env.PrependENVPath('PATH', env['boost_lib_path'])
230 except KeyError:
231 libinstall = None
232 try:
233 pyinstall = env['pyinstall']+'/esys' # all targets will install into pyinstall/esys but PYTHONPATH points at straight pyinstall so you go import esys.escript etc
234 env.PrependENVPath('PYTHONPATH', env['pyinstall'])
235 except KeyError:
236 pyinstall = None
237 try:
238 dodebug = env['dodebug']
239 except KeyError:
240 dodebug = None
241 try:
242 useMPI = env['useMPI']
243 except KeyError:
244 useMPI = None
245 try:
246 cc_defines = env['cc_defines']
247 env.Append(CPPDEFINES = cc_defines)
248 except KeyError:
249 pass
250
251 # mpi?
252 if useMPI:
253 env.Append(CPPDEFINES=['PASO_MPI',])
254 env.Append(CDEFINES=['PASO_MPI',])
255
256 try:
257 omp_flags = env['omp_flags']
258 omp_flags_debug = env['omp_flags_debug']
259 except KeyError:
260 print "omp_flags = ''"
261 print "omp_flags_debug = ''"
262
263 # OpenMP and MPI conflict on the Altix, maybe can fix this for mixed mode programming
264 # This disables both OpenMP and MPI on all systems but is an OK fix for now
265 if useMPI:
266 omp_flags = ''
267 omp_flags_debug = ''
268
269 if dodebug:
270 try:
271 flags = env['cc_flags_debug'] + ' ' + omp_flags_debug
272 env.Append(CCFLAGS = flags)
273 except KeyError:
274 pass
275 else:
276 try:
277 flags = env['cc_flags'] + ' ' + omp_flags
278 env.Append(CCFLAGS = flags)
279 except KeyError:
280 pass
281 if dodebug:
282 try:
283 flags = env['cxx_flags_debug']
284 env.Append(CXXFLAGS = flags)
285 except KeyError:
286 pass
287 else:
288 try:
289 flags = env['cxx_flags']
290 env.Append(CXXFLAGS = flags)
291 except KeyError:
292 pass
293 try:
294 flags = env['ar_flags']
295 env.Append(ARFLAGS = flags)
296 except KeyError:
297 ar_flags = None
298 try:
299 sys_libs = env['sys_libs']
300 except KeyError:
301 sys_libs = []
302
303 try:
304 tar_flags = env['tar_flags']
305 env.Replace(TARFLAGS = tar_flags)
306 except KeyError:
307 pass
308
309
310 # ============= set mkl (but only of no MPI) =====================================
311 if not useMPI:
312 try:
313 includes = env['mkl_path']
314 env.Append(CPPPATH = [includes,])
315 except KeyError:
316 pass
317
318 try:
319 lib_path = env['mkl_lib_path']
320 env.Append(LIBPATH = [lib_path,])
321 except KeyError:
322 pass
323
324 try:
325 mkl_libs = env['mkl_libs']
326 except KeyError:
327 mkl_libs = []
328 else:
329 mkl_libs = []
330
331 # ============= set scsl (but only of no MPI) =====================================
332 if not useMPI:
333 try:
334 includes = env['scsl_path']
335 env.Append(CPPPATH = [includes,])
336 except KeyError:
337 pass
338
339 try:
340 lib_path = env['scsl_lib_path']
341 env.Append(LIBPATH = [lib_path,])
342 except KeyError:
343 pass
344
345 try:
346 scsl_libs = env['scsl_libs']
347 except KeyError:
348 scsl_libs = [ ]
349
350 else:
351 scsl_libs = []
352
353 # ============= set TRILINOS (but only with MPI) =====================================
354 if useMPI:
355 try:
356 includes = env['trilinos_path']
357 env.Append(CPPPATH = [includes,])
358 except KeyError:
359 pass
360
361 try:
362 lib_path = env['trilinos_lib_path']
363 env.Append(LIBPATH = [lib_path,])
364 except KeyError:
365 pass
366
367 try:
368 trilinos_libs = env['trilinos_libs']
369 except KeyError:
370 trilinos_libs = []
371 else:
372 trilinos_libs = []
373
374
375 # ============= set umfpack (but only without MPI) =====================================
376 umfpack_libs=[ ]
377 if not useMPI:
378 try:
379 includes = env['umf_path']
380 env.Append(CPPPATH = [includes,])
381 except KeyError:
382 pass
383
384 try:
385 lib_path = env['umf_lib_path']
386 env.Append(LIBPATH = [lib_path,])
387 except KeyError:
388 pass
389
390 try:
391 umf_libs = env['umf_libs']
392 umfpack_libs+=umf_libs
393 except KeyError:
394 pass
395
396 try:
397 includes = env['ufc_path']
398 env.Append(CPPPATH = [includes,])
399 except KeyError:
400 pass
401
402 try:
403 includes = env['amd_path']
404 env.Append(CPPPATH = [includes,])
405 except KeyError:
406 pass
407
408 try:
409 lib_path = env['amd_lib_path']
410 env.Append(LIBPATH = [lib_path,])
411 except KeyError:
412 pass
413
414 try:
415 amd_libs = env['amd_libs']
416 umfpack_libs+=amd_libs
417 except KeyError:
418 pass
419
420 # ============= set blas =====================================
421 try:
422 includes = env['blas_path']
423 env.Append(CPPPATH = [includes,])
424 except KeyError:
425 pass
426
427 try:
428 lib_path = env['blas_lib_path']
429 env.Append(LIBPATH = [lib_path,])
430 except KeyError:
431 pass
432
433 try:
434 blas_libs = env['blas_libs']
435 except KeyError:
436 blas_libs = [ ]
437
438 # ============= set netcdf =====================================
439 try:
440 useNetCDF = env['useNetCDF']
441 except KeyError:
442 useNetCDF = 'yes'
443 pass
444
445 if not useNetCDF == 'yes':
446 print "Warning: Installation is not configured with netCDF. Some I/O function may not be available."
447
448 if useNetCDF == 'yes':
449 try:
450 includes = env['netCDF_path']
451 env.Append(CPPPATH = [includes,])
452 except KeyError:
453 pass
454
455 try:
456 lib_path = env['netCDF_lib_path']
457 env.Append(LIBPATH = [lib_path,])
458 except KeyError:
459 pass
460
461 try:
462 netCDF_libs_cxx = env['netCDF_libs_cxx']
463 except KeyError:
464 netCDF_libs_cxx = [ ]
465 else:
466 netCDF_libs_cxx=[ ]
467
468 # ============= set boost =====================================
469 try:
470 includes = env['boost_path']
471 env.Append(CPPPATH = [includes,])
472 except KeyError:
473 pass
474 try:
475 lib_path = env['boost_lib_path']
476 env.Append(LIBPATH = [lib_path,])
477 except KeyError:
478 pass
479 try:
480 boost_libs = env['boost_libs']
481 except KeyError:
482 boost_libs = [ ]
483 # ============= set python =====================================
484 try:
485 includes = env['python_path']
486 env.Append(CPPPATH = [includes,])
487 except KeyError:
488 pass
489 try:
490 lib_path = env['python_lib_path']
491 env.Append(LIBPATH = [lib_path,])
492 except KeyError:
493 pass
494 try:
495 python_libs = env['python_libs']
496 except KeyError:
497 python_libs = []
498
499 # ============= set mpi =====================================
500 if useMPI:
501 try:
502 includes = env['mpi_path']
503 env.Append(CPPPATH = [includes,])
504 except KeyError:
505 pass
506 try:
507 lib_path = env['mpi_lib_path']
508 env.Append(LIBPATH = [lib_path,])
509 except KeyError:
510 pass
511 try:
512 mpi_libs = env['mpi_libs']
513 except KeyError:
514 mpi_libs = []
515 try:
516 mpich_ignore_cxx_seek=env['MPICH_IGNORE_CXX_SEEK']
517 env.Append(CPPDEFINES = [ mpich_ignore_cxx_seek ] )
518 except KeyError:
519 pass
520
521 else:
522
523 mpi_libs=[]
524 # ============= set papi =====================================
525 try:
526 includes = env['papi_path']
527 env.Append(CPPPATH = [includes,])
528 except KeyError:
529 pass
530 try:
531 lib_path = env['papi_lib_path']
532 env.Append(LIBPATH = [lib_path,])
533 except KeyError:
534 pass
535 try:
536 papi_libs = env['papi_libs']
537 except KeyError:
538 papi_libs = None
539 try:
540 papi_instrument_solver = env['papi_instrument_solver']
541 except KeyError:
542 papi_instrument_solver = None
543
544
545 # ============= and some helpers =====================================
546 try:
547 doxygen_path = env['doxygen_path']
548 except KeyError:
549 doxygen_path = None
550 try:
551 epydoc_path = env['epydoc_path']
552 except KeyError:
553 epydoc_path = None
554 try:
555 src_zipfile = env.File(env['src_zipfile'])
556 except KeyError:
557 src_zipfile = None
558 try:
559 test_zipfile = env.File(env['test_zipfile'])
560 except KeyError:
561 test_zipfile = None
562 try:
563 examples_zipfile = env.File(env['examples_zipfile'])
564 except KeyError:
565 examples_zipfile = None
566
567 try:
568 src_tarfile = env.File(env['src_tarfile'])
569 except KeyError:
570 src_tarfile = None
571 try:
572 test_tarfile = env.File(env['test_tarfile'])
573 except KeyError:
574 test_tarfile = None
575 try:
576 examples_tarfile = env.File(env['examples_tarfile'])
577 except KeyError:
578 examples_tarfile = None
579
580 try:
581 guide_pdf = env.File(env['guide_pdf'])
582 except KeyError:
583 guide_pdf = None
584
585 try:
586 guide_html_index = env.File('index.htm',env['guide_html'])
587 except KeyError:
588 guide_html_index = None
589
590 try:
591 api_epydoc = env.Dir(env['api_epydoc'])
592 except KeyError:
593 api_epydoc = None
594
595
596
597 # Zipgets
598
599 env.Default(libinstall)
600 env.Default(incinstall)
601 env.Default(pyinstall)
602 env.Alias('release_src',[ src_zipfile, src_tarfile ])
603 env.Alias('release_tests',[ test_zipfile, test_tarfile])
604 env.Alias('release_examples',[ examples_zipfile, examples_tarfile])
605 env.Alias('api_epydoc',api_epydoc)
606 env.Alias('guide_pdf', guide_pdf)
607 env.Alias('docs',[ 'release_examples', 'guide_pdf', guide_html_index, api_epydoc])
608 env.Alias('release', ['release_src', 'release_tests', 'docs'])
609 env.Alias('build_tests') # target to build all C++ tests
610 env.Alias('build_py_tests') # target to build all python tests
611 env.Alias('build_all_tests', [ 'build_tests', 'build_py_tests' ] ) # target to build all python tests
612 env.Alias('run_tests', 'build_tests') # target to run all C++ test
613 env.Alias('py_tests', 'build_py_tests') # taget to run all released python tests
614 env.Alias('all_tests', ['run_tests', 'py_tests']) # target to run all C++ and released python tests
615
616 # Python install - esys __init__.py
617 init_target = env.Command(pyinstall+'/__init__.py', None, Touch('$TARGET'))
618 env.Alias(init_target)
619
620 # Allow sconscripts to see the env
621 Export(["env", "incinstall", "libinstall", "pyinstall", "dodebug", "mkl_libs", "scsl_libs", "umfpack_libs",
622 "blas_libs", "netCDF_libs_cxx", "trilinos_libs", "useNetCDF", "mpi_libs", "boost_libs", "python_libs",
623 "doxygen_path", "epydoc_path", "papi_libs", "papi_instrument_solver",
624 "sys_libs", "test_zipfile", "src_zipfile", "test_tarfile", "src_tarfile", "examples_tarfile", "examples_zipfile",
625 "guide_pdf", "guide_html_index", "api_epydoc", "useMPI"])
626
627 # End initialisation section
628 # Begin configuration section
629 # adds this file and the scons option directore to the source tar
630 release_srcfiles=[env.File('SConstruct'),]+[ env.File(x) for x in glob.glob('scons/*.py') ]
631 release_testfiles=[env.File('README_TESTS'),]
632 env.Zip(src_zipfile, release_srcfiles)
633 env.Zip(test_zipfile, release_testfiles)
634 env.Tar(src_tarfile, release_srcfiles)
635 env.Tar(test_tarfile, release_testfiles)
636
637 # Insert new components to be build here
638 # FIXME: might be nice to replace this verbosity with a list of targets and some
639 # FIXME: nifty python to create the lengthy but very similar env.Sconscript lines
640 # Third Party libraries
641 env.SConscript(dirs = ['tools/CppUnitTest/src'], build_dir='build/$PLATFORM/tools/CppUnitTest', duplicate=0)
642 # C/C++ Libraries
643 env.SConscript(dirs = ['paso/src'], build_dir='build/$PLATFORM/paso', duplicate=0)
644 # bruce is removed for now as it doesn't really do anything
645 # env.SConscript(dirs = ['bruce/src'], build_dir='build/$PLATFORM/bruce', duplicate=0)
646 env.SConscript(dirs = ['escript/src'], build_dir='build/$PLATFORM/escript', duplicate=0)
647 env.SConscript(dirs = ['esysUtils/src'], build_dir='build/$PLATFORM/esysUtils', duplicate=0)
648 env.SConscript(dirs = ['finley/src'], build_dir='build/$PLATFORM/finley', duplicate=0)
649 env.SConscript(dirs = ['modellib/py_src'], build_dir='build/$PLATFORM/modellib', duplicate=0)
650 env.SConscript(dirs = ['doc'], build_dir='build/$PLATFORM/doc', duplicate=0)
651 env.SConscript(dirs = ['pyvisi/py_src'], build_dir='build/$PLATFORM/pyvisi', duplicate=0)
652 env.SConscript(dirs = ['pycad/py_src'], build_dir='build/$PLATFORM/pycad', duplicate=0)
653
654 # added by Ben Cumming
655 env.SConscript(dirs = ['pythonMPI/src'], build_dir='build/$PLATFORM/pythonMPI', duplicate=0)
656 #env.SConscript(dirs = ['../test'], build_dir='../test/build', duplicate=0)

  ViewVC Help
Powered by ViewVC 1.1.26