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

📄 rebuilds.py

📁 Boost provides free peer-reviewed portable C++ source libraries. We emphasize libraries that work
💻 PY
字号:
#!/usr/bin/python# Copyright 2005 Dave Abrahams# 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 BoostBuildt = BoostBuild.Tester(pass_toolset=0)t.write('file.jam', '''rule make{    DEPENDS $(<) : $(>) ;    DEPENDS all : $(<) ;}actions make{    echo "******" making $(<) from $(>) "******"    echo made from $(>) > $(<)}make aux1 : bar ;make foo : bar ;REBUILDS foo : bar ;make bar : baz ;make aux2 : bar ;''')t.write('baz', 'nothing\n')t.run_build_system('-ffile.jam bar')t.expect_addition('bar')t.expect_nothing_more()t.wait_for_time_change_since_last_build()t.run_build_system('-ffile.jam foo')t.expect_touch('bar')t.expect_addition('foo')t.expect_nothing_more()t.run_build_system('-ffile.jam')t.expect_addition(['aux1', 'aux2'])t.expect_nothing_more()t.touch('bar')t.run_build_system('-ffile.jam')t.expect_touch(['foo', 'aux1', 'aux2'])t.expect_nothing_more()t.cleanup()

⌨️ 快捷键说明

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