/[escript]/branches/amg_from_3530/SConstruct
ViewVC logotype

Diff of /branches/amg_from_3530/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 705 by gross, Fri Apr 7 17:57:37 2006 UTC revision 720 by gross, Thu Apr 27 10:16:05 2006 UTC
# Line 46  opts.AddOptions( Line 46  opts.AddOptions(
46    ('libinstall', 'where the esys libraries will be installed', Dir('#.').abspath+'/lib'),    ('libinstall', 'where the esys libraries will be installed', Dir('#.').abspath+'/lib'),
47    ('pyinstall', 'where the esys python modules will be installed', Dir('#.').abspath),    ('pyinstall', 'where the esys python modules will be installed', Dir('#.').abspath),
48    ('src_zipfile', 'the source zip file will be installed.', Dir('#.').abspath+"/release/escript_src.zip"),    ('src_zipfile', 'the source zip file will be installed.', Dir('#.').abspath+"/release/escript_src.zip"),
49    ('test_zipfile', 'the test zip file will be installed.', Dir('#.').abspath+"/release/escript_src_tests.zip"),    ('test_zipfile', 'the test zip file will be installed.', Dir('#.').abspath+"/release/escript_tests.zip"),
50    ('src_tarfile', 'the source tar file will be installed.', Dir('#.').abspath+"/release/escript_src.tar.gz"),    ('src_tarfile', 'the source tar file will be installed.', Dir('#.').abspath+"/release/escript_src.tar.gz"),
51    ('test_tarfile', 'the test tar file will be installed.', Dir('#.').abspath+"/release/escript_src_tests.tar.gz"),    ('test_tarfile', 'the test tar file will be installed.', Dir('#.').abspath+"/release/escript_tests.tar.gz"),
52    ('doc', 'where the doc files will be installed', Dir('#.').abspath+'/release/doc'),    ('examples_tarfile', 'the examples tar file will be installed.', Dir('#.').abspath+"/release/doc/escript_examples.tar.gz"),
53      ('examples_zipfile', 'the examples zip file will be installed.', Dir('#.').abspath+"/release/doc/escript_examples.zip"),
54      ('guide_pdf', 'name of the user guide in pdf format', Dir('#.').abspath+"/release/doc/user/guide.pdf"),
55      ('api_epydoc', 'name of the epydoc api docs directory',Dir('#.').abspath+"/release/doc/epydoc"),
56      ('guide_html', 'name of the directory for user guide in html format', Dir('#.').abspath+"/release/doc/user/html"),
57  # Compilation options  # Compilation options
58    BoolOption('dodebug', 'Do you want a debug build?', 'no'),    BoolOption('dodebug', 'Do you want a debug build?', 'no'),
59    ('options_file', "Optional file containing preferred options. Ignored if it doesn't exist (default: scons/hostname_options.py)", options_file),    ('options_file', "Optional file containing preferred options. Ignored if it doesn't exist (default: scons/hostname_options.py)", options_file),
# Line 316  try: Line 319  try:
319  except KeyError:  except KeyError:
320     papi_libs = None       papi_libs = None  
321    
322    
323  try:  try:
324     src_zipfile = env['src_zipfile']     src_zipfile = env.File(env['src_zipfile'])
325  except KeyError:  except KeyError:
326     src_zipfile = None       src_zipfile = None  
   
   
327  try:  try:
328     test_zipfile = env['test_zipfile']     test_zipfile = env.File(env['test_zipfile'])
329  except KeyError:  except KeyError:
330     test_zipfile = None       test_zipfile = None  
331    try:
332       examples_zipfile = env.File(env['examples_zipfile'])
333    except KeyError:
334       examples_zipfile = None  
335    
336  try:  try:
337     src_tarfile = env['src_tarfile']     src_tarfile = env.File(env['src_tarfile'])
338  except KeyError:  except KeyError:
339     src_tarfile = None       src_tarfile = None  
340    try:
341       test_tarfile = env.File(env['test_tarfile'])
342    except KeyError:
343       test_tarfile = None  
344    try:
345       examples_tarfile = env.File(env['examples_tarfile'])
346    except KeyError:
347       examples_tarfile = None  
348    
349    try:
350       guide_pdf = env.File(env['guide_pdf'])
351    except KeyError:
352       guide_pdf = None  
353    
354  try:  try:
355     test_tarfile = env['test_tarfile']     guide_html_index = env.File('index.htm',env['guide_html'])
356  except KeyError:  except KeyError:
357     test_tarfile = None       guide_html_index = None  
358    
359  try:  try:
360     doc = env['doc']     api_epydoc = env.Dir(env['api_epydoc'])
361  except KeyError:  except KeyError:
362     doc = None       api_epydoc = None  
363    
364  # Zipgets  # Zipgets
365      
366  env.Default(libinstall)  env.Default(libinstall)
367  env.Default(incinstall)  env.Default(incinstall)
368  env.Default(pyinstall)  env.Default(pyinstall)
369  env.Alias('release_src',[ src_zipfile, src_tarfile ])    env.Alias('release_src',[ src_zipfile, src_tarfile ])  
370  env.Alias('release_tests',[ test_zipfile, test_tarfile])  env.Alias('release_tests',[ test_zipfile, test_tarfile])
371  env.Alias('release', ['release_src', 'release_tests'])  env.Alias('release_examples',[ examples_zipfile, examples_tarfile])
372  env.Alias('docs')  env.Alias('api_epydoc',api_epydoc)
373    env.Alias('docs',[ 'release_examples', guide_pdf, guide_html_index, api_epydoc])
374    env.Alias('release', ['release_src', 'release_tests', 'docs'])
375  env.Alias('build_tests')    # target to build all C++ tests  env.Alias('build_tests')    # target to build all C++ tests
376  env.Alias('build_py_tests') # target to build all python tests  env.Alias('build_py_tests') # target to build all python tests
377  env.Alias('run_tests',['build_tests'])   # target to run all C++ test  env.Alias('build_all_tests', [ 'build_tests', 'build_py_tests' ] ) # target to build all python tests
378  env.Alias('py_tests', ['build_py_tests']) # taget to run all released python tests  env.Alias('run_tests', 'build_tests')   # target to run all C++ test
379    env.Alias('py_tests', 'build_py_tests') # taget to run all released python tests
380  env.Alias('all_tests', ['run_tests', 'py_tests']) # target to run all C++ and released python tests  env.Alias('all_tests', ['run_tests', 'py_tests']) # target to run all C++ and released python tests
381    
382  # Python install - esys __init__.py  # Python install - esys __init__.py
# Line 365  env.Command(pyinstall+'/__init__.py', No Line 387  env.Command(pyinstall+'/__init__.py', No
387  # Allow sconscripts to see the env  # Allow sconscripts to see the env
388  Export(["env", "incinstall", "libinstall", "pyinstall", "dodebug", "mkl_libs", "scsl_libs", "umf_libs",  Export(["env", "incinstall", "libinstall", "pyinstall", "dodebug", "mkl_libs", "scsl_libs", "umf_libs",
389      "boost_lib", "python_lib", "doxygen_path", "epydoc_path", "epydoc_pythonpath", "papi_libs",      "boost_lib", "python_lib", "doxygen_path", "epydoc_path", "epydoc_pythonpath", "papi_libs",
390          "sys_libs", "test_zipfile", "src_zipfile", "test_tarfile", "src_tarfile", "doc" ])          "sys_libs", "test_zipfile", "src_zipfile", "test_tarfile", "src_tarfile", "examples_tarfile", "examples_zipfile",
391            "guide_pdf", "guide_html_index", "api_epydoc"])
392    
393  # End initialisation section  # End initialisation section
394  # Begin configuration section  # Begin configuration section
395  # adds this file and the scons option directore to the source tar  # adds this file and the scons option directore to the source tar
396  release_srcfiles=[env.File('SConstruct'),]+[ env.File(x) for x in glob.glob('scons/*.py') ]  release_srcfiles=[env.File('SConstruct'),]+[ env.File(x) for x in glob.glob('scons/*.py') ]
397  release_testfiles=[env.File('README_TESTS'),]  release_testfiles=[env.File('README_TESTS'),]
398  env.Zip(src_zipfile,release_srcfiles)  env.Zip(src_zipfile, release_srcfiles)
399  env.Zip(test_zipfile, release_testfiles)  env.Zip(test_zipfile, release_testfiles)
400  env.Tar(src_tarfile, release_srcfiles)  env.Tar(src_tarfile, release_srcfiles)
401  env.Tar(test_tarfile, release_testfiles)  env.Tar(test_tarfile, release_testfiles)
# Line 389  env.SConscript(dirs = ['escript/src'], b Line 412  env.SConscript(dirs = ['escript/src'], b
412  env.SConscript(dirs = ['esysUtils/src'], build_dir='build/$PLATFORM/esysUtils', duplicate=0)  env.SConscript(dirs = ['esysUtils/src'], build_dir='build/$PLATFORM/esysUtils', duplicate=0)
413  env.SConscript(dirs = ['finley/src'], build_dir='build/$PLATFORM/finley', duplicate=0)  env.SConscript(dirs = ['finley/src'], build_dir='build/$PLATFORM/finley', duplicate=0)
414  env.SConscript(dirs = ['modellib/py_src'], build_dir='build/$PLATFORM/modellib', duplicate=0)  env.SConscript(dirs = ['modellib/py_src'], build_dir='build/$PLATFORM/modellib', duplicate=0)
415  #env.SConscript(dirs = ['pyvisi/py_src'], build_dir='build/$PLATFORM/pyvisi', duplicate=0)  env.SConscript(dirs = ['doc'], build_dir='build/$PLATFORM/doc', duplicate=0)
416    env.SConscript(dirs = ['pyvisi/py_src'], build_dir='build/$PLATFORM/pyvisi', duplicate=0)
 # FIXME:need to be incorporated into build system  
 # FIXME: 'doc/SConstruct']  
 # FIXME: 'doc/SConstruct']  

Legend:
Removed from v.705  
changed lines
  Added in v.720

  ViewVC Help
Powered by ViewVC 1.1.26