Changeset 619

Show
Ignore:
Timestamp:
03/20/07 04:17:55 (2 years ago)
Author:
dirk
Message:

Added support for local libs for individual Tuts
Added Cluster tuts (thanks to Patrick hartling!)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Tutorials/SConstruct

    r602 r619  
    143143 
    144144   if not opensg2_options.isAvailable(): 
    145       print "OpenSG not available: Skiping viewer." 
     145      print "OpenSG not available: Skipping viewer." 
    146146      build_app = False 
    147147   if not boost_options.isAvailable(): 
    148       print "Boost not available: Skiping viewer." 
     148      print "Boost not available: Skipping viewer." 
    149149      build_app = False 
    150150 
     
    156156      for file in tutorials: 
    157157         name = file.split('.')[0] 
     158         local_env = base_env.Copy() 
     159         mylibs = local_env['LIBS'] 
     160         for l in open(file).readlines(): 
     161            if l.startswith("// Libs:"): 
     162                mylibs += ["OSG"+m for m in l[8:].split()] 
     163          
     164         print file, mylibs 
    158165         # Build the test program and install into tree 
    159          loader = base_env.Program(name+runtime_suffix, file
     166         loader = local_env.Program(name+runtime_suffix, file, LIBS = mylibs
    160167 
    161168Default(".")