Changeset 1166

Show
Ignore:
Timestamp:
04/15/08 08:43:30 (4 weeks ago)
Author:
vossg
Message:

changed: allow cxx options to be set on a lib by lib basis

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Source/SConscript

    r999 r1166  
    3939 
    4040   dep_libs = [l for l in config_info.getLibs() if l != full_lib_name] 
     41 
    4142   lib_env.Append(CPPPATH=config_info.getIncPath(), 
     43                  CXXFLAGS=config_info.getCXXFlags(), 
    4244                  LIBPATH=[inst_paths["lib_inst_combo"]] + config_info.getLibPath(), 
    4345                  LIBS=dep_libs, 
     
    9496      test_env = build_env.Copy() 
    9597      test_env.Append(CPPPATH=library.test_cpppath + config_info.getIncPath(), 
     98                      CXXFLAGS=config_info.getCXXFlags(), 
    9699                      LIBPATH=library.test_libpath + [inst_paths["lib_inst_combo"]] + config_info.getLibPath(), 
    97100                      LIBS=config_info.getLibs() + library.other_test_libs, 
  • trunk/Tools/scons-build/BuildInfoScanner.py

    r1052 r1166  
    6060        self.libAttributes = ["osg_dep_libs", "libs", "frameworks", "cpppath", 
    6161                              "libpath", "frameworkpath","osg_test_libs", 
    62                               "other_test_libs","test_cpppath", "test_libpath"] 
     62                              "other_test_libs","test_cpppath", 
     63                              "test_libpath", "cxx_flags"] 
    6364     
    6465    def scan(self, scanDir = ""): 
     
    124125                attribList = getattr(self.libMap[libName], attrib) 
    125126                attribList.extend([a for a in biDict[attrib] if a not in attribList]) 
    126          
     127 
    127128        # Collect source files from all directories and put them into 
    128129        # the active library object 
  • trunk/Tools/scons-build/LibraryUtils.py

    r495 r1166  
    2121      self.test_libpath = []         # Libpaths of libraries the tests depend on 
    2222      self.unittest_files = []       # list of source files for unit tests 
     23      self.cxx_flags = [] 
    2324 
    2425   def dump(self): 
     
    4142      for a in ["source_files","header_files","test_files","osg_dep_libs", 
    4243                "libs","libpath","frameworks","frameworkpath","cpppath", 
     44                "cxx_flags", 
    4345                "osg_test_libs","other_test_libs","test_cpppath","test_libpath","unittest_files"]: 
    4446         getattr(self,a).extend([i for i in getattr(other,a) if not i in getattr(self,a)]) 
     
    134136   def getFrameworkPath(self): 
    135137      return self.merged_lib.frameworkpath 
    136   
     138   def getCXXFlags(self): 
     139      return self.merged_lib.cxx_flags 
    137140