/[escript]/trunk/SConstruct
ViewVC logotype

Annotation of /trunk/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log


Revision 965 - (hide annotations)
Tue Feb 13 05:38:45 2007 UTC (12 years, 8 months ago) by gross
File size: 19185 byte(s)
johns local setting removed.
1 jongui 961 # Copyright 2006 by ACcESS MNRF
2 jgs 214 #
3 matt 863 # 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 elspeth 643 #
8 matt 863 #
9     #
10 jgs 455
11 robwdcock 682 # top-level Scons configuration file for all esys13 modules
12     # Begin initialisation Section
13 matt 863 # all of this section just intialises default environments and helper
14 robwdcock 682 # scripts. You shouldn't need to modify this section.
15     EnsureSConsVersion(0,96,91)
16     EnsurePythonVersion(2,3)
17 jgs 214
18 gross 700 # import tools:
19     import glob
20 robwdcock 682 import sys, os
21 matt 863 import socket
22 robwdcock 682 # Add our extensions
23     if sys.path.count('scons')==0: sys.path.append('scons')
24     import scons_extensions
25 jgs 192
26 gross 805 # check if UMFPACK is installed on the system:
27 gross 806 if os.path.isdir('/opt/UMFPACK/Include') and os.path.isdir('/opt/UMFPACK/Lib'):
28 gross 805 umf_path_default='/opt/UMFPACK/Include'
29     umf_lib_path_default='/opt/UMFPACK/Lib'
30 gross 806 umf_libs_default=['umfpack']
31 gross 805 else:
32     umf_path_default=None
33     umf_lib_path_default=None
34     umf_libs_default=None
35 gross 806
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 gross 805 else:
41 gross 806 amd_path_default=None
42     amd_lib_path_default=None
43     amd_libs_default=None
44    
45     if os.path.isdir('/opt/UFconfig'):
46     ufc_path_default='/opt/UFconfig'
47     else:
48     ufc_path_default=None
49    
50 robwdcock 682 # Default options and options help text
51     # These are defaults and can be overridden using command line arguments or an options file.
52     # if the options_file or ARGUMENTS do not exist then the ones listed as default here are used
53     # DO NOT CHANGE THEM HERE
54     if ARGUMENTS.get('options_file',0):
55     options_file = ARGUMENTS.get('options_file',0)
56     else:
57     from string import ascii_letters,digits
58     hostname=""
59     for s in socket.gethostname().split('.')[0]:
60     if s in ascii_letters+digits:
61     hostname+=s
62     else:
63     hostname+="_"
64     options_file = "scons/"+hostname+"_options.py"
65 jgs 214
66 robwdcock 682 opts = Options(options_file, ARGUMENTS)
67     opts.AddOptions(
68     # Where to install esys stuff
69 matt 863 ('incinstall', 'where the esys headers will be installed', Dir('#.').abspath+'/include'),
70     ('libinstall', 'where the esys libraries will be installed', Dir('#.').abspath+'/lib'),
71     ('pyinstall', 'where the esys python modules will be installed', Dir('#.').abspath),
72     ('src_zipfile', 'the source zip file will be installed.', Dir('#.').abspath+"/release/escript_src.zip"),
73     ('test_zipfile', 'the test zip file will be installed.', Dir('#.').abspath+"/release/escript_tests.zip"),
74     ('src_tarfile', 'the source tar file will be installed.', Dir('#.').abspath+"/release/escript_src.tar.gz"),
75     ('test_tarfile', 'the test tar file will be installed.', Dir('#.').abspath+"/release/escript_tests.tar.gz"),
76     ('examples_tarfile', 'the examples tar file will be installed.', Dir('#.').abspath+"/release/doc/escript_examples.tar.gz"),
77     ('examples_zipfile', 'the examples zip file will be installed.', Dir('#.').abspath+"/release/doc/escript_examples.zip"),
78     ('guide_pdf', 'name of the user guide in pdf format', Dir('#.').abspath+"/release/doc/user/guide.pdf"),
79     ('api_epydoc', 'name of the epydoc api docs directory',Dir('#.').abspath+"/release/doc/epydoc"),
80     ('guide_html', 'name of the directory for user guide in html format', Dir('#.').abspath+"/release/doc/user/html"),
81 robwdcock 682 # Compilation options
82 gross 700 BoolOption('dodebug', 'Do you want a debug build?', 'no'),
83 robwdcock 682 ('options_file', "Optional file containing preferred options. Ignored if it doesn't exist (default: scons/hostname_options.py)", options_file),
84     ('cc_defines','C/C++ defines to use', None),
85 gross 700 ('cc_flags','C compiler flags to use (Release build)', '-O3 -std=c99 -ffast-math -fpic -Wno-unknown-pragmas'),
86     ('cc_flags_debug', 'C compiler flags to use (Debug build)', '-g -O0 -ffast-math -std=c99 -fpic -Wno-unknown-pragmas'),
87     ('cxx_flags', 'C++ compiler flags to use (Release build)', '--no-warn -ansi'),
88     ('cxx_flags_debug', 'C++ compiler flags to use (Debug build)', '--no-warn -ansi -DDOASSERT -DDOPROF'),
89 bcumming 759 ('cc_flags_MPI','C compiler flags to use (Release MPI build)', '-O3 -ftz -IPF_ftlacc- -IPF_fma -fno-alias -fno-alias -c99 -w1 -fpic -wd161'),
90     ('cc_flags_debug_MPI', 'C compiler flags to use (Debug MPI build)', '-g -O0 -c99 -w1 -fpic -wd161'),
91     ('cxx_flags_MPI', 'C++ compiler flags to use (Release MPI build)', '-ansi -wd1563 -wd161'),
92     ('cxx_flags_debug_MPI', 'C++ compiler flags to use (Debug MPI build)', '-ansi -DDOASSERT -DDOPROF -wd1563 -wd161'),
93 robwdcock 682 ('ar_flags', 'Static library archiver flags to use', None),
94     ('sys_libs', 'System libraries to link with', None),
95 gross 700 ('tar_flags','flags for zip files','-c -z'),
96 robwdcock 682 # MKL
97 matt 863 PathOption('mkl_path', 'Path to MKL includes', None),
98     PathOption('mkl_lib_path', 'Path to MKL libs', None),
99 robwdcock 682 ('mkl_libs', 'MKL libraries to link with', None),
100     # SCSL
101 matt 863 PathOption('scsl_path', 'Path to SCSL includes', None),
102     PathOption('scsl_lib_path', 'Path to SCSL libs', None),
103 robwdcock 682 ('scsl_libs', 'SCSL libraries to link with', None),
104 bcumming 759 ('scsl_libs_MPI', 'SCSL libraries to link with for MPI build', None),
105 matt 863 # UMFPACK
106     PathOption('ufc_path', 'Path to UFconfig includes', ufc_path_default),
107     PathOption('umf_path', 'Path to UMFPACK includes', umf_path_default),
108     PathOption('umf_lib_path', 'Path to UMFPACK libs', umf_lib_path_default),
109 gross 806 ('umf_libs', 'UMFPACK libraries to link with', umf_libs_default),
110     # AMD (used by UMFPACK)
111 matt 863 PathOption('amd_path', 'Path to AMD includes', amd_path_default),
112     PathOption('amd_lib_path', 'Path to AMD libs', amd_lib_path_default),
113 gross 806 ('amd_libs', 'AMD libraries to link with', amd_libs_default),
114 gross 805 # BLAS
115 matt 863 PathOption('blas_path', 'Path to BLAS includes', None),
116     PathOption('blas_lib_path', 'Path to BLAS libs', None),
117 gross 806 ('blas_libs', 'BLAS libraries to link with', None),
118 gross 950 # netCDF
119 gross 965 PathOption('netCDF_path', 'Path to netCDF includes', '/usr/local/include'),
120     PathOption('netCDF_lib_path', 'Path to netCDF libs', '/usr/local/lib'),
121 gross 950 ('netCDF_libs_cxx', 'netCDF C++ libraries to link with', [ 'netcdf_c++', 'netcdf'] ),
122 robwdcock 682 # Python
123 gross 685 # locations of include files for python
124 matt 863 PathOption('python_path', 'Path to Python includes', '/usr/include/python%s.%s'%(sys.version_info[0],sys.version_info[1])),
125     PathOption('python_lib_path', 'Path to Python libs', '/usr/lib'),
126 gross 685 ('python_lib', 'Python libraries to link with', ["python%s.%s"%(sys.version_info[0],sys.version_info[1]),]),
127 robwdcock 682 # Boost
128 matt 863 PathOption('boost_path', 'Path to Boost includes', '/usr/include'),
129     PathOption('boost_lib_path', 'Path to Boost libs', '/usr/lib'),
130 robwdcock 682 ('boost_lib', 'Boost libraries to link with', ['boost_python',]),
131     # Doc building
132 matt 863 # PathOption('doxygen_path', 'Path to Doxygen executable', None),
133     # PathOption('epydoc_path', 'Path to Epydoc executable', None),
134 robwdcock 682 # PAPI
135 matt 863 PathOption('papi_path', 'Path to PAPI includes', None),
136     PathOption('papi_lib_path', 'Path to PAPI libs', None),
137 robwdcock 682 ('papi_libs', 'PAPI libraries to link with', None),
138 bcumming 759 # MPI
139     BoolOption('useMPI', 'Compile parallel version using MPI', 'no'),
140 robwdcock 682 )
141    
142     # Initialise Scons Build Environment
143     # check for user environment variables we are interested in
144     try:
145     python_path = os.environ['PYTHONPATH']
146     except KeyError:
147     python_path = ''
148     try:
149     path = os.environ['PATH']
150     except KeyError:
151     path = ''
152     try:
153     ld_library_path = os.environ['LD_LIBRARY_PATH']
154     except KeyError:
155     ld_library_path = ''
156    
157     # Note: On the Altix the intel compilers are not automatically
158     # detected by scons intelc.py script. The Altix has a different directory
159     # path and in some locations the "modules" facility is used to support
160     # multiple compiler versions. This forces the need to import the users PATH
161     # environment which isn't the "scons way"
162     # 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)
163     # FIXME: Perhaps a modification to intelc.py will allow better support for ia64 on altix
164 matt 863
165 robwdcock 682 if os.name != "nt" and os.uname()[4]=='ia64':
166 robwdcock 688 env = Environment(ENV = {'PATH':path}, tools = ['default', 'intelc'], options = opts)
167 robwdcock 684 env['ENV']['PATH'] = path
168     env['ENV']['LD_LIBRARY_PATH'] = ld_library_path
169     env['ENV']['PYTHONPATH'] = python_path
170 robwdcock 682 if env['CXX'] == 'icpc':
171     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
172     elif os.name == "nt":
173 robwdcock 684 env = Environment(tools = ['default', 'intelc'], options = opts)
174     env['ENV']['PYTHONPATH'] = python_path
175 robwdcock 682 else:
176 robwdcock 684 env = Environment(tools = ['default'], options = opts)
177     env['ENV']['PATH'] = path
178     env['ENV']['LD_LIBRARY_PATH'] = ld_library_path
179     env['ENV']['PYTHONPATH'] = python_path
180 robwdcock 682
181     # Setup help for options
182     Help(opts.GenerateHelpText(env))
183    
184     # Add some customer builders
185     py_builder = Builder(action = scons_extensions.build_py, suffix = '.pyc', src_suffix = '.py', single_source=True)
186     env.Append(BUILDERS = {'PyCompile' : py_builder});
187    
188     if env['PLATFORM'] == "win32":
189     runUnitTest_builder = Builder(action = scons_extensions.runUnitTest, suffix = '.passed', src_suffix='.exe', single_source=True)
190     else:
191     runUnitTest_builder = Builder(action = scons_extensions.runUnitTest, suffix = '.passed', single_source=True)
192     env.Append(BUILDERS = {'RunUnitTest' : runUnitTest_builder});
193    
194     runPyUnitTest_builder = Builder(action = scons_extensions.runPyUnitTest, suffix = '.passed', src_suffic='.py', single_source=True)
195     env.Append(BUILDERS = {'RunPyUnitTest' : runPyUnitTest_builder});
196    
197     # Convert the options which are held in environment variable into python variables for ease of handling and configure compilation options
198     try:
199     incinstall = env['incinstall']
200     env.Append(CPPPATH = [incinstall,])
201     except KeyError:
202 matt 863 incinstall = None
203 robwdcock 682 try:
204     libinstall = env['libinstall']
205     env.Append(LIBPATH = [libinstall,])
206     env.PrependENVPath('LD_LIBRARY_PATH', libinstall)
207 woo409 757 if env['PLATFORM'] == "win32":
208     env.PrependENVPath('PATH', libinstall)
209     env.PrependENVPath('PATH', env['boost_lib_path'])
210 robwdcock 682 except KeyError:
211 matt 863 libinstall = None
212 robwdcock 682 try:
213     pyinstall = env['pyinstall']+'/esys' # all targets will install into pyinstall/esys but PYTHONPATH points at straight pyinstall so you go import esys.escript etc
214     env.PrependENVPath('PYTHONPATH', env['pyinstall'])
215     except KeyError:
216 matt 863 pyinstall = None
217 robwdcock 682 try:
218     dodebug = env['dodebug']
219     except KeyError:
220 matt 863 dodebug = None
221 robwdcock 682 try:
222 bcumming 759 useMPI = env['useMPI']
223     except KeyError:
224 matt 863 useMPI = None
225 bcumming 759 try:
226 robwdcock 682 cc_defines = env['cc_defines']
227 woo409 757 env.Append(CPPDEFINES = cc_defines)
228 robwdcock 682 except KeyError:
229     pass
230 ksteube 817
231     if 'shake71' == socket.gethostname().split('.')[0]:
232     if useMPI:
233     env['CC'] = 'mpicc'
234     env['CXX'] = 'mpiCC'
235    
236 robwdcock 682 if dodebug:
237 bcumming 759 if useMPI:
238     try:
239     flags = env['cc_flags_debug_MPI']
240     env.Append(CCFLAGS = flags)
241     except KeyError:
242     pass
243 matt 863 else:
244 bcumming 759 try:
245 robwdcock 682 flags = env['cc_flags_debug']
246     env.Append(CCFLAGS = flags)
247 bcumming 759 except KeyError:
248 robwdcock 682 pass
249     else:
250 bcumming 759 if useMPI:
251 robwdcock 682 try:
252 bcumming 759 flags = env['cc_flags_MPI']
253     env.Append(CCFLAGS = flags)
254     except KeyError:
255     pass
256     else:
257     try:
258 robwdcock 682 flags = env['cc_flags']
259     env.Append(CCFLAGS = flags)
260     except KeyError:
261     pass
262     if dodebug:
263 bcumming 759 if useMPI:
264     try:
265     flags = env['cxx_flags_debug_MPI']
266     env.Append(CXXFLAGS = flags)
267     except KeyError:
268     pass
269     else:
270     try:
271     flags = env['cxx_flags_debug']
272     env.Append(CXXFLAGS = flags)
273     except KeyError:
274     pass
275 robwdcock 682 else:
276 bcumming 759 if useMPI:
277     try:
278     flags = env['cxx_flags_MPI']
279     env.Append(CXXFLAGS = flags)
280     except KeyError:
281     pass
282     else:
283     try:
284     flags = env['cxx_flags']
285     env.Append(CXXFLAGS = flags)
286     except KeyError:
287     pass
288 robwdcock 682 try:
289     flags = env['ar_flags']
290     env.Append(ARFLAGS = flags)
291     except KeyError:
292 matt 863 ar_flags = None
293 robwdcock 682 try:
294     sys_libs = env['sys_libs']
295     except KeyError:
296 matt 863 sys_libs = ''
297 robwdcock 682
298     try:
299 gross 700 tar_flags = env['tar_flags']
300     env.Replace(TARFLAGS = tar_flags)
301     except KeyError:
302     pass
303    
304     try:
305 robwdcock 682 includes = env['mkl_path']
306     env.Append(CPPPATH = [includes,])
307     except KeyError:
308     pass
309 gross 700
310 robwdcock 682 try:
311     lib_path = env['mkl_lib_path']
312     env.Append(LIBPATH = [lib_path,])
313     except KeyError:
314     pass
315 gross 700
316 gross 806 if useMPI:
317 robwdcock 682 mkl_libs = ''
318 gross 806 else:
319     try:
320     mkl_libs = env['mkl_libs']
321     except KeyError:
322     mkl_libs = ''
323    
324 robwdcock 682 try:
325     includes = env['scsl_path']
326     env.Append(CPPPATH = [includes,])
327     except KeyError:
328     pass
329 gross 806
330 robwdcock 682 try:
331     lib_path = env['scsl_lib_path']
332     env.Append(LIBPATH = [lib_path,])
333     except KeyError:
334     pass
335 gross 806
336 matt 863 if useMPI:
337 bcumming 759 try:
338     scsl_libs = env['scsl_libs_MPI']
339     except KeyError:
340     scsl_libs = ''
341 matt 863 else:
342 bcumming 759 try:
343     scsl_libs = env['scsl_libs']
344     except KeyError:
345     scsl_libs = ''
346 gross 805
347 robwdcock 682 try:
348     includes = env['umf_path']
349     env.Append(CPPPATH = [includes,])
350     except KeyError:
351     pass
352 gross 805
353 robwdcock 682 try:
354     lib_path = env['umf_lib_path']
355     env.Append(LIBPATH = [lib_path,])
356     except KeyError:
357     pass
358 gross 805
359 matt 863 if useMPI:
360 gross 806 umf_libs = ''
361     else:
362     try:
363     umf_libs = env['umf_libs']
364     except KeyError:
365     umf_libs = ''
366    
367 robwdcock 682 try:
368 gross 806 includes = env['ufc_path']
369     env.Append(CPPPATH = [includes,])
370 gross 805 except KeyError:
371     pass
372    
373     try:
374 gross 806 includes = env['amd_path']
375     env.Append(CPPPATH = [includes,])
376 robwdcock 682 except KeyError:
377 gross 806 pass
378 gross 805
379 robwdcock 682 try:
380 gross 806 lib_path = env['amd_lib_path']
381     env.Append(LIBPATH = [lib_path,])
382     except KeyError:
383     pass
384    
385 matt 863 if useMPI:
386 gross 806 amd_libs = ''
387     else:
388     try:
389     amd_libs = env['amd_libs']
390     except KeyError:
391     amd_libs = ''
392    
393     try:
394 gross 805 includes = env['blas_path']
395     env.Append(CPPPATH = [includes,])
396     except KeyError:
397     pass
398 gross 806
399 gross 805 try:
400     lib_path = env['blas_lib_path']
401     env.Append(LIBPATH = [lib_path,])
402     except KeyError:
403     pass
404 gross 806
405 gross 805 try:
406     blas_libs = env['blas_libs']
407     except KeyError:
408     blas_libs = ''
409    
410     try:
411 gross 950 includes = env['netCDF_path']
412     env.Append(CPPPATH = [includes,])
413     except KeyError:
414     pass
415    
416     try:
417     lib_path = env['netCDF_lib_path']
418     env.Append(LIBPATH = [lib_path,])
419     except KeyError:
420     pass
421    
422     try:
423     netCDF_libs_cxx = env['netCDF_libs_cxx']
424     except KeyError:
425     netCDF_lib_cxx = [ ]
426    
427     try:
428 robwdcock 682 includes = env['boost_path']
429     env.Append(CPPPATH = [includes,])
430     except KeyError:
431     pass
432     try:
433     lib_path = env['boost_lib_path']
434     env.Append(LIBPATH = [lib_path,])
435     except KeyError:
436     pass
437     try:
438     boost_lib = env['boost_lib']
439     except KeyError:
440 matt 863 boost_lib = None
441 robwdcock 682 try:
442     includes = env['python_path']
443     env.Append(CPPPATH = [includes,])
444     except KeyError:
445     pass
446     try:
447     lib_path = env['python_lib_path']
448     env.Append(LIBPATH = [lib_path,])
449     except KeyError:
450     pass
451     try:
452     python_lib = env['python_lib']
453     except KeyError:
454 matt 863 python_lib = None
455 robwdcock 682 try:
456     doxygen_path = env['doxygen_path']
457     except KeyError:
458 matt 863 doxygen_path = None
459 robwdcock 682 try:
460     epydoc_path = env['epydoc_path']
461     except KeyError:
462 matt 863 epydoc_path = None
463 robwdcock 682 try:
464     includes = env['papi_path']
465     env.Append(CPPPATH = [includes,])
466     except KeyError:
467     pass
468     try:
469     lib_path = env['papi_lib_path']
470     env.Append(LIBPATH = [lib_path,])
471     except KeyError:
472     pass
473     try:
474     papi_libs = env['papi_libs']
475     except KeyError:
476 matt 863 papi_libs = None
477 robwdcock 682
478 gross 707
479 gross 700 try:
480 gross 707 src_zipfile = env.File(env['src_zipfile'])
481 gross 700 except KeyError:
482 matt 863 src_zipfile = None
483 gross 700 try:
484 gross 707 test_zipfile = env.File(env['test_zipfile'])
485 gross 700 except KeyError:
486 matt 863 test_zipfile = None
487 gross 707 try:
488     examples_zipfile = env.File(env['examples_zipfile'])
489     except KeyError:
490 matt 863 examples_zipfile = None
491 gross 700
492     try:
493 gross 707 src_tarfile = env.File(env['src_tarfile'])
494 gross 700 except KeyError:
495 matt 863 src_tarfile = None
496 gross 700 try:
497 gross 707 test_tarfile = env.File(env['test_tarfile'])
498 gross 700 except KeyError:
499 matt 863 test_tarfile = None
500 gross 707 try:
501     examples_tarfile = env.File(env['examples_tarfile'])
502     except KeyError:
503 matt 863 examples_tarfile = None
504 gross 700
505     try:
506 gross 707 guide_pdf = env.File(env['guide_pdf'])
507 gross 700 except KeyError:
508 matt 863 guide_pdf = None
509 gross 700
510 gross 707 try:
511     guide_html_index = env.File('index.htm',env['guide_html'])
512     except KeyError:
513 matt 863 guide_html_index = None
514 gross 707
515 elspeth 712 try:
516     api_epydoc = env.Dir(env['api_epydoc'])
517     except KeyError:
518 matt 863 api_epydoc = None
519 elspeth 712
520 gross 700 # Zipgets
521 matt 863
522 robwdcock 682 env.Default(libinstall)
523     env.Default(incinstall)
524     env.Default(pyinstall)
525 matt 863 env.Alias('release_src',[ src_zipfile, src_tarfile ])
526 gross 700 env.Alias('release_tests',[ test_zipfile, test_tarfile])
527 gross 707 env.Alias('release_examples',[ examples_zipfile, examples_tarfile])
528 gross 720 env.Alias('api_epydoc',api_epydoc)
529 gross 807 env.Alias('guide_pdf', guide_pdf)
530     env.Alias('docs',[ 'release_examples', 'guide_pdf', guide_html_index, api_epydoc])
531 gross 707 env.Alias('release', ['release_src', 'release_tests', 'docs'])
532 gross 705 env.Alias('build_tests') # target to build all C++ tests
533     env.Alias('build_py_tests') # target to build all python tests
534 gross 706 env.Alias('build_all_tests', [ 'build_tests', 'build_py_tests' ] ) # target to build all python tests
535     env.Alias('run_tests', 'build_tests') # target to run all C++ test
536     env.Alias('py_tests', 'build_py_tests') # taget to run all released python tests
537 gross 705 env.Alias('all_tests', ['run_tests', 'py_tests']) # target to run all C++ and released python tests
538 robwdcock 682
539     # Python install - esys __init__.py
540 woo409 757 init_target = env.Command(pyinstall+'/__init__.py', None, Touch('$TARGET'))
541     env.Alias(init_target)
542 robwdcock 682
543     # Allow sconscripts to see the env
544 gross 950 Export(["env", "incinstall", "libinstall", "pyinstall", "dodebug", "mkl_libs", "scsl_libs", "umf_libs", "amd_libs", "blas_libs", "netCDF_libs_cxx",
545 matt 863 "boost_lib", "python_lib", "doxygen_path", "epydoc_path", "papi_libs",
546 gross 707 "sys_libs", "test_zipfile", "src_zipfile", "test_tarfile", "src_tarfile", "examples_tarfile", "examples_zipfile",
547 bcumming 759 "guide_pdf", "guide_html_index", "api_epydoc", "useMPI"])
548 robwdcock 682
549     # End initialisation section
550     # Begin configuration section
551 gross 700 # adds this file and the scons option directore to the source tar
552     release_srcfiles=[env.File('SConstruct'),]+[ env.File(x) for x in glob.glob('scons/*.py') ]
553     release_testfiles=[env.File('README_TESTS'),]
554 gross 706 env.Zip(src_zipfile, release_srcfiles)
555 gross 700 env.Zip(test_zipfile, release_testfiles)
556     env.Tar(src_tarfile, release_srcfiles)
557     env.Tar(test_tarfile, release_testfiles)
558    
559 robwdcock 682 # Insert new components to be build here
560     # FIXME: might be nice to replace this verbosity with a list of targets and some
561     # FIXME: nifty python to create the lengthy but very similar env.Sconscript lines
562     # Third Party libraries
563     env.SConscript(dirs = ['tools/CppUnitTest/src'], build_dir='build/$PLATFORM/tools/CppUnitTest', duplicate=0)
564     # C/C++ Libraries
565     env.SConscript(dirs = ['paso/src'], build_dir='build/$PLATFORM/paso', duplicate=0)
566 gross 958 # bruce is removed for now as it doesn't really do anything
567     # env.SConscript(dirs = ['bruce/src'], build_dir='build/$PLATFORM/bruce', duplicate=0)
568 robwdcock 682 env.SConscript(dirs = ['escript/src'], build_dir='build/$PLATFORM/escript', duplicate=0)
569     env.SConscript(dirs = ['esysUtils/src'], build_dir='build/$PLATFORM/esysUtils', duplicate=0)
570     env.SConscript(dirs = ['finley/src'], build_dir='build/$PLATFORM/finley', duplicate=0)
571     env.SConscript(dirs = ['modellib/py_src'], build_dir='build/$PLATFORM/modellib', duplicate=0)
572 gross 707 env.SConscript(dirs = ['doc'], build_dir='build/$PLATFORM/doc', duplicate=0)
573 matt 863 env.SConscript(dirs = ['pyvisi/py_src'], build_dir='build/$PLATFORM/pyvisi', duplicate=0)
574 gross 898 env.SConscript(dirs = ['pycad/py_src'], build_dir='build/$PLATFORM/pycad', duplicate=0)
575 bcumming 751
576     # added by Ben Cumming
577 matt 863 env.SConscript(dirs = ['pythonMPI/src'], build_dir='build/$PLATFORM/pythonMPI', duplicate=0)
578 bcumming 784 #env.SConscript(dirs = ['../test'], build_dir='../test/build', duplicate=0)

  ViewVC Help
Powered by ViewVC 1.1.26