⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jamfile.v2

📁 C++的一个好库。。。现在很流行
💻 V2
字号:
# Boost.Iostreams Library Build Jamfile

# (C) Copyright Jonathan Turkanis 2004
# Distributed under the Boost Software License, Version 1.0. (See accompanying 
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)

# See http://www.boost.org/libs/iostreams for documentation.

project /boost/iostreams : source-location ../src ;

# The biggest trick in this Jamfile is to link to zlib and bzip2 when
# needed. To configure that, a number of variables are used, which must
# be set by user with 'path-constant' either in Boost's root Jamfile, or
# in user-config.jam.

# For each library with either link to existing binary, or build
# a library from the sources.

import modules ;
import os ;
local debug = [ MATCH (--debug-configuration) : [ modules.peek : ARGV ] ] ;


# Given a name of library, either 'zlib', or 'bzip2', creates the necessary
# main target and returns it. If compression is disabled, returns nothing.
# The 'sources' argument is the list of sources names for the library,
# which will be used if building the library.
rule create-library ( library-name : windows-name unix-name : sources + )
{
    local LIB = $(library-name:U) ;
    if ! $(library-name) in zlib bzip2
    {
        EXIT "Wrong library name passed to 'create-library' in libs/iostream/build/Jamfile.v2" ;
    }
    
    if $(NO_COMPRESSION) || $(NO_$(LIB))
    {
        if $(debug)
        {
            ECHO "notice: iostreams: not using $(library-name) compression " ;
        }        
    }
    else    
    {
        if ! $($(LIB)_INCLUDE) 
        {
            $(LIB)_INCLUDE = $($(LIB)_SOURCE) ;
        }
        
        # Should be use prebuilt library or built it owselfs?        
        if $($(LIB)_SOURCE)
        {
            return [ lib boost_$(library-name) 
              : $($(LIB)_SOURCE)/$(sources).c
              : <include>$($(LIB)_INCLUDE)            
              :
              : <include>$($(LIB)_INCLUDE)
              ] ;                        
        }
        else
        {
            if $(debug)
            {
                ECHO "notice: iostreams: using prebuilt $(library-name)" ;
            }
            
            # Should use prebuilt library.
            if ! $($(LIB)_BINARY)
            {
                # No explicit name specified, guess it.
                if [ os.name ] = NT
                {
                    $(LIB)_BINARY = $(windows-name) ;
                    lib boost_$(library-name) : : <name>$(windows-name) ;
                }
                else
                {
                    $(LIB)_BINARY = $(unix-name) ;
                }                                                
            }            
            return [ lib boost_$(library-name) 
              : 
              : <name>$($(LIB)_BINARY)  
                <search>$($(LIB)_LIBPATH)  
              :
              : <include>$($(LIB)_INCLUDE)
              ] ;

        }                
    }        
}


local sources ;
local z = [ create-library zlib : zll z : adler32 compress 
     crc32 deflate gzio infback inffast inflate inftrees trees uncompr zutil ] ;

if $(z)
{
    sources += boost_zlib zlib.cpp ;
}

local bz2 = [ create-library bzip2 : libbz2 bz2 : 
    blocksort bzlib compress crctable decompress huffman 
    mk251 randtable ] ;

if $(bz2)
{
    sources += boost_bzip2 bzip2.cpp ;
}

lib boost_iostreams : $(sources) ;



  


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -