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

📄 foo.jam

📁 Boost provides free peer-reviewed portable C++ source libraries. We emphasize libraries that work
💻 JAM
字号:
# Copyright 2003 Dave Abrahams # Copyright 2002, 2003, 2005 Vladimir Prus # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) import type ;import generators ;import os ;import print ;type.register FOO : foo ;generators.register-standard foo.foo : FOO : CPP H ;nl = "" ;rule foo ( targets * : sources * : properties * ){    # On NT, you need an exported symbol in order to have an     # import lib generated    # We won't really use the symbol defined here, just force    # lib creation.    if ( [ os.name ] = NT || [ modules.peek : OS ] in CYGWIN )        && <main-target-type>LIB in $(properties)    {        .decl =  "void __declspec(dllexport) foo(){}" ;    }        print.output $(<[1]) ;    print.text $(.decl:E="//")$(nl) ;    print.output $(<[2]) ;    print.text "#include <z.h>"$(nl) ;}

⌨️ 快捷键说明

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