Changeset 19017

Show
Ignore:
Timestamp:
07/11/06 09:55:36 (2 years ago)
Author:
patrick
Message:

MF20 [rev 19016]: Now that we are using automatic linking with Boost

libraries, we do not need to worry about which Boost.Build
toolset to use. The Boost automatic linking stuff figures
that out on its own.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/trunk/README-WINDOWS.html

    r18808 r19017  
    127127    which the Boost headers will be found. 
    128128  </dd> 
    129   <dt><tt>BOOST_TOOL</tt></dt> 
    130   <dd> 
    131     The name of the Boost Jam toolset used to compile Boost.  Generally, 
    132     this will be either <tt>vc7</tt>, <tt>vc71</tt>, or <tt>vc80</tt>, but it 
    133     depends on how Boost was compiled.  To determine which toolset was used, look 
    134     at the names of the libraries in <tt>%BOOST_ROOT%\lib</tt>.  For example, 
    135     the name of the Boost.Filesystem DLL may be 
    136     <tt>boost_filesystem-<b>vc7</b>-mt-1_31.dll</tt> where the 
    137     <tt>vc7</tt> part of the file name is the value to use for this 
    138     setting. 
    139  
    140     <blockquote> 
    141       <b>NOTE:</b> There is some inconsistency between the name of the 
    142       toolset specified when running <tt>bjam</tt> to compile and install 
    143       Boost.  For example, the name of the Visual C++ 7.1 toolset is 
    144       <tt>vc7_1</tt>, but the compiled libraries names contain the 
    145       substring <tt>vc71</tt>.  <i>The value to use is the substring in the 
    146       library name.</i> 
    147     </blockquote> 
    148   </dd> 
    149129  <dt><tt>BOOST_VERSION</tt></dt> 
    150130  <dd> 
  • juggler/trunk/build_windows.py

    r18980 r19017  
    151151   return (cl_ver_major, cl_ver_minor, vc_dir) 
    152152 
    153 def guessBoostToolset(clVerMajor, clVerMinor): 
    154    if clVerMajor == 13 and clVerMinor < 10: 
    155       boost_tool_guess = 'vc7' 
    156    elif clVerMajor == 13 and clVerMinor >= 10: 
    157       boost_tool_guess = 'vc71' 
    158    else: 
    159       boost_tool_guess = 'vc80' 
    160  
    161    return boost_tool_guess 
    162  
    163153def printStatus(msg): 
    164154   ''' 
     
    198188 
    199189def getDefaultVars(clVerMajor, clVerMinor): 
    200    boost_tool_fallback = guessBoostToolset(clVerMajor, clVerMinor) 
    201  
    202190   required = [] 
    203191   required.append(BuildOption('BOOST_ROOT', 
     
    208196                               'Directory containing the Boost C++ header tree', 
    209197                               '')) 
    210    required.append(BuildOption('BOOST_TOOL', 
    211                                'The Boost.Build toolset library name component', 
    212                                boost_tool_fallback, False)) 
    213198   required.append(BuildOption('NSPR_ROOT', 'NSPR installation directory', '')) 
    214199   required.append(BuildOption('CPPDOM_ROOT', 'CppDOM installation directory', 
     
    294279def postProcessOptions(options): 
    295280   os.environ['instprefix'] = options['prefix'].replace('\\', '\\\\') 
    296  
    297    # Check for Boost 1.32 Visual C++ toolset names. 
    298    match = re.compile(r'vc-(\d)_(\d)').match(options['BOOST_TOOL']) 
    299  
    300    if match is not None: 
    301       os.environ['BOOST_TOOL'] = 'vc%s%s' % (match.group(1), match.group(2)) 
    302281 
    303282   # If the %JAVA_HOME% setting is a valid directory, add its bin subdirectory