Changeset 1166
- Timestamp:
- 04/15/08 08:43:30 (4 weeks ago)
- Files:
-
- trunk/Source/SConscript (modified) (2 diffs)
- trunk/Tools/scons-build/BuildInfoScanner.py (modified) (2 diffs)
- trunk/Tools/scons-build/LibraryUtils.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Source/SConscript
r999 r1166 39 39 40 40 dep_libs = [l for l in config_info.getLibs() if l != full_lib_name] 41 41 42 lib_env.Append(CPPPATH=config_info.getIncPath(), 43 CXXFLAGS=config_info.getCXXFlags(), 42 44 LIBPATH=[inst_paths["lib_inst_combo"]] + config_info.getLibPath(), 43 45 LIBS=dep_libs, … … 94 96 test_env = build_env.Copy() 95 97 test_env.Append(CPPPATH=library.test_cpppath + config_info.getIncPath(), 98 CXXFLAGS=config_info.getCXXFlags(), 96 99 LIBPATH=library.test_libpath + [inst_paths["lib_inst_combo"]] + config_info.getLibPath(), 97 100 LIBS=config_info.getLibs() + library.other_test_libs, trunk/Tools/scons-build/BuildInfoScanner.py
r1052 r1166 60 60 self.libAttributes = ["osg_dep_libs", "libs", "frameworks", "cpppath", 61 61 "libpath", "frameworkpath","osg_test_libs", 62 "other_test_libs","test_cpppath", "test_libpath"] 62 "other_test_libs","test_cpppath", 63 "test_libpath", "cxx_flags"] 63 64 64 65 def scan(self, scanDir = ""): … … 124 125 attribList = getattr(self.libMap[libName], attrib) 125 126 attribList.extend([a for a in biDict[attrib] if a not in attribList]) 126 127 127 128 # Collect source files from all directories and put them into 128 129 # the active library object trunk/Tools/scons-build/LibraryUtils.py
r495 r1166 21 21 self.test_libpath = [] # Libpaths of libraries the tests depend on 22 22 self.unittest_files = [] # list of source files for unit tests 23 self.cxx_flags = [] 23 24 24 25 def dump(self): … … 41 42 for a in ["source_files","header_files","test_files","osg_dep_libs", 42 43 "libs","libpath","frameworks","frameworkpath","cpppath", 44 "cxx_flags", 43 45 "osg_test_libs","other_test_libs","test_cpppath","test_libpath","unittest_files"]: 44 46 getattr(self,a).extend([i for i in getattr(other,a) if not i in getattr(self,a)]) … … 134 136 def getFrameworkPath(self): 135 137 return self.merged_lib.frameworkpath 136 138 def getCXXFlags(self): 139 return self.merged_lib.cxx_flags 137 140
