/[escript]/trunk/SConstruct
ViewVC logotype

Diff of /trunk/SConstruct

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

revision 1185 by gross, Thu May 31 04:33:31 2007 UTC revision 1215 by ksteube, Thu Jul 12 01:14:55 2007 UTC
# Line 33  else: Line 33  else:
33    
34  #==============================================================================================      #==============================================================================================    
35  #      #    
36  #    get the iinstallation prefix  #    get the installation prefix
37  #  #
38  prefix = ARGUMENTS.get('prefix', Dir('#.').abspath)  prefix = ARGUMENTS.get('prefix', Dir('#.').abspath)
39  print "Install prefix is: ", prefix  print "Install prefix is: ", prefix
# Line 185  opts.AddOptions( Line 185  opts.AddOptions(
185    ('examples_zipfile', 'the examples zip file will be installed.', prefix+"/release/doc/escript_examples.zip"),    ('examples_zipfile', 'the examples zip file will be installed.', prefix+"/release/doc/escript_examples.zip"),
186    ('guide_pdf', 'name of the user guide in pdf format', prefix+"/release/doc/user/guide.pdf"),    ('guide_pdf', 'name of the user guide in pdf format', prefix+"/release/doc/user/guide.pdf"),
187    ('api_epydoc', 'name of the epydoc api docs directory',prefix+"/release/doc/epydoc"),    ('api_epydoc', 'name of the epydoc api docs directory',prefix+"/release/doc/epydoc"),
188      ('api_doxygen', 'name of the doxygen api docs directory',prefix+"/release/doc/doxygen"),
189    ('guide_html', 'name of the directory for user guide in html format', prefix+"/release/doc/user/html"),    ('guide_html', 'name of the directory for user guide in html format', prefix+"/release/doc/user/html"),
190  # Compilation options  # Compilation options
191    BoolOption('dodebug', 'Do you want a debug build?', 'no'),    BoolOption('dodebug', 'Do you want a debug build?', 'no'),
# Line 234  opts.AddOptions( Line 235  opts.AddOptions(
235    PathOption('boost_libs_path', 'Path to Boost libs', boost_libs_path_default),    PathOption('boost_libs_path', 'Path to Boost libs', boost_libs_path_default),
236    ('boost_libs', 'Boost libraries to link with', boost_libs_default),    ('boost_libs', 'Boost libraries to link with', boost_libs_default),
237  # Doc building  # Doc building
238  #  PathOption('doxygen_path', 'Path to Doxygen executable', None),    PathOption('doxygen_path', 'Path to Doxygen executable', None),
239  #  PathOption('epydoc_path', 'Path to Epydoc executable', None),  #  PathOption('epydoc_path', 'Path to Epydoc executable', None),
240  # PAPI  # PAPI
241    PathOption('papi_path', 'Path to PAPI includes', None),    PathOption('papi_path', 'Path to PAPI includes', None),
# Line 319  except KeyError: Line 320  except KeyError:
320     incinstall = None     incinstall = None
321  try:  try:
322     libinstall = env['libinstall']     libinstall = env['libinstall']
323     env.Append(LIBPATH = [libinstall,]) # ksteube adds -L for building of libescript.so libfinley.so escriptcpp.so finleycpp.so     env.Append(LIBPATH = [libinstall,]) # Adds -L for building of libescript.so libfinley.so escriptcpp.so finleycpp.so
324     env.PrependENVPath('LD_LIBRARY_PATH', libinstall)     env.PrependENVPath('LD_LIBRARY_PATH', libinstall)
325     if env['PLATFORM'] == "win32":     if env['PLATFORM'] == "win32":
326        env.PrependENVPath('PATH', libinstall)        env.PrependENVPath('PATH', libinstall)
# Line 642  try: Line 643  try:
643  except KeyError:  except KeyError:
644     api_epydoc = None     api_epydoc = None
645    
646    try:
647       api_doxygen = env.Dir(env['api_doxygen'])
648    except KeyError:
649       api_doxygen = None
650    
651  # Zipgets  # Zipgets
652  env.Default(libinstall)  env.Default(libinstall)
653  env.Default(incinstall)  env.Default(incinstall)
# Line 649  env.Default(pyinstall) Line 655  env.Default(pyinstall)
655  env.Alias('release_src',[ src_zipfile, src_tarfile ])  env.Alias('release_src',[ src_zipfile, src_tarfile ])
656  env.Alias('release_tests',[ test_zipfile, test_tarfile])  env.Alias('release_tests',[ test_zipfile, test_tarfile])
657  env.Alias('release_examples',[ examples_zipfile, examples_tarfile])  env.Alias('release_examples',[ examples_zipfile, examples_tarfile])
658    env.Alias('examples_zipfile',examples_zipfile)
659    env.Alias('examples_tarfile',examples_tarfile)
660  env.Alias('api_epydoc',api_epydoc)  env.Alias('api_epydoc',api_epydoc)
661    env.Alias('api_doxygen',api_doxygen)
662    env.Alias('guide_html_index',guide_html_index)
663  env.Alias('guide_pdf', guide_pdf)  env.Alias('guide_pdf', guide_pdf)
664  env.Alias('docs',[ 'release_examples', 'guide_pdf', guide_html_index, api_epydoc])  env.Alias('docs',[ 'release_examples', 'guide_pdf', api_epydoc, api_doxygen])
665  env.Alias('release', ['release_src', 'release_tests', 'docs'])  env.Alias('release', ['release_src', 'release_tests', 'docs'])
666  env.Alias('build_tests')    # target to build all C++ tests  env.Alias('build_tests')    # target to build all C++ tests
667  env.Alias('build_py_tests') # target to build all python tests  env.Alias('build_py_tests') # target to build all python tests
# Line 668  env.Alias(init_target) Line 678  env.Alias(init_target)
678  Export(["IS_WINDOWS_PLATFORM", "env", "incinstall", "libinstall", "pyinstall", "dodebug", "mkl_libs", "scsl_libs", "umf_libs", "amd_libs", "blas_libs", "netCDF_libs", "useNetCDF",  Export(["IS_WINDOWS_PLATFORM", "env", "incinstall", "libinstall", "pyinstall", "dodebug", "mkl_libs", "scsl_libs", "umf_libs", "amd_libs", "blas_libs", "netCDF_libs", "useNetCDF",
679      "boost_libs", "python_libs", "doxygen_path", "epydoc_path", "papi_libs",      "boost_libs", "python_libs", "doxygen_path", "epydoc_path", "papi_libs",
680          "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",
681          "guide_pdf", "guide_html_index", "api_epydoc", "useMPI" ])          "guide_pdf", "guide_html_index", "api_epydoc", "api_doxygen", "useMPI" ])
682    
683  # End initialisation section  # End initialisation section
684  # Begin configuration section  # Begin configuration section

Legend:
Removed from v.1185  
changed lines
  Added in v.1215

  ViewVC Help
Powered by ViewVC 1.1.26