/[escript]/trunk/SConstruct
ViewVC logotype

Diff of /trunk/SConstruct

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

revision 898 by gross, Sun Nov 12 23:56:26 2006 UTC revision 1023 by gross, Tue Mar 13 05:43:36 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 "option file is ",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      ('useNetCDF', 'switch on/off the usage of netCDF', 'yes'),
121      PathOption('netCDF_path', 'Path to netCDF includes', '/usr/local/include'),
122      PathOption('netCDF_lib_path', 'Path to netCDF libs', '/usr/local/lib'),
123      ('netCDF_libs_cxx', 'netCDF C++ libraries to link with', [ 'netcdf_c++', 'netcdf'] ),
124  # Python  # Python
125  # locations of include files for python  # locations of include files for python
126    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 410  except KeyError:
410     blas_libs = ''     blas_libs = ''
411    
412  try:  try:
413       useNetCDF = env['useNetCDF']
414    except KeyError:
415       useNetCDF = 'yes'
416       pass
417    
418    if not useNetCDF == 'yes':
419       print "Warning: Installation is not configured with netCDF. Some I/O function may not be available."
420      
421    if useNetCDF == 'yes':
422       try:
423          includes = env['netCDF_path']
424          env.Append(CPPPATH = [includes,])
425       except KeyError:
426          pass
427    
428       try:
429          lib_path = env['netCDF_lib_path']
430          env.Append(LIBPATH = [lib_path,])
431       except KeyError:
432          pass
433    
434       try:
435          netCDF_libs_cxx = env['netCDF_libs_cxx']
436       except KeyError:
437          netCDF_libs_cxx = [ ]
438    else:
439       netCDF_libs_cxx=[ ]
440    
441    try:
442     includes = env['boost_path']     includes = env['boost_path']
443     env.Append(CPPPATH = [includes,])     env.Append(CPPPATH = [includes,])
444  except KeyError:  except KeyError:
# Line 520  init_target = env.Command(pyinstall+'/__ Line 555  init_target = env.Command(pyinstall+'/__
555  env.Alias(init_target)  env.Alias(init_target)
556    
557  # Allow sconscripts to see the env  # Allow sconscripts to see the env
558  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", "useNetCDF",
559      "boost_lib", "python_lib", "doxygen_path", "epydoc_path", "papi_libs",      "boost_lib", "python_lib", "doxygen_path", "epydoc_path", "papi_libs",
560          "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",
561          "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 577  env.Tar(test_tarfile, release_testfiles)
577  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)
578  # C/C++ Libraries  # C/C++ Libraries
579  env.SConscript(dirs = ['paso/src'], build_dir='build/$PLATFORM/paso', duplicate=0)  env.SConscript(dirs = ['paso/src'], build_dir='build/$PLATFORM/paso', duplicate=0)
580  env.SConscript(dirs = ['bruce/src'], build_dir='build/$PLATFORM/bruce', duplicate=0)  # bruce is removed for now as it doesn't really do anything
581    # env.SConscript(dirs = ['bruce/src'], build_dir='build/$PLATFORM/bruce', duplicate=0)
582  env.SConscript(dirs = ['escript/src'], build_dir='build/$PLATFORM/escript', duplicate=0)  env.SConscript(dirs = ['escript/src'], build_dir='build/$PLATFORM/escript', duplicate=0)
583  env.SConscript(dirs = ['esysUtils/src'], build_dir='build/$PLATFORM/esysUtils', duplicate=0)  env.SConscript(dirs = ['esysUtils/src'], build_dir='build/$PLATFORM/esysUtils', duplicate=0)
584  env.SConscript(dirs = ['finley/src'], build_dir='build/$PLATFORM/finley', duplicate=0)  env.SConscript(dirs = ['finley/src'], build_dir='build/$PLATFORM/finley', duplicate=0)

Legend:
Removed from v.898  
changed lines
  Added in v.1023

  ViewVC Help
Powered by ViewVC 1.1.26