Changeset 52
- Timestamp:
- 09/05/06 17:06:25 (2 years ago)
- Files:
-
- branches/scons_build_creation/SConstruct (modified) (1 diff)
- branches/scons_build_creation/Source/Base/build.info (modified) (1 diff)
- branches/scons_build_creation/Source/SConscript (modified) (2 diffs)
- branches/scons_build_creation/Source/System/NodeCores/Drawables/Base/OSGMaterialDrawable.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/scons_build_creation/SConstruct
r45 r52 96 96 # Create option objects 97 97 boost_options = sca_opts.Boost.Boost("boost","1.31.0",required=True) 98 99 glut_libname = "glut" 100 tiff_libname = "tiff" 101 if "win32" == platform: 102 glut_libname = "glut32" 103 tiff_libname = "tif32" 104 98 105 jpeg_option = sca_opts.StandardPackageOption("jpeg","Jpeg library location", 99 106 library="jpeg", required=False) 100 107 tiff_option = sca_opts.StandardPackageOption("tiff","Tiff library location", 101 library= "tiff", required=False)108 library=tiff_libname, required=False) 102 109 png_option = sca_opts.StandardPackageOption("png","PNG library location", 103 110 library="png", required=False) 104 105 111 glut_option = sca_opts.StandardPackageOption("glut","GLUT library location", 106 library= "glut", header="GL/glut.h", required=False)112 library=glut_libname, header="GL/glut.h", required=False) 107 113 108 114 format_options = [jpeg_option,tiff_option,png_option] branches/scons_build_creation/Source/Base/build.info
r35 r52 7 7 osg_dep_libs = [] 8 8 if "win32" == platform: 9 libs = ['opengl32' ]9 libs = ['opengl32',"glu32","winmm", "wsock32"] 10 10 cpppath = [] 11 11 else: branches/scons_build_creation/Source/SConscript
r36 r52 10 10 11 11 for (lib_name, library) in lib_map.iteritems(): 12 print "Library: ", lib_name, " tests:", library.test_files 13 14 # ---- Setup and Build library --- # 12 15 lib_env = common_lib_env.Copy() 13 16 14 print "Library: ", lib_name, " tests:", library.test_files15 17 # XXX: Apply custom options 16 18 # TODO: OSG_COMPILEBASELIB … … 27 29 # lib_env.Install(inst_paths['lib'], static_lib) 28 30 29 # Build tests 30 # - Put them all in the local 'test' subdir 31 default_lib_settings = LibraryInfo() 32 default_lib_settings.libpath.insert(0, inst_paths["lib"]) 33 default_lib_settings.cpppath.insert(0, inst_paths["include"]) 34 35 config_info = ConfigInfoAdapter(library.osg_test_libs, lib_map, default_lib_settings) 36 37 test_env = build_env.Copy() 38 test_env.Append(CPPPATH=library.test_cpppath + config_info.getIncPath(), 39 LIBPATH=library.test_libpath + config_info.getLibPath(), 40 LIBS=[lib_name] + config_info.getLibs() + library.other_test_libs) 41 for s in library.test_files: 42 test_env.Program(target= pj("..","test",os.path.splitext(os.path.basename(s))[0]), 43 source=s) 44 45 # Handle headers 31 # Install headers (but only do it once during variant_pass 0 ) 46 32 if variant_pass == 0: 47 33 lib_env.Install(inst_paths["include"], library.header_files) 34 35 # ---- Build Tests ---- # 36 # Verify we have all the deps for the tests 37 # todo: How do we verify the "other test libs" 38 have_test_deps = True 39 for n in library.osg_test_libs: 40 if not lib_map.has_key(n): 41 have_test_deps = False 42 print " missing test dep library:", n 43 44 if have_test_deps: 45 # default settings to pass to config info 46 default_lib_settings = LibraryInfo() 47 default_lib_settings.libpath.insert(0, inst_paths["lib"]) 48 default_lib_settings.cpppath.insert(0, inst_paths["include"]) 49 config_info = ConfigInfoAdapter(library.osg_test_libs, lib_map, default_lib_settings) 50 51 test_env = build_env.Copy() 52 test_env.Append(CPPPATH=library.test_cpppath + config_info.getIncPath(), 53 LIBPATH=library.test_libpath + config_info.getLibPath(), 54 LIBS=[lib_name] + config_info.getLibs() + library.other_test_libs) 55 56 # - Build them all in the local 'test' subdir 57 for s in library.test_files: 58 test_env.Program(target= pj("..","test",os.path.splitext(os.path.basename(s))[0]), 59 source=s) 60 61 # Done branches/scons_build_creation/Source/System/NodeCores/Drawables/Base/OSGMaterialDrawable.h
r2 r52 56 56 */ 57 57 58 class OSG_ SYSTEM_DLLMAPPING MaterialDrawable : public MaterialDrawableBase58 class OSG_DRAWABLE_DLLMAPPING MaterialDrawable : public MaterialDrawableBase 59 59 { 60 60 private:
