]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/project_dependencies.py
3 # Copyright 2003 Dave Abrahams
4 # Copyright 2002, 2003, 2004 Vladimir Prus
5 # Distributed under the Boost Software License, Version 1.0.
6 # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
8 # Test that we can specify a dependency property in project requirements, and
9 # that it will not cause every main target in the project to be generated in its
12 # The whole test is somewhat moot now.
16 t
= BoostBuild
.Tester(use_test_config
=False)
18 t
.write("jamroot.jam", "build-project src ;")
20 t
.write("lib/jamfile.jam", "lib lib1 : lib1.cpp ;")
22 t
.write("lib/lib1.cpp", """
29 t
.write("src/jamfile.jam", """
30 project : requirements <library>../lib//lib1 ;
35 t
.write("src/a.cpp", """
43 t
.copy("src/a.cpp", "src/b.cpp")
47 # Test that there is no "main-target-a" part.
48 # t.expect_addition("src/bin/$toolset/debug/a.exe")
49 # t.expect_addition("src/bin/$toolset/debug/b.exe")