Changeset 532

Show
Ignore:
Timestamp:
02/12/07 03:15:52 (2 years ago)
Author:
vossg
Message:

fixed : apply additional libs/includes first

osg-config use win path for windows

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/SConstruct

    r523 r532  
    233233   def completeProcess(self, env): 
    234234      if self.value: 
    235          for i in self.value.split(':'): 
     235         for i in self.value.split(os.pathsep): 
    236236            exec("env.Append(%s = [i])" % self.key) 
    237237 
     
    731731#    This should not require any changes unless a new option group is added. 
    732732 
     733for opt in extra_libs_options.itervalues(): 
     734    if opt not in image_format_options.itervalues(): 
     735        opts.AddOption(opt) 
     736 
    733737opts.AddOption(sca_opts.SeparatorOption("\nBuild/Install settings")) 
    734738for opt in build_options.itervalues(): 
     
    749753    opts.AddOption(opt) 
    750754 
    751 for opt in extra_libs_options.itervalues(): 
    752     if opt not in image_format_options.itervalues(): 
    753         opts.AddOption(opt) 
    754755 
    755756opts.AddOption(sca_opts.SeparatorOption("\nAdvanced options")) 
     
    978979         lib_map_str = pprint.pformat(lib_map_build_list) 
    979980 
     981         if "win32" == platform: 
     982             inst_inc_path = inst_paths["include"].replace('\\','\\\\') 
     983             inst_prefix   = common_env["prefix"].replace('\\','\\\\') 
     984             inst_lib_path = inst_paths["lib"].replace('\\','\\\\') 
     985         else: 
     986             inst_inc_path = inst_paths["include"] 
     987             inst_prefix   = common_env["prefix"] 
     988             inst_lib_path = inst_paths["lib"] 
     989 
    980990         submap = {'@LIB_MAP_STR@'      : lib_map_str, 
    981                    '@PREFIX@'           : common_env["prefix"]
    982                    '@LIBPATH@'          : inst_paths["lib"]
    983                    '@INCPATH@'          : inst_paths["include"]
     991                   '@PREFIX@'           : inst_prefix
     992                   '@LIBPATH@'          : inst_lib_path
     993                   '@INCPATH@'          : inst_inc_path
    984994                   '@VERSION@'          : opensg_version_string, 
    985995                   '@LIBRARY_UTIL_SRC@' : file(pj('Tools','scons-build','LibraryUtils.py')).read()} 
  • trunk/osg-config.in

    r495 r532  
    8080 
    8181   (options, pos_args) = parser.parse_args()   
    82     
     82 
    8383   # Process simple single options 
    8484   if options.prefix: 
     
    8888      print version 
    8989      return 
    90     
     90 
    9191   # Try to find libname 
    9292   # - Try given name and name with OSG or OSGWindow prefix 
     
    101101               break 
    102102 
    103        
     103 
    104104   # Make sure we have libraries 
    105105   if len(libraries) == 0: 
     
    113113      options.lib_ext = "" 
    114114      options.libpath_prefix = "" 
    115     
     115 
    116116   # Create a configuration adapter for the required library 
    117117   default_lib_settings = LibraryInfo() 
    118118   default_lib_settings.libpath.insert(0, inst_lib_path)  
    119119   default_lib_settings.cpppath.insert(0, inst_inc_path) 
     120 
     121   lib_suffix = "" 
     122 
     123   if options.dbg: 
     124       lib_suffix = "_d" 
     125 
     126 
    120127   config_info = ConfigInfoAdapter(libraries, lib_map, default_lib_settings, 
    121                      options.inc_prefix, options.lib_prefix, options.libpath_prefix, 
    122                      "", options.lib_ext) 
    123              
     128                                   options.inc_prefix, options.lib_prefix,  
     129                                   options.libpath_prefix, lib_suffix, options.lib_ext) 
     130 
    124131   if options.cflags: 
    125132      print config_info.getIncPathStr()