Changeset 77

Show
Ignore:
Timestamp:
09/08/06 15:14:21 (2 years ago)
Author:
allenb
Message:

Fixes to temporarily deal with OpenSG not using "OpenSG" in the includes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/SConstruct

    r73 r77  
    346346   paths['base']      = os.path.abspath(common_env['prefix']) 
    347347   paths['lib']       = pj(paths['base'], 'lib') 
    348    paths['include']   = pj(paths['base'], 'include', 'OpenSG')    
     348   paths['include']   = pj(paths['base'], 'include')    
    349349   paths['bin']       = pj(paths['base'], 'bin')    
    350350   print "using prefix: ", paths['base']          
     
    370370      definemap.update( {"OSG_PTHREAD_ELF_TLS":(common_env["pthread_elf_tls"],"Use elf tls with pthreads."),} ) 
    371371    
    372    common_env.DefineBuilder(pj(paths["include"],"OSGConfigured.h"),Value(definemap),  
     372   common_env.DefineBuilder(pj(paths["include"],"OpenSG","OSGConfigured.h"),Value(definemap),  
    373373                            definemap=definemap) 
    374374    
     
    378378   print "libtypes: ", variant_helper.variants["libtype"]  
    379379   print "archs: ",    variant_helper.variants["arch"]     
    380    common_env.Append(CPPPATH = [paths['include'],]) 
     380   common_env.Append(CPPPATH = [paths['include'],pj(paths['include'],"OpenSG")]) 
    381381    
    382382   for combo in variant_helper.iterate(locals(), base_bldr, common_env):             
  • trunk/Source/SConscript

    r61 r77  
    3333   # Install headers (but only do it once during variant_pass 0 ) 
    3434   if variant_pass == 0:       
    35       lib_env.Install(inst_paths["include"], library.header_files) 
     35      lib_env.Install(pj(inst_paths["include"],"OpenSG"), library.header_files) 
    3636    
    3737   # ---- Build Tests ---- #    
  • trunk/osg-config.in

    r76 r77  
    1717#   calling the appropriate methods of the library info classes. 
    1818# 
    19 import os, sys 
     19import os, os.path, sys 
     20pj = os.path.join 
    2021from optparse import OptionParser 
    2122 
     
    112113   default_lib_settings.libpath.insert(0, inst_lib_path)  
    113114   default_lib_settings.cpppath.insert(0, inst_inc_path) 
     115   default_lib_settings.cpppath.insert(0, pj(inst_inc_path,"OpenSG")) 
    114116   config_info = ConfigInfoAdapter(libraries, lib_map, default_lib_settings, 
    115117                     options.inc_prefix, options.lib_prefix, options.libpath_prefix)