/[escript]/trunk/SConstruct
ViewVC logotype

Diff of /trunk/SConstruct

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

revision 6173 by caltinay, Tue Apr 12 09:34:03 2016 UTC revision 6174 by caltinay, Fri Apr 15 03:41:03 2016 UTC
# Line 573  Export( Line 573  Export(
573  target_init = env.Command(os.path.join(env['pyinstall'],'__init__.py'), None, Touch('$TARGET'))  target_init = env.Command(os.path.join(env['pyinstall'],'__init__.py'), None, Touch('$TARGET'))
574  env.Alias('target_init', [target_init])  env.Alias('target_init', [target_init])
575    
 build_all_list = []  
 install_all_list = ['target_init']  
   
 # The order here is important as certain keys in env need to be defined for  
 # certain modules.  
   
576  # escript can't be turned off  # escript can't be turned off
577  env.SConscript('escriptcore/SConscript', variant_dir='$BUILD_DIR/$PLATFORM/escriptcore', duplicate=0)  build_all_list = ['build_escript']
578  env.SConscript('escript/py_src/SConscript', variant_dir='$BUILD_DIR/$PLATFORM/escript', duplicate=0)  install_all_list = ['target_init', 'install_escript']
 build_all_list += ['build_escript']  
 install_all_list += ['install_escript']  
579    
 env.SConscript('pythonMPI/src/SConscript', variant_dir='$BUILD_DIR/$PLATFORM/pythonMPI', duplicate=0)  
 env.SConscript('tools/overlord/SConscript', variant_dir='$BUILD_DIR/$PLATFORM/tools/overlord', duplicate=0)  
580  if env['usempi']:  if env['usempi']:
581      build_all_list += ['build_pythonMPI', 'build_overlord']      build_all_list += ['build_pythonMPI', 'build_overlord']
582      install_all_list += ['install_pythonMPI', 'install_overlord']      install_all_list += ['install_pythonMPI', 'install_overlord']
583    
584  if env['paso']:  if env['paso']:
     env.SConscript('paso/src/SConscript', variant_dir='$BUILD_DIR/$PLATFORM/paso', duplicate=0)  
585      env.Append(CPPDEFINES = ['ESYS_HAVE_PASO'])      env.Append(CPPDEFINES = ['ESYS_HAVE_PASO'])
586      build_all_list += ['build_paso']      build_all_list += ['build_paso']
587      install_all_list += ['install_paso']      install_all_list += ['install_paso']
588    
589  if env['trilinos']:  if env['trilinos']:
     env.SConscript('trilinoswrap/src/SConscript', variant_dir='$BUILD_DIR/$PLATFORM/trilinoswrap', duplicate=0)  
590      build_all_list += ['build_trilinoswrap']      build_all_list += ['build_trilinoswrap']
591      install_all_list += ['install_trilinoswrap']      install_all_list += ['install_trilinoswrap']
592    
 env.SConscript('cusplibrary/SConscript')  
   
593  for domain in env['domains']:  for domain in env['domains']:
594      env.SConscript('%s/SConscript'%domain, variant_dir='$BUILD_DIR/$PLATFORM/%s'%domain, duplicate=0)      env.Append(CPPDEFINES = ['ESYS_HAVE_'+domain.upper()])
595      build_all_list += ['build_%s'%domain]      build_all_list += ['build_%s'%domain]
596      install_all_list += ['install_%s'%domain]      install_all_list += ['install_%s'%domain]
597    
598  if env['weipa']:  if env['weipa']:
599      env.SConscript('weipa/SConscript', variant_dir='$BUILD_DIR/$PLATFORM/weipa', duplicate=0)      env.Append(CPPDEFINES = ['ESYS_HAVE_WEIPA'])
600      build_all_list += ['build_weipa']      build_all_list += ['build_weipa']
601      install_all_list += ['install_weipa']      install_all_list += ['install_weipa']
602      if 'finley' in env['domains']:      if 'finley' in env['domains']:
603          build_all_list += ['build_escriptreader']          build_all_list += ['build_escriptreader']
604          install_all_list += ['install_escriptreader']          install_all_list += ['install_escriptreader']
605    
606  env.SConscript(dirs = ['downunder/py_src'], variant_dir='$BUILD_DIR/$PLATFORM/downunder', duplicate=0)  variant='$BUILD_DIR/$PLATFORM/'
607  env.SConscript(dirs = ['modellib/py_src'], variant_dir='$BUILD_DIR/$PLATFORM/modellib', duplicate=0)  env.SConscript('escriptcore/SConscript', variant_dir=variant+'escriptcore', duplicate=0)
608  env.SConscript(dirs = ['pycad/py_src'], variant_dir='$BUILD_DIR/$PLATFORM/pycad', duplicate=0)  env.SConscript('escript/py_src/SConscript', variant_dir=variant+'escript', duplicate=0)
609  env.SConscript('tools/escriptconvert/SConscript', variant_dir='$BUILD_DIR/$PLATFORM/tools/escriptconvert', duplicate=0)  env.SConscript('pythonMPI/src/SConscript', variant_dir=variant+'pythonMPI', duplicate=0)
610  env.SConscript('doc/SConscript', variant_dir='$BUILD_DIR/$PLATFORM/doc', duplicate=0)  env.SConscript('tools/overlord/SConscript', variant_dir=variant+'tools/overlord', duplicate=0)
611    env.SConscript('paso/SConscript', variant_dir=variant+'paso', duplicate=0)
612    env.SConscript('trilinoswrap/SConscript', variant_dir=variant+'trilinoswrap', duplicate=0)
613    env.SConscript('cusplibrary/SConscript')
614    env.SConscript('dudley/SConscript', variant_dir=variant+'dudley', duplicate=0)
615    env.SConscript('finley/SConscript', variant_dir=variant+'finley', duplicate=0)
616    env.SConscript('ripley/SConscript', variant_dir=variant+'ripley', duplicate=0)
617    env.SConscript('speckley/SConscript', variant_dir=variant+'speckley', duplicate=0)
618    env.SConscript('weipa/SConscript', variant_dir=variant+'weipa', duplicate=0)
619    env.SConscript(dirs = ['downunder/py_src'], variant_dir=variant+'downunder', duplicate=0)
620    env.SConscript(dirs = ['modellib/py_src'], variant_dir=variant+'modellib', duplicate=0)
621    env.SConscript(dirs = ['pycad/py_src'], variant_dir=variant+'pycad', duplicate=0)
622    env.SConscript('tools/escriptconvert/SConscript', variant_dir=variant+'tools/escriptconvert', duplicate=0)
623    env.SConscript('doc/SConscript', variant_dir=variant+'doc', duplicate=0)
624    
625  env.Alias('build', build_all_list)  env.Alias('build', build_all_list)
626    
# Line 639  else: Line 638  else:
638  sanity=env.Alias('sanity', env.Command('dummy','',os.path.join(env['prefix'], 'bin', 'run-escript')+' '+os.path.join(env['build_dir'],'scripts', 'release_sanity.py')))  sanity=env.Alias('sanity', env.Command('dummy','',os.path.join(env['prefix'], 'bin', 'run-escript')+' '+os.path.join(env['build_dir'],'scripts', 'release_sanity.py')))
639  env.Depends('dummy', install_all)  env.Depends('dummy', install_all)
640  if env['usempi']:  if env['usempi']:
    #env.Requires('dummy', ['build_pythonMPI', 'install_pythonMPI'])  
641     env.Depends('dummy', ['install_pythonMPI'])     env.Depends('dummy', ['install_pythonMPI'])
642    
643  # if all domains are built:  # if all domains are built:

Legend:
Removed from v.6173  
changed lines
  Added in v.6174

  ViewVC Help
Powered by ViewVC 1.1.26