/[escript]/trunk/SConstruct
ViewVC logotype

Diff of /trunk/SConstruct

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

revision 1021 by gross, Tue Mar 13 02:06:30 2007 UTC revision 1023 by gross, Tue Mar 13 05:43:36 2007 UTC
# 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  print "option file is ",options_file
66    
67  opts = Options(options_file, ARGUMENTS)  opts = Options(options_file, ARGUMENTS)
68  opts.AddOptions(  opts.AddOptions(
# Line 117  opts.AddOptions( Line 117  opts.AddOptions(
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  # netCDF
120      ('useNetCDF', 'switch on/off the usage of netCDF', 'yes'),
121    PathOption('netCDF_path', 'Path to netCDF includes', '/usr/local/include'),    PathOption('netCDF_path', 'Path to netCDF includes', '/usr/local/include'),
122    PathOption('netCDF_lib_path', 'Path to netCDF libs', '/usr/local/lib'),    PathOption('netCDF_lib_path', 'Path to netCDF libs', '/usr/local/lib'),
123    ('netCDF_libs_cxx', 'netCDF C++ libraries to link with', [ 'netcdf_c++', 'netcdf'] ),    ('netCDF_libs_cxx', 'netCDF C++ libraries to link with', [ 'netcdf_c++', 'netcdf'] ),
# Line 409  except KeyError: Line 410  except KeyError:
410     blas_libs = ''     blas_libs = ''
411    
412  try:  try:
413     includes = env['netCDF_path']     useNetCDF = env['useNetCDF']
    env.Append(CPPPATH = [includes,])  
414  except KeyError:  except KeyError:
415       useNetCDF = 'yes'
416     pass     pass
417    
418  try:  if not useNetCDF == 'yes':
419     lib_path = env['netCDF_lib_path']     print "Warning: Installation is not configured with netCDF. Some I/O function may not be available."
420     env.Append(LIBPATH = [lib_path,])    
421  except KeyError:  if useNetCDF == 'yes':
422     pass     try:
423          includes = env['netCDF_path']
424          env.Append(CPPPATH = [includes,])
425       except KeyError:
426          pass
427    
428  try:     try:
429     netCDF_libs_cxx = env['netCDF_libs_cxx']        lib_path = env['netCDF_lib_path']
430  except KeyError:        env.Append(LIBPATH = [lib_path,])
431     netCDF_lib_cxx = [ ]     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:  try:
442     includes = env['boost_path']     includes = env['boost_path']
# Line 542  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", "netCDF_libs_cxx",  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"])

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

  ViewVC Help
Powered by ViewVC 1.1.26