jamfile.v2

来自「Boost provides free peer-reviewed portab」· V2 代码 · 共 57 行

V2
57
字号
# Jamfile.v2## Copyright (c) 2007-2008# Steven Watanabe## Distributed under the Boost Software License, Version 1.0. (See# accomanying file LICENSE_1_0.txt or copy at# http://www.boost.org/LICENSE_1_0.txtimport testing ;import path ;import regex ;import print ;project test_headers :    requirements <include>$(BOOST_ROOT) <include>../../..;headers = [ path.glob-tree ../../../boost/units : *.hpp : detail ] ;rule setup ( ) {  for local file in $(headers) {    result += [ compile test.cpp :                 <define>BOOST_UNITS_HEADER_NAME=$(file)                 <dependency>$(file)               :                  [ regex.replace [ path.relative-to ../../.. $(file) ] "/" "_" ] ] ;  }  return $(result) ;}tests = [ setup ] ;rule generate-include-all ( target : sources * : properties * ) {    print.output $(target) ;    for local file in $(sources) {        print.text "#include <$(file:G=)>" : overwrite ;    }}make include_all1.cpp : $(headers) : @generate-include-all ;make include_all2.cpp : $(headers) : @generate-include-all ;import testing ;test-suite units_headers :  $(tests)# this ought to catch non-inlined functions and other duplicate definitions  [ link include_all1.cpp include_all2.cpp main.cpp : <include>. : include_all_headers ]  ;

⌨️ 快捷键说明

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