Changeset 532
- Timestamp:
- 02/12/07 03:15:52 (2 years ago)
- Files:
-
- trunk/SConstruct (modified) (4 diffs)
- trunk/osg-config.in (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/SConstruct
r523 r532 233 233 def completeProcess(self, env): 234 234 if self.value: 235 for i in self.value.split( ':'):235 for i in self.value.split(os.pathsep): 236 236 exec("env.Append(%s = [i])" % self.key) 237 237 … … 731 731 # This should not require any changes unless a new option group is added. 732 732 733 for opt in extra_libs_options.itervalues(): 734 if opt not in image_format_options.itervalues(): 735 opts.AddOption(opt) 736 733 737 opts.AddOption(sca_opts.SeparatorOption("\nBuild/Install settings")) 734 738 for opt in build_options.itervalues(): … … 749 753 opts.AddOption(opt) 750 754 751 for opt in extra_libs_options.itervalues():752 if opt not in image_format_options.itervalues():753 opts.AddOption(opt)754 755 755 756 opts.AddOption(sca_opts.SeparatorOption("\nAdvanced options")) … … 978 979 lib_map_str = pprint.pformat(lib_map_build_list) 979 980 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 980 990 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, 984 994 '@VERSION@' : opensg_version_string, 985 995 '@LIBRARY_UTIL_SRC@' : file(pj('Tools','scons-build','LibraryUtils.py')).read()} trunk/osg-config.in
r495 r532 80 80 81 81 (options, pos_args) = parser.parse_args() 82 82 83 83 # Process simple single options 84 84 if options.prefix: … … 88 88 print version 89 89 return 90 90 91 91 # Try to find libname 92 92 # - Try given name and name with OSG or OSGWindow prefix … … 101 101 break 102 102 103 103 104 104 # Make sure we have libraries 105 105 if len(libraries) == 0: … … 113 113 options.lib_ext = "" 114 114 options.libpath_prefix = "" 115 115 116 116 # Create a configuration adapter for the required library 117 117 default_lib_settings = LibraryInfo() 118 118 default_lib_settings.libpath.insert(0, inst_lib_path) 119 119 default_lib_settings.cpppath.insert(0, inst_inc_path) 120 121 lib_suffix = "" 122 123 if options.dbg: 124 lib_suffix = "_d" 125 126 120 127 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 124 131 if options.cflags: 125 132 print config_info.getIncPathStr()
