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

Diff of /branches/inv2jf/SConstruct

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

revision 2231 by gross, Mon Jan 12 06:37:07 2009 UTC revision 2232 by jfenwick, Fri Jan 30 05:24:02 2009 UTC
# Line 511  else: Line 511  else:
511  env.Append(CCFLAGS      = env['cc_flags'])  env.Append(CCFLAGS      = env['cc_flags'])
512  env.Append(LIBS         = [env['omp_libs']])  env.Append(LIBS         = [env['omp_libs']])
513    
514    
515    ############ Add some custom builders ##########################
516    
517    py_builder = Builder(action = scons_extensions.build_py, suffix = '.pyc', src_suffix = '.py', single_source=True)
518    env.Append(BUILDERS = {'PyCompile' : py_builder});
519    
520    runUnitTest_builder = Builder(action = scons_extensions.runUnitTest, suffix = '.passed', src_suffix=env['PROGSUFFIX'], single_source=True)
521    env.Append(BUILDERS = {'RunUnitTest' : runUnitTest_builder});
522    
523    runPyUnitTest_builder = Builder(action = scons_extensions.runPyUnitTest, suffix = '.passed', src_suffic='.py', single_source=True)
524    env.Append(BUILDERS = {'RunPyUnitTest' : runPyUnitTest_builder});
525    
526  ############ MPI (optional) ####################################  ############ MPI (optional) ####################################
527    
528  # Create a modified environment for MPI programs (identical to env if usempi=no)  # Create a modified environment for MPI programs (identical to env if usempi=no)
# Line 609  Execute(Delete(env['libinstall'] + "/Com Line 621  Execute(Delete(env['libinstall'] + "/Com
621  Execute(Delete(env['libinstall'] + "/Compiled.with.openmp"))  Execute(Delete(env['libinstall'] + "/Compiled.with.openmp"))
622  if not env['usempi']: Execute(Delete(env['libinstall'] + "/pythonMPI"))  if not env['usempi']: Execute(Delete(env['libinstall'] + "/pythonMPI"))
623    
 ############ Add some custom builders ##########################  
   
 py_builder = Builder(action = scons_extensions.build_py, suffix = '.pyc', src_suffix = '.py', single_source=True)  
 env.Append(BUILDERS = {'PyCompile' : py_builder});  
   
 runUnitTest_builder = Builder(action = scons_extensions.runUnitTest, suffix = '.passed', src_suffix=env['PROGSUFFIX'], single_source=True)  
 env.Append(BUILDERS = {'RunUnitTest' : runUnitTest_builder});  
   
 runPyUnitTest_builder = Builder(action = scons_extensions.runPyUnitTest, suffix = '.passed', src_suffic='.py', single_source=True)  
 env.Append(BUILDERS = {'RunPyUnitTest' : runPyUnitTest_builder});  
624    
625  ############ Build the subdirectories ##########################  ############ Build the subdirectories ##########################
626    

Legend:
Removed from v.2231  
changed lines
  Added in v.2232

  ViewVC Help
Powered by ViewVC 1.1.26