/[escript]/branches/scons-dev/SConstruct
ViewVC logotype

Contents of /branches/scons-dev/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1653 - (show annotations)
Wed Jul 16 00:31:11 2008 UTC (11 years, 8 months ago) by ksteube
File size: 20073 byte(s)
New scons scripts now work with scons-98 as well as scons-96...only
had to use env.Clone() instead of env.Copy().

Added copyright to each scons file.

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 # TODO use Install() to install python files instead of custom builder build_py?
9 # TODO How to modify CCFLAGS for only one file? Look for example with Program(...)
10 # TODO use USE_VTK in saveVTK to enable/disable this method
11 # TODO set CPPDEFINES and CXXDEFINES the same
12 # TODO configure for both 96.91 and 98.03
13
14 EnsureSConsVersion(0,96,91)
15 EnsurePythonVersion(2,3)
16
17 import sys, os, re, socket
18
19 # Add our extensions
20 if os.path.isdir('scons'): sys.path.append('scons')
21 import scons_extensions
22
23 # The string python2.4 or python2.5
24 python_version = 'python%s.%s' % (sys.version_info[0], sys.version_info[1])
25
26 # Which /usr/lib? Prefer /usr/lib64 if available for 64-bit systems
27 usr_lib = '/usr/lib'
28 if os.path.isdir('/usr/lib64'): usr_lib = '/usr/lib64'
29
30 # MS Windows support, many thanks to PH
31 IS_WINDOWS_PLATFORM = (os.name== "nt")
32
33 prefix = ARGUMENTS.get('prefix', Dir('#.').abspath)
34 print "Install prefix is: ", prefix
35
36 # Read configuration options from file scons/<hostname>_options.py
37 hostname = re.sub("[^0-9a-zA-Z]", "_", socket.gethostname().split('.')[0])
38 tmp = os.path.join("scons",hostname+"_options.py")
39 options_file = ARGUMENTS.get('options_file', tmp)
40 if not os.path.isfile(options_file): options_file = False
41
42 # Is setting options based on compiler name adequate instead of these?
43 # If scons/<hostname>_options.py not found try to specify defaults based on OS
44 #if not options_file:
45 # if IS_WINDOWS_PLATFORM:
46 # options_file = "scons/windows_mscv71_options.py"
47 # else:
48 # options_file = "scons/linux_gcc_eg_options.py"
49
50 # Load options file and command-line arguments
51 opts = Options(options_file, ARGUMENTS)
52
53 #==============================================================================================
54 # Default options and options help text
55 # These are defaults and can be overridden using command line arguments or an options file.
56 # if the options_file or ARGUMENTS do not exist then the ones listed as default here are used
57 # DO NOT CHANGE THEM HERE
58 opts.AddOptions(
59 # Where to install esys stuff
60 ('incinstall', 'where the esys headers will be installed', Dir('#.').abspath+'/include'),
61 ('libinstall', 'where the esys libraries will be installed', os.path.join(prefix,"lib")),
62 ('pyinstall', 'where the esys python modules will be installed', os.path.join(prefix,"esys")),
63 # Compilation options
64 BoolOption('dodebug', 'For backwards compatibility', 'no'),
65 BoolOption('usedebug', 'Do you want a debug build?', 'no'),
66 BoolOption('usevtk', 'Do you want to use VTK?', 'yes'),
67 ('options_file', "File of paths/options. Default: scons/<hostname>_options.py", options_file),
68 ('cc_defines','C/C++ defines to use', None),
69
70 ('cc_flags', 'C compiler flags to use', '-DEFAULT_1'),
71 ('cp_flags', 'C++ compiler flags to use', '-DEFAULT_2'),
72 ('cc_optim', 'C compiler optimization flags to use', '-DEFAULT_3'),
73 ('cp_optim', 'C++ compiler optimization flags to use', '-DEFAULT_4'),
74 ('cc_debug', 'C compiler debug flags to use', '-DEFAULT_5'),
75 ('cp_debug', 'C++ compiler debug flags to use', '-DEFAULT_6'),
76 ('omp_flags', 'OpenMP compiler flags to use (Release build)', '-DEFAULT_7'),
77 ('omp_flags_debug', 'OpenMP compiler flags to use (Debug build)', '-DEFAULT_8'),
78 ('sys_libs', 'System libraries to link with', []),
79 ('ar_flags', 'Static library archiver flags to use', ''),
80 # Python
81 PathOption('python_path', 'Path to Python includes', '/usr/include/'+python_version),
82 PathOption('python_lib_path', 'Path to Python libs', usr_lib),
83 ('python_lib', 'Python libraries to link with', [python_version]),
84 ('python_cmd', 'Python command', 'python'),
85 # Boost
86 PathOption('boost_path', 'Path to Boost includes', "/usr/include"),
87 PathOption('boost_lib_path', 'Path to Boost libs', usr_lib),
88 ('boost_lib', 'Boost libraries to link with', ['boost_python']),
89 # NetCDF
90 BoolOption('usenetcdf', 'switch on/off the usage of netCDF', 'yes'),
91 PathOption('netCDF_path', 'Path to netCDF includes', '/usr/include'),
92 PathOption('netCDF_lib_path', 'Path to netCDF libs', usr_lib),
93 ('netCDF_libs', 'netCDF C++ libraries to link with', ['netcdf_c++', 'netcdf']),
94 # MPI
95 BoolOption('useMPI', 'For backwards compatibility', 'no'),
96 BoolOption('usempi', 'Compile parallel version using MPI', 'no'),
97 ('MPICH_IGNORE_CXX_SEEK', 'name of macro to ignore MPI settings of C++ SEEK macro (for MPICH)' , 'MPICH_IGNORE_CXX_SEEK'),
98 PathOption('mpi_path', 'Path to MPI includes', '/usr/include'),
99 ('mpi_run', 'mpirun name' , 'mpiexec -np 1'),
100 PathOption('mpi_lib_path', 'Path to MPI libs (needs to be added to the LD_LIBRARY_PATH)', usr_lib),
101 ('mpi_libs', 'MPI libraries to link with (needs to be shared!)', ['mpich' , 'pthread', 'rt']),
102 # ParMETIS
103 BoolOption('useparmetis', 'Compile parallel version using ParMETIS', 'yes'),
104 ('parmetis_path', 'Path to ParMETIS includes', '/usr/include'),
105 ('parmetis_lib_path', 'Path to ParMETIS library', usr_lib),
106 ('parmetis_libs', 'ParMETIS library to link with', []),
107 # PAPI
108 PathOption('papi_path', 'Path to PAPI includes', None),
109 PathOption('papi_lib_path', 'Path to PAPI libs', None),
110 ('papi_libs', 'PAPI libraries to link with', []),
111 BoolOption('papi_instrument_solver', 'use PAPI in Solver.c to instrument each iteration of the solver', False),
112 # MKL
113 PathOption('mkl_path', 'Path to MKL includes', None),
114 PathOption('mkl_lib_path', 'Path to MKL libs', None),
115 ('mkl_libs', 'MKL libraries to link with', []),
116 # SCSL
117 PathOption('scsl_path', 'Path to SCSL includes', None),
118 PathOption('scsl_lib_path', 'Path to SCSL libs', None),
119 ('scsl_libs', 'SCSL libraries to link with', []),
120 ('scsl_libs_MPI', 'SCSL libraries to link with for MPI build', []),
121 # UMFPACK
122 PathOption('ufc_path', 'Path to UFconfig includes', '/usr/include'),
123 PathOption('umf_path', 'Path to UMFPACK includes', '/usr/include'),
124 PathOption('umf_lib_path', 'Path to UMFPACK libs', usr_lib),
125 ('umf_libs', 'UMFPACK libraries to link with', []),
126 # AMD (used by UMFPACK)
127 PathOption('amd_path', 'Path to AMD includes', '/usr/include'),
128 PathOption('amd_lib_path', 'Path to AMD libs', usr_lib),
129 ('amd_libs', 'AMD libraries to link with', []),
130 # BLAS
131 PathOption('blas_path', 'Path to BLAS includes', None),
132 PathOption('blas_lib_path', 'Path to BLAS libs', None),
133 ('blas_libs', 'BLAS libraries to link with', []),
134 )
135
136 # Specify which compilers to use (intelc uses regular expressions
137 # improperly and emits a warning about failing to find the compilers.
138 # It can be safely ignored)
139
140 if IS_WINDOWS_PLATFORM:
141 env = Environment(tools = ['default', 'msvc'], options = opts)
142 else:
143 if socket.gethostname().split('.')[0] == 'service0':
144 env = Environment(tools = ['default', 'intelc'], options = opts)
145 elif os.uname()[4]=='ia64':
146 env = Environment(tools = ['default', 'intelc'], options = opts)
147 if env['CXX'] == 'icpc':
148 env['LINK'] = env['CXX'] # version >=9 of intel c++ compiler requires use of icpc to link in C++ runtimes (icc does not)
149 else:
150 env = Environment(tools = ['default'], options = opts)
151 Help(opts.GenerateHelpText(env))
152
153 # Default compiler options (override allowed in hostname_options.py, but should not be necessary)
154 if env["CC"] == "icc":
155 # Intel compilers
156 cc_flags = "-ansi -wd161 -w1 -vec-report0 -DBLOCKTIMER -DCORE_ID1"
157 cp_flags = "-ansi -wd161"
158 cc_optim = "-O3 -ftz -IPF_ftlacc- -IPF_fma -fno-alias"
159 cp_optim = "-O3 -ftz -IPF_ftlacc- -IPF_fma -fno-alias"
160 cc_debug = "-g -O0 -UDOASSERT -DDOPROF"
161 cp_debug = "-g -O0 -UDOASSERT -DDOPROF"
162 omp_flags = "-openmp -openmp_report0"
163 omp_flags_debug = "-openmp -openmp_report0"
164 elif env["CC"] == "gcc":
165 # GNU C on any system
166 cc_flags = "-ansi -ffast-math -Wno-unknown-pragmas -pedantic-errors -Wno-long-long -DBLOCKTIMER"
167 cp_flags = "-ansi --no-warn"
168 cc_optim = "-O3"
169 cp_optim = "-O3"
170 cc_debug = "-g -O0 -UDOASSERT -DDOPROF"
171 cp_debug = "-g -O0 -UDOASSERT -DDOPROF"
172 omp_flags = ""
173 omp_flags_debug = ""
174 elif env["CC"] == "cl":
175 # Microsoft Visual C on Windows
176 cc_flags = "/FD /EHsc /GR /wd4068 -D_USE_MATH_DEFINES -DDLL_NETCDF"
177 cp_flags = "/FD /EHsc /GR /wd4068"
178 cc_optim = "/O2 /Op /MT /W3"
179 cp_optim = "/O2 /Op /MT /W3"
180 cc_debug = "/Od /RTC1 /MTd /ZI"
181 cp_debug = "/Od /RTC1 /MTd /ZI"
182 omp_flags = ""
183 omp_flags_debug = ""
184
185 # If not specified in hostname_options.py then set them here
186 if env["cc_flags"] == "-DEFAULT_1": env['cc_flags'] = cc_flags
187 if env["cp_flags"] == "-DEFAULT_2": env['cp_flags'] = cp_flags
188 if env["cc_optim"] == "-DEFAULT_3": env['cc_optim'] = cc_optim
189 if env["cp_optim"] == "-DEFAULT_4": env['cp_optim'] = cp_optim
190 if env["cc_debug"] == "-DEFAULT_5": env['cc_debug'] = cc_debug
191 if env["cp_debug"] == "-DEFAULT_6": env['cp_debug'] = cp_debug
192 if env["omp_flags"] == "-DEFAULT_7": env['omp_flags'] = omp_flags
193 if env["omp_flags_debug"] == "-DEFAULT_8": env['omp_flags_debug'] = omp_flags_debug
194
195 # Get the global Subversion revision number for getVersion() method
196 try:
197 global_revision = os.popen("svnversion -n .").read()
198 global_revision = re.sub(":.*", "", global_revision)
199 global_revision = re.sub("[^0-9]", "", global_revision)
200 except:
201 global_revision="-1"
202 if global_revision == "": global_revision="-2"
203 env.Append(CPPDEFINES = ["SVN_VERSION="+global_revision])
204
205 ############ Copy environment variables into scons env #########
206
207 try: env['ENV']['OMP_NUM_THREADS'] = os.environ['OMP_NUM_THREADS']
208 except KeyError: env['ENV']['OMP_NUM_THREADS'] = 1
209
210 try: env['ENV']['PATH'] = os.environ['PATH']
211 except KeyError: pass
212
213 try: env['ENV']['PYTHONPATH'] = os.environ['PYTHONPATH']
214 except KeyError: pass
215
216 try: env['ENV']['LD_LIBRARY_PATH'] = os.environ['LD_LIBRARY_PATH']
217 except KeyError: pass
218
219 try: env['ENV']['LIBRARY_PATH'] = os.environ['LIBRARY_PATH']
220 except KeyError: pass
221
222 try: env['ENV']['DISPLAY'] = os.environ['DISPLAY']
223 except KeyError: pass
224
225 try: env['ENV']['XAUTHORITY'] = os.environ['XAUTHORITY']
226 except KeyError: pass
227
228 try: env['ENV']['HOME'] = os.environ['HOME']
229 except KeyError: pass
230
231 # A few creature conveniences
232 libinstall = env['libinstall']
233 incinstall = env['incinstall']
234 pyinstall = env['pyinstall']
235 sys_libs = env['sys_libs']
236
237 # Configure for test suite: python run_testname.py
238 env.PrependENVPath('PYTHONPATH', prefix)
239 env.PrependENVPath('LD_LIBRARY_PATH', libinstall)
240
241 # Backwards compatibility (we now use usedebug=yes and usempi=yes)
242 if env['dodebug']: env['usedebug'] = 1
243 if env['useMPI']: env['usempi'] = 1
244
245 ############ Set up paths for Configure() ######################
246
247 # Add gcc option -I<Escript>/trunk/include
248 env.Append(CPPPATH = [Dir('include')])
249
250 # Add gcc option -L<Escript>/trunk/lib
251 env.Append(LIBPATH = [Dir('lib')])
252
253 # Create a Configure() environment only for checking existence of
254 # libraries and headers. Later we throw it away then build the real
255 # environment.
256 try:
257 conf = Configure(env.Clone()) # scons-98.03
258 except AttributeError:
259 conf = Configure(env.Copy()) # scons-96.92
260
261 # Must add all paths at first or Configure() can't cache results
262 conf.env.Append(CPPPATH = [env['python_path']])
263 conf.env.Append(LIBS = [env['python_lib']])
264 conf.env.Append(LIBPATH = [env['python_lib_path']])
265 conf.env.Append(CPPPATH = [env['boost_path']])
266 conf.env.Append(LIBS = [env['boost_lib']])
267 conf.env.Append(LIBPATH = [env['boost_lib_path']])
268 if env['usenetcdf']:
269 conf.env.Append(CPPPATH = [env['netCDF_path']])
270 conf.env.Append(LIBS = [env['netCDF_libs']])
271 conf.env.Append(LIBPATH = [env['netCDF_lib_path']])
272
273 ############ numarray (required) ###############################
274
275 try: from numarray import identity
276 except ImportError: sys.exit(1)
277
278 ############ python libraries (required) #######################
279
280 if not conf.CheckCHeader('Python.h'): sys.exit(1)
281 if not conf.CheckFunc('Py_Main'): sys.exit(1)
282
283 ############ boost (required) ##################################
284
285 if not conf.CheckCXXHeader('boost/python.hpp'): sys.exit(1)
286 if not conf.CheckFunc('PyObject_SetAttr'): sys.exit(1)
287
288 ############ NetCDF (optional) #################################
289
290 if env['usenetcdf'] and not conf.CheckCHeader('netcdf.h'): env['usenetcdf'] = 0
291 if env['usenetcdf'] and not conf.CheckFunc('nc_open'): env['usenetcdf'] = 0
292
293 ############ VTK (optional) ####################################
294
295 if env['usevtk']:
296 try:
297 import vtk
298 except ImportError:
299 env['usevtk'] = 0
300
301 ############ MPI (optional) ####################################
302
303 if env['usempi']:
304 conf.env.Append(CPPPATH = [env['mpi_path']])
305 conf.env.Append(LIBS = [env['mpi_libs']])
306 conf.env.Append(LIBPATH = [env['mpi_lib_path']])
307 if not conf.CheckCHeader('mpi.h'): env['usempi'] = 0
308 if not conf.CheckFunc('MPI_Init'): env['usempi'] = 0
309
310 ############ ParMETIS (optional) ###############################
311
312 if not env['usempi']: env['useparmetis'] = 0
313
314 if env['useparmetis']:
315 conf.env.Append(CPPPATH = [env['parmetis_path']])
316 conf.env.Append(LIBS = [env['parmetis_libs']])
317 conf.env.Append(LIBPATH = [env['parmetis_lib_path']])
318 if not conf.CheckCHeader('parmetis.h'): env['useparmetis'] = 0
319 if not conf.CheckFunc('ParMETIS_V3_PartGeomKway'): env['useparmetis'] = 0
320
321 ############ Configure finished, now modify environment ########
322
323 conf.Finish()
324
325 # Enable debug
326 if env['usedebug']:
327 env.Append(CCFLAGS = env['cc_debug'])
328 env.Append(CCFLAGS = env['omp_flags_debug'])
329 env.Append(CCFLAGS = env['cc_flags'])
330 env.Append(CPPDEFINES = ['BOUNDS_CHECK'])
331 else:
332 env.Append(CCFLAGS = env['cc_optim'])
333 env.Append(CCFLAGS = env['omp_flags'])
334 env.Append(CCFLAGS = env['cc_flags'])
335
336 # Python
337 env.Append(CPPPATH = [env['python_path']])
338 env.Append(LIBPATH = [env['python_lib_path']])
339 env.Append(LIBS = [env['python_lib']])
340
341 # Boost
342 env.Append(CPPPATH = [env['boost_path']])
343 env.Append(LIBPATH = [env['boost_lib_path']])
344 env.Append(LIBS = [env['boost_lib']])
345
346 # NetCDF
347 if env['usenetcdf']:
348 env.Append(CPPPATH = [env['netCDF_path']])
349 env.Append(LIBPATH = [env['netCDF_lib_path']])
350 env.Append(LIBS = [env['netCDF_libs']])
351 env.Append(CPPDEFINES = ['USE_NETCDF'])
352
353 # VTK
354 if env['usevtk']:
355 env.Append(CPPDEFINES = ['USE_VTK'])
356
357 # MS Windows
358 if IS_WINDOWS_PLATFORM:
359 env.PrependENVPath('PATH', [env['boost_lib_path']])
360 env.PrependENVPath('PATH', libinstall)
361 if env['usenetcdf']:
362 env.PrependENVPath('PATH', [env['netCDF_lib_path']])
363
364 # Create a modified environment for MPI programs
365 try:
366 env_mpi = env.Clone() # scons-98.03
367 except AttributeError:
368 env_mpi = env.Copy() # scons-96.92
369
370 # MPI
371 if env_mpi['usempi']:
372 env_mpi.Append(CPPPATH = [env['mpi_path']])
373 env_mpi.Append(LIBPATH = [env['mpi_lib_path']])
374 env_mpi.Append(LIBS = [env['mpi_libs']])
375 env_mpi.Append(CPPDEFINES = ['PASO_MPI', 'MPI_NO_CPPBIND', env_mpi['MPICH_IGNORE_CXX_SEEK']])
376
377 # ParMETIS
378 if env_mpi['useparmetis']:
379 env_mpi.Append(CPPPATH = [env['parmetis_path']])
380 env_mpi.Append(LIBPATH = [env['parmetis_lib_path']])
381 env_mpi.Append(LIBS = [env['parmetis_libs']])
382 env_mpi.Append(CPPDEFINES = ['USE_PARMETIS'])
383
384 env.Append(ARFLAGS = env['ar_flags'])
385
386 ############ End of modify environment #########################
387
388 #==========================================================================
389 #
390 # Add some custom builders
391 #
392 py_builder = Builder(action = scons_extensions.build_py, suffix = '.pyc', src_suffix = '.py', single_source=True)
393 env.Append(BUILDERS = {'PyCompile' : py_builder});
394
395 runUnitTest_builder = Builder(action = scons_extensions.runUnitTest, suffix = '.passed',
396 src_suffix=env['PROGSUFFIX'], single_source=True)
397 env.Append(BUILDERS = {'RunUnitTest' : runUnitTest_builder});
398
399 runPyUnitTest_builder = Builder(action = scons_extensions.runPyUnitTest, suffix = '.passed', src_suffic='.py', single_source=True)
400 env.Append(BUILDERS = {'RunPyUnitTest' : runPyUnitTest_builder});
401
402 # ============= Remember what options were used in the compile =====================================
403 if not IS_WINDOWS_PLATFORM:
404 env.Execute("/bin/rm -f " + libinstall + "/Compiled.with.*")
405 if env['usedebug']: env.Execute("touch " + libinstall + "/Compiled.with.debug")
406 if env['usempi']: env.Execute("touch " + libinstall + "/Compiled.with.mpi")
407 if env['omp_flags'] != '': env.Execute("touch " + libinstall + "/Compiled.with.OpenMP")
408
409 Export(["env", "env_mpi", "incinstall", "libinstall", "pyinstall", "sys_libs", "prefix" ])
410
411 env.SConscript(dirs = ['tools/CppUnitTest/src'], build_dir='build/$PLATFORM/tools/CppUnitTest', duplicate=0)
412 env.SConscript(dirs = ['paso/src'], build_dir='build/$PLATFORM/paso', duplicate=0)
413 # env.SConscript(dirs = ['bruce/src'], build_dir='build/$PLATFORM/bruce', duplicate=0)
414 env.SConscript(dirs = ['escript/src'], build_dir='build/$PLATFORM/escript', duplicate=0)
415 env.SConscript(dirs = ['esysUtils/src'], build_dir='build/$PLATFORM/esysUtils', duplicate=0)
416 env.SConscript(dirs = ['finley/src'], build_dir='build/$PLATFORM/finley', duplicate=0)
417 env.SConscript(dirs = ['modellib/py_src'], build_dir='build/$PLATFORM/modellib', duplicate=0)
418 env.SConscript(dirs = ['doc'], build_dir='build/$PLATFORM/doc', duplicate=0)
419 env.SConscript(dirs = ['pyvisi/py_src'], build_dir='build/$PLATFORM/pyvisi', duplicate=0)
420 env.SConscript(dirs = ['pycad/py_src'], build_dir='build/$PLATFORM/pycad', duplicate=0)
421 env.SConscript(dirs = ['pythonMPI/src'], build_dir='build/$PLATFORM/pythonMPI', duplicate=0)
422
423 ############ Targets to build and install libraries ############
424
425 target_init = env.Command(pyinstall+'/__init__.py', None, Touch('$TARGET'))
426 env.Alias('target_init', [target_init])
427
428 # The headers have to be installed prior to build in order to satisfy #include <paso/Common.h>
429 env.Alias('build_esysUtils', ['target_install_esysUtils_headers', 'target_esysUtils_a'])
430 env.Alias('install_esysUtils', ['build_esysUtils', 'target_install_esysUtils_a'])
431
432 env.Alias('build_paso', ['target_install_paso_headers', 'target_paso_a'])
433 env.Alias('install_paso', ['build_paso', 'target_install_paso_a'])
434
435 env.Alias('build_escript', ['target_install_escript_headers', 'target_escript_so', 'target_escriptcpp_so'])
436 env.Alias('install_escript', ['build_escript', 'target_install_escript_so', 'target_install_escriptcpp_so', 'target_install_escript_py'])
437
438 env.Alias('build_finley', ['target_install_finley_headers', 'target_finley_so', 'target_finleycpp_so'])
439 env.Alias('install_finley', ['build_finley', 'target_install_finley_so', 'target_install_finleycpp_so', 'target_install_finley_py'])
440
441 # Now gather all the above into a couple easy targets: build_all and install_all
442 build_all_list = []
443 build_all_list += ['build_esysUtils']
444 build_all_list += ['build_paso']
445 build_all_list += ['build_escript']
446 build_all_list += ['build_finley']
447 # build_all_list += ['build_bruce']
448
449 install_all_list = []
450 install_all_list += ['target_init']
451 install_all_list += ['install_esysUtils']
452 install_all_list += ['install_paso']
453 install_all_list += ['install_escript']
454 install_all_list += ['install_finley']
455 install_all_list += ['target_install_pyvisi_py']
456 install_all_list += ['target_install_modellib_py']
457 install_all_list += ['target_install_pycad_py']
458 # install_all_list += ['target_install_bruce']
459 # install_all_list += ['target_install_bruce_py']
460
461 env.Alias('build_all', build_all_list)
462 env.Alias('install_all', install_all_list)
463
464 env.Default('install_all')
465
466 ############ Targets to build and run the test suite ###########
467
468 env.Alias('build_cppunittest', ['target_install_cppunittest_headers', 'target_cppunittest_a'])
469 env.Alias('install_cppunittest', ['build_cppunittest', 'target_install_cppunittest_a'])
470 env.Alias('run_tests', ['install_all', 'target_install_cppunittest_a'])
471 env.Alias('all_tests', ['install_all', 'target_install_cppunittest_a', 'run_tests', 'py_tests'])
472
473 ############ Targets to build the documentation ################
474
475 env.Alias('docs', ['examples_tarfile', 'examples_zipfile', 'api_epydoc', 'api_doxygen', 'guide_pdf', 'guide_html'])
476

  ViewVC Help
Powered by ViewVC 1.1.26