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

Contents of /branches/scons-dev/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1658 - (show annotations)
Thu Jul 17 04:10:35 2008 UTC (11 years, 2 months ago) by ksteube
File size: 20415 byte(s)
Improved handling of scons 0.98 versus 0.96

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

  ViewVC Help
Powered by ViewVC 1.1.26