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

Diff of /branches/refine/SConstruct

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

trunk/SConstruct revision 3332 by jfenwick, Mon Nov 1 05:26:55 2010 UTC branches/refine/SConstruct revision 3685 by jfenwick, Tue Nov 22 01:13:55 2011 UTC
# Line 19  from site_init import * Line 19  from site_init import *
19    
20  # Version number to check for in options file. Increment when new features are  # Version number to check for in options file. Increment when new features are
21  # added or existing options changed.  # added or existing options changed.
22  REQUIRED_OPTS_VERSION=200  REQUIRED_OPTS_VERSION=201
23    
24  # MS Windows support, many thanks to PH  # MS Windows support, many thanks to PH
25  IS_WINDOWS = (os.name == 'nt')  IS_WINDOWS = (os.name == 'nt')
# Line 47  if not os.path.isfile(options_file): Line 47  if not os.path.isfile(options_file):
47  ############################### Build options ################################  ############################### Build options ################################
48    
49  default_prefix='/usr'  default_prefix='/usr'
50  mpi_flavours=('none', 'MPT', 'MPICH', 'MPICH2', 'OPENMPI', 'INTELMPI')  mpi_flavours=('no', 'none', 'MPT', 'MPICH', 'MPICH2', 'OPENMPI', 'INTELMPI')
51  lapack_flavours=('none', 'clapack', 'mkl')  lapack_flavours=('none', 'clapack', 'mkl')
52    
53  vars = Variables(options_file, ARGUMENTS)  vars = Variables(options_file, ARGUMENTS)
54  vars.AddVariables(  vars.AddVariables(
55    PathVariable('options_file', 'Path to options file', options_file, PathVariable.PathIsFile),    PathVariable('options_file', 'Path to options file', options_file, PathVariable.PathIsFile),
56    PathVariable('prefix', 'Installation prefix', Dir('#.').abspath, PathVariable.PathIsDirCreate),    PathVariable('prefix', 'Installation prefix', Dir('#.').abspath, PathVariable.PathIsDirCreate),
57      PathVariable('build_dir', 'Top-level build directory', Dir('#/build').abspath, PathVariable.PathIsDirCreate),
58    BoolVariable('verbose', 'Output full compile/link lines', False),    BoolVariable('verbose', 'Output full compile/link lines', False),
59  # Compiler/Linker options  # Compiler/Linker options
60    ('cc', 'Path to C compiler', 'default'),    ('cc', 'Path to C compiler', 'default'),
# Line 71  vars.AddVariables( Line 72  vars.AddVariables(
72    ('omp_ldflags', 'OpenMP linker flags', 'default'),    ('omp_ldflags', 'OpenMP linker flags', 'default'),
73  # Mandatory libraries  # Mandatory libraries
74    ('boost_prefix', 'Prefix/Paths of boost installation', default_prefix),    ('boost_prefix', 'Prefix/Paths of boost installation', default_prefix),
75    ('boost_libs', 'Boost libraries to link with', ['boost_python']),    ('boost_libs', 'Boost libraries to link with', ['boost_python-mt']),
76    # Mandatory for tests
77      ('cppunit_prefix', 'Prefix/Paths of CppUnit installation', default_prefix),
78      ('cppunit_libs', 'CppUnit libraries to link with', ['cppunit']),
79  # Optional libraries and options  # Optional libraries and options
80    EnumVariable('mpi', 'Compile parallel version using MPI flavour', 'none', allowed_values=mpi_flavours),    EnumVariable('mpi', 'Compile parallel version using MPI flavour', 'none', allowed_values=mpi_flavours),
81    ('mpi_prefix', 'Prefix/Paths of MPI installation', default_prefix),    ('mpi_prefix', 'Prefix/Paths of MPI installation', default_prefix),
# Line 92  vars.AddVariables( Line 96  vars.AddVariables(
96    BoolVariable('umfpack', 'Enable UMFPACK', False),    BoolVariable('umfpack', 'Enable UMFPACK', False),
97    ('umfpack_prefix', 'Prefix/Paths to UMFPACK installation', default_prefix),    ('umfpack_prefix', 'Prefix/Paths to UMFPACK installation', default_prefix),
98    ('umfpack_libs', 'UMFPACK libraries to link with', ['umfpack']),    ('umfpack_libs', 'UMFPACK libraries to link with', ['umfpack']),
99      BoolVariable('boomeramg', 'Enable BoomerAMG', False),
100      ('boomeramg_prefix', 'Prefix/Paths to BoomerAMG installation', default_prefix),
101      ('boomeramg_libs', 'BoomerAMG libraries to link with', ['boomeramg']),
102    EnumVariable('lapack', 'Set LAPACK flavour', 'none', allowed_values=lapack_flavours),    EnumVariable('lapack', 'Set LAPACK flavour', 'none', allowed_values=lapack_flavours),
103    ('lapack_prefix', 'Prefix/Paths to LAPACK installation', default_prefix),    ('lapack_prefix', 'Prefix/Paths to LAPACK installation', default_prefix),
104    ('lapack_libs', 'LAPACK libraries to link with', []),    ('lapack_libs', 'LAPACK libraries to link with', []),
# Line 102  vars.AddVariables( Line 109  vars.AddVariables(
109    ('visit_prefix', 'Prefix/Paths to VisIt installation', default_prefix),    ('visit_prefix', 'Prefix/Paths to VisIt installation', default_prefix),
110    ('visit_libs', 'VisIt libraries to link with', ['simV2']),    ('visit_libs', 'VisIt libraries to link with', ['simV2']),
111    BoolVariable('pyvisi', 'Enable pyvisi (deprecated, requires VTK module)', False),    BoolVariable('pyvisi', 'Enable pyvisi (deprecated, requires VTK module)', False),
112      BoolVariable('vsl_random', 'Use VSL from intel for random data', False),
113  # Advanced settings  # Advanced settings
114    #dudley_assemble_flags = -funroll-loops      to actually do something    #dudley_assemble_flags = -funroll-loops      to actually do something
115    ('dudley_assemble_flags', 'compiler flags for some dudley optimisations', ''),    ('dudley_assemble_flags', 'compiler flags for some dudley optimisations', ''),
116      ('buckley_assemble_flags', 'compiler flags for some buckley optimisations', ''),
117    # To enable passing function pointers through python    # To enable passing function pointers through python
118    BoolVariable('iknowwhatimdoing', 'Allow non-standard C', False),    BoolVariable('iknowwhatimdoing', 'Allow non-standard C', False),
119    # An option for specifying the compiler tools (see windows branch)    # An option for specifying the compiler tools (see windows branch)
# Line 114  vars.AddVariables( Line 123  vars.AddVariables(
123    EnumVariable('forcecollres', 'For testing use only - set the default value for force resolving collective ops', 'leave_alone', allowed_values=('leave_alone', 'on', 'off')),    EnumVariable('forcecollres', 'For testing use only - set the default value for force resolving collective ops', 'leave_alone', allowed_values=('leave_alone', 'on', 'off')),
124    # finer control over library building, intel aggressive global optimisation    # finer control over library building, intel aggressive global optimisation
125    # works with dynamic libraries on windows.    # works with dynamic libraries on windows.
126    ('share_esysutils', 'Build a dynamic esysUtils library', False),    ('build_shared', 'Build dynamic libraries only', False),
   ('share_paso', 'Build a dynamic paso library', False),  
127    ('sys_libs', 'Extra libraries to link with', []),    ('sys_libs', 'Extra libraries to link with', []),
128    ('escript_opts_version', 'Version of options file (do not specify on command line)'),    ('escript_opts_version', 'Version of options file (do not specify on command line)'),
129      ('SVN_VERSION', 'Do not use from options file', -2),
130  )  )
131    
132  ##################### Create environment and help text #######################  ##################### Create environment and help text #######################
# Line 157  if len(vars.UnknownVariables())>0: Line 166  if len(vars.UnknownVariables())>0:
166    
167  #################### Make sure install directories exist #####################  #################### Make sure install directories exist #####################
168    
169    env['BUILD_DIR']=env['build_dir']
170  prefix=Dir(env['prefix']).abspath  prefix=Dir(env['prefix']).abspath
171  env['incinstall'] = os.path.join(prefix, 'include')  env['incinstall'] = os.path.join(prefix, 'include')
172  env['bininstall'] = os.path.join(prefix, 'bin')  env['bininstall'] = os.path.join(prefix, 'bin')
# Line 275  env.Append(CCFLAGS = env['cc_flags']) Line 285  env.Append(CCFLAGS = env['cc_flags'])
285  # add system libraries  # add system libraries
286  env.AppendUnique(LIBS = env['sys_libs'])  env.AppendUnique(LIBS = env['sys_libs'])
287    
288  # Get the global Subversion revision number for the getVersion() method  
289  try:  global_revision=ARGUMENTS.get('SVN_VERSION', None)
290    if global_revision:
291        global_revision = re.sub(':.*', '', global_revision)
292        global_revision = re.sub('[^0-9]', '', global_revision)
293        if global_revision == '': global_revision='-2'
294    else:
295      # Get the global Subversion revision number for the getVersion() method
296      try:
297      global_revision = os.popen('svnversion -n .').read()      global_revision = os.popen('svnversion -n .').read()
298      global_revision = re.sub(':.*', '', global_revision)      global_revision = re.sub(':.*', '', global_revision)
299      global_revision = re.sub('[^0-9]', '', global_revision)      global_revision = re.sub('[^0-9]', '', global_revision)
300      if global_revision == '': global_revision='-2'      if global_revision == '': global_revision='-2'
301  except:    except:
302      global_revision = '-1'      global_revision = '-1'
303  env['svn_revision']=global_revision  env['svn_revision']=global_revision
304  env.Append(CPPDEFINES=['SVN_VERSION='+global_revision])  env.Append(CPPDEFINES=['SVN_VERSION='+global_revision])
305    
306  if IS_WINDOWS:  if IS_WINDOWS:
307      if not env['share_esysutils']:      if not env['build_shared']:
308          env.Append(CPPDEFINES = ['ESYSUTILS_STATIC_LIB'])          env.Append(CPPDEFINES = ['ESYSUTILS_STATIC_LIB'])
     if not env['share_paso']:  
309          env.Append(CPPDEFINES = ['PASO_STATIC_LIB'])          env.Append(CPPDEFINES = ['PASO_STATIC_LIB'])
310    
311  ###################### Copy required environment vars ########################  ###################### Copy required environment vars ########################
# Line 310  for key in 'OMP_NUM_THREADS', 'ESCRIPT_N Line 326  for key in 'OMP_NUM_THREADS', 'ESCRIPT_N
326          env['ENV'][key] = 1          env['ENV'][key] = 1
327    
328  env_export=env['env_export']  env_export=env['env_export']
329  env_export.extend(['ESCRIPT_NUM_THREADS','ESCRIPT_HOSTFILE','DISPLAY','XAUTHORITY','PATH','HOME'])  env_export.extend(['ESCRIPT_NUM_THREADS','ESCRIPT_HOSTFILE','DISPLAY','XAUTHORITY','PATH','HOME','TMPDIR','TEMP','TMP'])
330    
331  for key in set(env_export):  for key in set(env_export):
332      try:      try:
# Line 379  if conf.CheckFunc('gethostname'): Line 395  if conf.CheckFunc('gethostname'):
395  python_inc_path=sysconfig.get_python_inc()  python_inc_path=sysconfig.get_python_inc()
396  if IS_WINDOWS:  if IS_WINDOWS:
397      python_lib_path=os.path.join(sysconfig.get_config_var('prefix'), 'libs')      python_lib_path=os.path.join(sysconfig.get_config_var('prefix'), 'libs')
398    elif env['PLATFORM']=='darwin':
399        python_lib_path=sysconfig.get_config_var('LIBPL')
400  else:  else:
401      python_lib_path=sysconfig.get_config_var('LIBDIR')      python_lib_path=sysconfig.get_config_var('LIBDIR')
402  #python_libs=[sysconfig.get_config_var('LDLIBRARY')] # only on linux  #python_libs=[sysconfig.get_config_var('LDLIBRARY')] # only on linux
# Line 432  except ImportError: Line 450  except ImportError:
450      print("Cannot import numpy, you need to set your PYTHONPATH and probably %s"%LD_LIBRARY_PATH_KEY)      print("Cannot import numpy, you need to set your PYTHONPATH and probably %s"%LD_LIBRARY_PATH_KEY)
451      Exit(1)      Exit(1)
452    
453    ######## CppUnit (required for tests)
454    
455    try:
456        cppunit_inc_path,cppunit_lib_path=findLibWithHeader(env, env['cppunit_libs'], 'cppunit/TestFixture.h', env['cppunit_prefix'], lang='c++')
457        env.AppendUnique(CPPPATH = [cppunit_inc_path])
458        env.AppendUnique(LIBPATH = [cppunit_lib_path])
459        env.PrependENVPath(LD_LIBRARY_PATH_KEY, cppunit_lib_path)
460        env['cppunit']=True
461    except:
462        env['cppunit']=False
463    
464  ######## VTK (optional)  ######## VTK (optional)
465    
466  if env['pyvisi']:  if env['pyvisi']:
# Line 522  if env['silo']: Line 551  if env['silo']:
551      # weipa library and tools.      # weipa library and tools.
552      #env.AppendUnique(LIBS = [env['silo_libs']])      #env.AppendUnique(LIBS = [env['silo_libs']])
553    
554    ######## VSL random numbers (optional)
555    if env['vsl_random']:
556        env.Append(CPPDEFINES = ['MKLRANDOM'])
557    
558  ######## VisIt (optional)  ######## VisIt (optional)
559    
560  visit_inc_path=''  visit_inc_path=''
# Line 533  if env['visit']: Line 566  if env['visit']:
566    
567  ######## MPI (optional)  ######## MPI (optional)
568    
569    if env['mpi']=='no':
570        env['mpi']='none'
571    
572  env['usempi'] = env['mpi']!='none'  env['usempi'] = env['mpi']!='none'
573  mpi_inc_path=''  mpi_inc_path=''
574  mpi_lib_path=''  mpi_lib_path=''
# Line 549  if env['usempi']: Line 585  if env['usempi']:
585      if env['netcdf'] and env['mpi'] in ['MPT','OPENMPI']:      if env['netcdf'] and env['mpi'] in ['MPT','OPENMPI']:
586          env.Append(CPPDEFINES = ['MPI_INCLUDED'])          env.Append(CPPDEFINES = ['MPI_INCLUDED'])
587    
588    ######## BOOMERAMG (optional)
589    
590    if env['mpi'] == 'none': env['boomeramg'] = False
591    
592    boomeramg_inc_path=''
593    boomeramg_lib_path=''
594    if env['boomeramg']:
595        boomeramg_inc_path,boomeramg_lib_path=findLibWithHeader(env, env['boomeramg_libs'], 'HYPRE.h', env['boomeramg_prefix'], lang='c')
596        env.AppendUnique(CPPPATH = [boomeramg_inc_path])
597        env.AppendUnique(LIBPATH = [boomeramg_lib_path])
598        env.AppendUnique(LIBS = env['boomeramg_libs'])
599        env.PrependENVPath(LD_LIBRARY_PATH_KEY, boomeramg_lib_path)
600        env.Append(CPPDEFINES = ['BOOMERAMG'])
601    
602  ######## ParMETIS (optional)  ######## ParMETIS (optional)
603    
604  if not env['usempi']: env['parmetis'] = False  if not env['usempi']: env['parmetis'] = False
# Line 563  if env['parmetis']: Line 613  if env['parmetis']:
613      env.PrependENVPath(LD_LIBRARY_PATH_KEY, parmetis_lib_path)      env.PrependENVPath(LD_LIBRARY_PATH_KEY, parmetis_lib_path)
614      env.Append(CPPDEFINES = ['USE_PARMETIS'])      env.Append(CPPDEFINES = ['USE_PARMETIS'])
615    
616    ######## gmsh (optional, for tests)
617    
618    try:
619        import subprocess
620        p=subprocess.Popen(['gmsh', '-info'], stderr=subprocess.PIPE)
621        _,e=p.communicate()
622        if e.split().count("MPI"):
623            env['gmsh']='m'
624        else:
625            env['gmsh']='s'
626    except OSError:
627        env['gmsh']=False
628    
629    ######## PDFLaTeX (for documentation)
630    if 'PDF' in dir(env) and '.tex' in env.PDF.builder.src_suffixes(env):
631        env['pdflatex']=True
632    else:
633        env['pdflatex']=False
634    
635  ######################## Summarize our environment ###########################  ######################## Summarize our environment ###########################
636    
637  # keep some of our install paths first in the list for the unit tests  # keep some of our install paths first in the list for the unit tests
# Line 601  else: Line 670  else:
670      print("          LAPACK:  DISABLED")      print("          LAPACK:  DISABLED")
671  d_list=[]  d_list=[]
672  e_list=[]  e_list=[]
673  for i in 'debug','openmp','netcdf','parmetis','papi','mkl','umfpack','silo','visit','pyvisi':  for i in 'debug','openmp','netcdf','parmetis','papi','mkl','umfpack','boomeramg','silo','visit':
674      if env[i]: e_list.append(i)      if env[i]: e_list.append(i)
675      else: d_list.append(i)      else: d_list.append(i)
676  for i in e_list:  for i in e_list:
677      print("%16s:  YES"%i)      print("%16s:  YES"%i)
678  for i in d_list:  for i in d_list:
679      print("%16s:  DISABLED"%i)      print("%16s:  DISABLED"%i)
680    if env['cppunit']:
681        print("         CppUnit:  FOUND")
682    else:
683        print("         CppUnit:  NOT FOUND")
684    if env['gmsh']=='m':
685        print("            gmsh:  FOUND, MPI-ENABLED")
686    elif env['gmsh']=='s':
687        print("            gmsh:  FOUND")
688    else:
689        print("            gmsh:  NOT FOUND")
690    print("      vsl_random:  %s"%env['vsl_random'])
691        
692  if ((fatalwarning != '') and (env['werror'])):  if ((fatalwarning != '') and (env['werror'])):
693      print("  Treating warnings as errors")      print("  Treating warnings as errors")
694  else:  else:
# Line 636  Export( Line 717  Export(
717    ]    ]
718  )  )
719    
720  env.SConscript(dirs = ['tools/CppUnitTest/src'], variant_dir='build/$PLATFORM/tools/CppUnitTest', duplicate=0)  env.SConscript(dirs = ['tools/escriptconvert'], variant_dir='$BUILD_DIR/$PLATFORM/tools/escriptconvert', duplicate=0)
721  env.SConscript(dirs = ['tools/escriptconvert'], variant_dir='build/$PLATFORM/tools/escriptconvert', duplicate=0)  env.SConscript(dirs = ['paso/src'], variant_dir='$BUILD_DIR/$PLATFORM/paso', duplicate=0)
722  env.SConscript(dirs = ['paso/src'], variant_dir='build/$PLATFORM/paso', duplicate=0)  env.SConscript(dirs = ['weipa/src'], variant_dir='$BUILD_DIR/$PLATFORM/weipa', duplicate=0)
723  env.SConscript(dirs = ['weipa/src'], variant_dir='build/$PLATFORM/weipa', duplicate=0)  env.SConscript(dirs = ['escript/src'], variant_dir='$BUILD_DIR/$PLATFORM/escript', duplicate=0)
724  env.SConscript(dirs = ['escript/src'], variant_dir='build/$PLATFORM/escript', duplicate=0)  env.SConscript(dirs = ['esysUtils/src'], variant_dir='$BUILD_DIR/$PLATFORM/esysUtils', duplicate=0)
725  env.SConscript(dirs = ['esysUtils/src'], variant_dir='build/$PLATFORM/esysUtils', duplicate=0)  env.SConscript(dirs = ['pasowrap/src'], variant_dir='$BUILD_DIR/$PLATFORM/pasowrap', duplicate=0)
726  env.SConscript(dirs = ['dudley/src'], variant_dir='build/$PLATFORM/dudley', duplicate=0)  env.SConscript(dirs = ['buckley/src'], variant_dir='$BUILD_DIR/$PLATFORM/buckley', duplicate=0)
727  env.SConscript(dirs = ['finley/src'], variant_dir='build/$PLATFORM/finley', duplicate=0)  env.SConscript(dirs = ['dudley/src'], variant_dir='$BUILD_DIR/$PLATFORM/dudley', duplicate=0)
728  env.SConscript(dirs = ['modellib/py_src'], variant_dir='build/$PLATFORM/modellib', duplicate=0)  env.SConscript(dirs = ['finley/src'], variant_dir='$BUILD_DIR/$PLATFORM/finley', duplicate=0)
729  env.SConscript(dirs = ['doc'], variant_dir='build/$PLATFORM/doc', duplicate=0)  env.SConscript(dirs = ['modellib/py_src'], variant_dir='$BUILD_DIR/$PLATFORM/modellib', duplicate=0)
730  env.SConscript(dirs = ['pyvisi/py_src'], variant_dir='build/$PLATFORM/pyvisi', duplicate=0)  env.SConscript(dirs = ['doc'], variant_dir='$BUILD_DIR/$PLATFORM/doc', duplicate=0)
731  env.SConscript(dirs = ['pycad/py_src'], variant_dir='build/$PLATFORM/pycad', duplicate=0)  env.SConscript(dirs = ['pyvisi/py_src'], variant_dir='$BUILD_DIR/$PLATFORM/pyvisi', duplicate=0)
732  env.SConscript(dirs = ['pythonMPI/src'], variant_dir='build/$PLATFORM/pythonMPI', duplicate=0)  env.SConscript(dirs = ['pycad/py_src'], variant_dir='$BUILD_DIR/$PLATFORM/pycad', duplicate=0)
733  env.SConscript(dirs = ['paso/profiling'], variant_dir='build/$PLATFORM/paso/profiling', duplicate=0)  env.SConscript(dirs = ['pythonMPI/src'], variant_dir='$BUILD_DIR/$PLATFORM/pythonMPI', duplicate=0)
734    env.SConscript(dirs = ['paso/profiling'], variant_dir='$BUILD_DIR/$PLATFORM/paso/profiling', duplicate=0)
735    
736  ######################## Populate the buildvars file #########################  ######################## Populate the buildvars file #########################
737    
# Line 687  buildvars.write("mpi_inc_path=%s\n"%mpi_ Line 769  buildvars.write("mpi_inc_path=%s\n"%mpi_
769  buildvars.write("mpi_lib_path=%s\n"%mpi_lib_path)  buildvars.write("mpi_lib_path=%s\n"%mpi_lib_path)
770  buildvars.write("lapack=%s\n"%env['lapack'])  buildvars.write("lapack=%s\n"%env['lapack'])
771  buildvars.write("pyvisi=%d\n"%env['pyvisi'])  buildvars.write("pyvisi=%d\n"%env['pyvisi'])
772  for i in 'netcdf','parmetis','papi','mkl','umfpack','silo','visit':  buildvars.write("vsl_random=%d\n"%int(env['vsl_random']))
773    for i in 'netcdf','parmetis','papi','mkl','umfpack','boomeramg','silo','visit':
774      buildvars.write("%s=%d\n"%(i, int(env[i])))      buildvars.write("%s=%d\n"%(i, int(env[i])))
775      if env[i]:      if env[i]:
776          buildvars.write("%s_inc_path=%s\n"%(i, eval(i+'_inc_path')))          buildvars.write("%s_inc_path=%s\n"%(i, eval(i+'_inc_path')))
# Line 696  buildvars.close() Line 779  buildvars.close()
779    
780  ################### Targets to build and install libraries ###################  ################### Targets to build and install libraries ###################
781    
782  target_init = env.Command(env['pyinstall']+'/__init__.py', None, Touch('$TARGET'))  target_init = env.Command(os.path.join(env['pyinstall'],'__init__.py'), None, Touch('$TARGET'))
783  env.Alias('target_init', [target_init])  env.Alias('target_init', [target_init])
784    # delete buildvars upon cleanup
785    env.Clean('target_init', os.path.join(env['libinstall'], 'buildvars'))
786    
787  # The headers have to be installed prior to build in order to satisfy  # The headers have to be installed prior to build in order to satisfy
788  # #include <paso/Common.h>  # #include <paso/Common.h>
# Line 710  env.Alias('install_paso', ['build_paso', Line 795  env.Alias('install_paso', ['build_paso',
795  env.Alias('build_escript', ['install_escript_headers', 'build_escript_lib', 'build_escriptcpp_lib'])  env.Alias('build_escript', ['install_escript_headers', 'build_escript_lib', 'build_escriptcpp_lib'])
796  env.Alias('install_escript', ['build_escript', 'install_escript_lib', 'install_escriptcpp_lib', 'install_escript_py'])  env.Alias('install_escript', ['build_escript', 'install_escript_lib', 'install_escriptcpp_lib', 'install_escript_py'])
797    
798    env.Alias('build_pasowrap', ['install_pasowrap_headers', 'build_pasowrap_lib', 'build_pasowrapcpp_lib'])
799    env.Alias('install_pasowrap', ['build_pasowrap', 'install_pasowrap_lib', 'install_pasowrapcpp_lib', 'install_pasowrap_py'])
800    
801    env.Alias('build_buckley', ['install_buckley_headers', 'build_buckley_lib', 'build_buckleycpp_lib'])
802    env.Alias('install_buckley', ['build_buckley', 'install_buckley_lib', 'install_buckleycpp_lib', 'install_buckley_py'])
803    
804    env.Alias('build_buckley', ['install_buckley_headers', 'build_buckley_lib', 'build_buckleycpp_lib'])
805    env.Alias('install_buckley', ['build_buckley', 'install_buckley_lib', 'install_buckleycpp_lib', 'install_buckley_py'])
806    
807  env.Alias('build_dudley', ['install_dudley_headers', 'build_dudley_lib', 'build_dudleycpp_lib'])  env.Alias('build_dudley', ['install_dudley_headers', 'build_dudley_lib', 'build_dudleycpp_lib'])
808  env.Alias('install_dudley', ['build_dudley', 'install_dudley_lib', 'install_dudleycpp_lib', 'install_dudley_py'])  env.Alias('install_dudley', ['build_dudley', 'install_dudley_lib', 'install_dudleycpp_lib', 'install_dudley_py'])
809    
# Line 727  build_all_list = [] Line 821  build_all_list = []
821  build_all_list += ['build_esysUtils']  build_all_list += ['build_esysUtils']
822  build_all_list += ['build_paso']  build_all_list += ['build_paso']
823  build_all_list += ['build_escript']  build_all_list += ['build_escript']
824    build_all_list += ['build_pasowrap']
825    build_all_list += ['build_buckley']
826  build_all_list += ['build_dudley']  build_all_list += ['build_dudley']
827  build_all_list += ['build_finley']  build_all_list += ['build_finley']
828  build_all_list += ['build_weipa']  build_all_list += ['build_weipa']
# Line 740  install_all_list += ['target_init'] Line 836  install_all_list += ['target_init']
836  install_all_list += ['install_esysUtils']  install_all_list += ['install_esysUtils']
837  install_all_list += ['install_paso']  install_all_list += ['install_paso']
838  install_all_list += ['install_escript']  install_all_list += ['install_escript']
839    install_all_list += ['install_pasowrap']
840    install_all_list += ['install_buckley']
841  install_all_list += ['install_dudley']  install_all_list += ['install_dudley']
842  install_all_list += ['install_finley']  install_all_list += ['install_finley']
843  install_all_list += ['install_weipa']  install_all_list += ['install_weipa']
# Line 756  env.Default('install_all') Line 854  env.Default('install_all')
854    
855  ################## Targets to build and run the test suite ###################  ################## Targets to build and run the test suite ###################
856    
857  env.Alias('build_cppunittest', ['install_cppunittest_headers', 'build_cppunittest_lib'])  test_msg = env.Command('.dummy.', None, '@echo "Cannot run C/C++ unit tests, CppUnit not found!";exit 1')
858  env.Alias('install_cppunittest', ['build_cppunittest', 'install_cppunittest_lib'])  if not env['cppunit']:
859  env.Alias('run_tests', ['install_all', 'install_cppunittest_lib'])      env.Alias('run_tests', test_msg)
860  env.Alias('all_tests', ['install_all', 'install_cppunittest_lib', 'run_tests', 'py_tests'])  env.Alias('run_tests', ['install_all'])
861    env.Alias('all_tests', ['install_all', 'run_tests', 'py_tests'])
862  env.Alias('build_full',['install_all','build_tests','build_py_tests'])  env.Alias('build_full',['install_all','build_tests','build_py_tests'])
863  env.Alias('build_PasoTests','build/$PLATFORM/paso/profiling/PasoTests')  env.Alias('build_PasoTests','$BUILD_DIR/$PLATFORM/paso/profiling/PasoTests')
864    
865  ##################### Targets to build the documentation #####################  ##################### Targets to build the documentation #####################
866    
867  env.Alias('api_epydoc','install_all')  env.Alias('api_epydoc','install_all')
868  env.Alias('docs', ['examples_tarfile', 'examples_zipfile', 'api_epydoc', 'api_doxygen', 'guide_pdf', 'install_pdf', 'cookbook_pdf'])  env.Alias('docs', ['examples_tarfile', 'examples_zipfile', 'api_epydoc', 'api_doxygen', 'user_pdf', 'install_pdf', 'cookbook_pdf'])
869  env.Alias('release_prep', ['docs', 'install_all'])  env.Alias('release_prep', ['docs', 'install_all'])
870    
871  if not IS_WINDOWS:  if not IS_WINDOWS:
# Line 782  if not IS_WINDOWS: Line 881  if not IS_WINDOWS:
881          print("Error attempting to write unittests file.")          print("Error attempting to write unittests file.")
882          Exit(1)          Exit(1)
883    
884        # delete utest.sh upon cleanup
885        env.Clean('target_init', 'utest.sh')
886    
887      # Make sure that the escript wrapper is in place      # Make sure that the escript wrapper is in place
888      if not os.path.isfile(os.path.join(env['bininstall'], 'run-escript')):      if not os.path.isfile(os.path.join(env['bininstall'], 'run-escript')):
889          print("Copying escript wrapper.")          print("Copying escript wrapper.")

Legend:
Removed from v.3332  
changed lines
  Added in v.3685

  ViewVC Help
Powered by ViewVC 1.1.26