]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/lib_source_property.py
3 # Copyright (C) Vladimir Prus 2006.
4 # Distributed under the Boost Software License, Version 1.0. (See
5 # accompanying file LICENSE_1_0.txt or copy at
6 # http://www.boost.org/LICENSE_1_0.txt)
8 # Regression test: if a library had no explicit sources, but only <source>
9 # properties, it was built as if it were a searched library, and the specified
10 # sources were not compiled.
14 t
= BoostBuild
.Tester(use_test_config
=False)
16 t
.write("jamroot.jam", """
17 lib a : : <source>a.cpp ;
28 t
.expect_addition("bin/$toolset/debug*/a.obj")
33 # Now try with <conditional>.
34 t
.write("jamroot.jam", """
35 rule test ( properties * )
37 return <source>a.cpp ;
39 lib a : : <conditional>@test ;
43 t
.expect_addition("bin/$toolset/debug*/a.obj")