/[escript]/trunk/SConstruct
ViewVC logotype

Diff of /trunk/SConstruct

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

revision 863 by matt, Wed Oct 4 01:01:15 2006 UTC revision 1021 by gross, Tue Mar 13 02:06:30 2007 UTC
# Line 1  Line 1 
1  #          Copyright 2006 by ACcESS MNRF  #         Copyright 2006 by ACcESS MNRF
2  #  #
3  #              http://www.access.edu.au  #              http://www.access.edu.au
4  #       Primary Business: Queensland, Australia  #       Primary Business: Queensland, Australia
# Line 62  else: Line 62  else:
62        else:        else:
63           hostname+="_"           hostname+="_"
64     options_file = "scons/"+hostname+"_options.py"     options_file = "scons/"+hostname+"_options.py"
65       print options_file
66    
67  opts = Options(options_file, ARGUMENTS)  opts = Options(options_file, ARGUMENTS)
68  opts.AddOptions(  opts.AddOptions(
# Line 115  opts.AddOptions( Line 116  opts.AddOptions(
116    PathOption('blas_path', 'Path to BLAS includes', None),    PathOption('blas_path', 'Path to BLAS includes', None),
117    PathOption('blas_lib_path', 'Path to BLAS libs', None),    PathOption('blas_lib_path', 'Path to BLAS libs', None),
118    ('blas_libs', 'BLAS libraries to link with', None),    ('blas_libs', 'BLAS libraries to link with', None),
119    # netCDF
120      PathOption('netCDF_path', 'Path to netCDF includes', '/usr/local/include'),
121      PathOption('netCDF_lib_path', 'Path to netCDF libs', '/usr/local/lib'),
122      ('netCDF_libs_cxx', 'netCDF C++ libraries to link with', [ 'netcdf_c++', 'netcdf'] ),
123  # Python  # Python
124  # locations of include files for python  # locations of include files for python
125    PathOption('python_path', 'Path to Python includes', '/usr/include/python%s.%s'%(sys.version_info[0],sys.version_info[1])),    PathOption('python_path', 'Path to Python includes', '/usr/include/python%s.%s'%(sys.version_info[0],sys.version_info[1])),
# Line 404  except KeyError: Line 409  except KeyError:
409     blas_libs = ''     blas_libs = ''
410    
411  try:  try:
412       includes = env['netCDF_path']
413       env.Append(CPPPATH = [includes,])
414    except KeyError:
415       pass
416    
417    try:
418       lib_path = env['netCDF_lib_path']
419       env.Append(LIBPATH = [lib_path,])
420    except KeyError:
421       pass
422    
423    try:
424       netCDF_libs_cxx = env['netCDF_libs_cxx']
425    except KeyError:
426       netCDF_lib_cxx = [ ]
427    
428    try:
429     includes = env['boost_path']     includes = env['boost_path']
430     env.Append(CPPPATH = [includes,])     env.Append(CPPPATH = [includes,])
431  except KeyError:  except KeyError:
# Line 520  init_target = env.Command(pyinstall+'/__ Line 542  init_target = env.Command(pyinstall+'/__
542  env.Alias(init_target)  env.Alias(init_target)
543    
544  # Allow sconscripts to see the env  # Allow sconscripts to see the env
545  Export(["env", "incinstall", "libinstall", "pyinstall", "dodebug", "mkl_libs", "scsl_libs", "umf_libs", "amd_libs", "blas_libs",  Export(["env", "incinstall", "libinstall", "pyinstall", "dodebug", "mkl_libs", "scsl_libs", "umf_libs", "amd_libs", "blas_libs", "netCDF_libs_cxx",
546      "boost_lib", "python_lib", "doxygen_path", "epydoc_path", "papi_libs",      "boost_lib", "python_lib", "doxygen_path", "epydoc_path", "papi_libs",
547          "sys_libs", "test_zipfile", "src_zipfile", "test_tarfile", "src_tarfile", "examples_tarfile", "examples_zipfile",          "sys_libs", "test_zipfile", "src_zipfile", "test_tarfile", "src_tarfile", "examples_tarfile", "examples_zipfile",
548          "guide_pdf", "guide_html_index", "api_epydoc", "useMPI"])          "guide_pdf", "guide_html_index", "api_epydoc", "useMPI"])
# Line 542  env.Tar(test_tarfile, release_testfiles) Line 564  env.Tar(test_tarfile, release_testfiles)
564  env.SConscript(dirs = ['tools/CppUnitTest/src'], build_dir='build/$PLATFORM/tools/CppUnitTest', duplicate=0)  env.SConscript(dirs = ['tools/CppUnitTest/src'], build_dir='build/$PLATFORM/tools/CppUnitTest', duplicate=0)
565  # C/C++ Libraries  # C/C++ Libraries
566  env.SConscript(dirs = ['paso/src'], build_dir='build/$PLATFORM/paso', duplicate=0)  env.SConscript(dirs = ['paso/src'], build_dir='build/$PLATFORM/paso', duplicate=0)
567  env.SConscript(dirs = ['bruce/src'], build_dir='build/$PLATFORM/bruce', duplicate=0)  # bruce is removed for now as it doesn't really do anything
568    # env.SConscript(dirs = ['bruce/src'], build_dir='build/$PLATFORM/bruce', duplicate=0)
569  env.SConscript(dirs = ['escript/src'], build_dir='build/$PLATFORM/escript', duplicate=0)  env.SConscript(dirs = ['escript/src'], build_dir='build/$PLATFORM/escript', duplicate=0)
570  env.SConscript(dirs = ['esysUtils/src'], build_dir='build/$PLATFORM/esysUtils', duplicate=0)  env.SConscript(dirs = ['esysUtils/src'], build_dir='build/$PLATFORM/esysUtils', duplicate=0)
571  env.SConscript(dirs = ['finley/src'], build_dir='build/$PLATFORM/finley', duplicate=0)  env.SConscript(dirs = ['finley/src'], build_dir='build/$PLATFORM/finley', duplicate=0)
572  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)
573  env.SConscript(dirs = ['doc'], build_dir='build/$PLATFORM/doc', duplicate=0)  env.SConscript(dirs = ['doc'], build_dir='build/$PLATFORM/doc', duplicate=0)
574  env.SConscript(dirs = ['pyvisi/py_src'], build_dir='build/$PLATFORM/pyvisi', duplicate=0)  env.SConscript(dirs = ['pyvisi/py_src'], build_dir='build/$PLATFORM/pyvisi', duplicate=0)
575    env.SConscript(dirs = ['pycad/py_src'], build_dir='build/$PLATFORM/pycad', duplicate=0)
576    
577  # added by Ben Cumming  # added by Ben Cumming
578  env.SConscript(dirs = ['pythonMPI/src'], build_dir='build/$PLATFORM/pythonMPI', duplicate=0)  env.SConscript(dirs = ['pythonMPI/src'], build_dir='build/$PLATFORM/pythonMPI', duplicate=0)

Legend:
Removed from v.863  
changed lines
  Added in v.1021

  ViewVC Help
Powered by ViewVC 1.1.26