📄 default_features.py
字号:
#!/usr/bin/python# Copyright 2003 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)# Test that features with default values are always present in build properties# of any target.import BoostBuildt = BoostBuild.Tester()# Declare *non-propagated* feature foo.t.write("jamroot.jam", """import feature : feature ;feature foo : on off ;""")# Note that '<foo>on' will not be propagated to 'd/l'.t.write("jamfile.jam", """exe hello : hello.cpp d//l ;""")t.write("hello.cpp", """#ifdef _WIN32__declspec(dllimport)#endifvoid foo();int main() { foo(); }""")t.write("d/jamfile.jam", """lib l : l.cpp : <foo>on:<define>FOO ;""")t.write("d/l.cpp", """#ifdef _WIN32__declspec(dllexport)#endif#ifdef FOOvoid foo() {}#endif""")t.run_build_system()t.expect_addition("bin/$toolset/debug/hello.exe")t.cleanup()
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -