📄 dependency_property.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)# Regression test: virtual targets with different dependency properties were# considered different by 'virtual-target.register', but the code which# determined target paths ignored dependency properties --- so both targets used# to be placed to the same location.import BoostBuildimport stringt = BoostBuild.Tester()t.write("jamroot.jam", """lib foo : foo.cpp ;exe hello : hello.cpp ;exe hello2 : hello.cpp : <library>foo ;""")t.write("hello.cpp", "int main() {}\n")t.write("foo.cpp", """#ifdef _WIN32__declspec(dllexport)#endifvoid foo() {}""")t.run_build_system("--no-error-backtrace", status=1)t.fail_test(string.find(t.stdout(), "Duplicate name of actual target") == -1)t.cleanup()
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -