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

📄 jamfile.v2

📁 boost库提供标准的C++ API 配合dev c++使用,功能更加强大
💻 V2
字号:
import os ;
import modules ;

# Use a very crude way to sense there python is locatted


local PYTHON_PATH = [ modules.peek : PYTHON_PATH ] ;
ECHO "XXX" $(PYTHON_PATH) ;

if [ GLOB /usr/local/include/python2.2 : * ]
{
    PYTHON_PATH = /usr/local ;
}
else if [ GLOB /usr/include/python2.2 : * ] 
{
    PYTHON_PATH = /usr ;
}

if [ os.name ] in CYGWIN NT
{
    lib_condition = <link>shared: ;
    defines = USE_DL_IMPORT ;
   
    # Declare a target for the python interpreter library
    lib python : : <name>python22 <search>$(PYTHON_PATH)/libs ;
    PYTHON_LIB = python ;    
} 
else 
{
   lib python : : <name>python2.2 ;
   PYTHON_LIB = python ;    
}



if $(PYTHON_PATH) {
    

project boost/python
    : source-location ../src
        : requirements <include>$(PYTHON_PATH)/include
          $(lib_condition)<library-path>$(PYTHON_PATH)/libs
            <link>shared:<library>$(PYTHON_LIB)
            <define>$(defines)
        : usage-requirements # requirement that will be propageted to *users* of this library
          <include>$(PYTHON_PATH)/include

# We have a bug which causes us to conclude that conditionalized
# properties in this section are not free.
#          $(lib_condition)<library-path>$(PYTHON_PATH)/lib/python2.2/config
#            <shared>true:<find-library>$(PYTHON_LIB)
            
          <library-path>$(PYTHON_PATH)/lib/python2.2/config
            <library>$(PYTHON_LIB)
    ;

lib boost_python
    : 
    numeric.cpp

    list.cpp
    long.cpp
    dict.cpp
    tuple.cpp
    str.cpp

    aix_init_module.cpp
    converter/from_python.cpp
    converter/registry.cpp
    converter/type_id.cpp
    object/enum.cpp
    object/class.cpp
    object/function.cpp
    object/inheritance.cpp
    object/life_support.cpp
    object/pickle_support.cpp
    errors.cpp
    module.cpp
    converter/builtin_converters.cpp
    converter/arg_to_python_base.cpp
    object/iterator.cpp
    object_protocol.cpp
    object_operators.cpp
    :   <link>static:<define>BOOST_PYTHON_STATIC_LIB 
        <define>BOOST_PYTHON_SOURCE
    : <link>shared
      ;
}

⌨️ 快捷键说明

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