dependency_property.py
来自「Boost provides free peer-reviewed portab」· Python 代码 · 共 37 行
PY
37 行
#!/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 + =
减小字号Ctrl + -
显示快捷键?