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

📄 gcc.jam

📁 C++的一个好库。。。现在很流行
💻 JAM
字号:

import property ;

rule compile ( target : sources * : property-set * )
{
    local options ;
    for local p in $(property-set)
    {
        if $(p) = <optimization>on 
        {
            options += -O2 ;
        }
        else if $(p) = <debug-symbols>on 
        {
            options += -g ;
        }
        else if $(p:G) = <define>
        {
            options += -D$(p:G=) ;
        }        
    }
    OPTIONS on $(target) = $(options) ;
}

actions compile
{
    g++ $(OPTIONS) -c -o $(<) $(>) 
}

rule link ( target : sources * : property-set * )
{
    local options ;
    if <debug-symbols>on in $(property-set)
    {
        options += -g ;
    }
    OPTIONS on $(target) = $(options) ;
}

actions link
{
    g++ $(OPTIONS) -o $(<) $(>)
}

⌨️ 快捷键说明

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