]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/library_property.py
3 # Copyright 2004 Vladimir Prus
4 # Distributed under the Boost Software License, Version 1.0.
5 # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
7 # Test that the <library> property has no effect on "obj" targets. Previously,
8 # it affected all targets, so
10 # project : requirements <library>foo ;
11 # exe a : a.cpp helper ;
12 # obj helper : helper.cpp : <optimization>off ;
14 # caused 'foo' to be built with and without optimization.
18 t
= BoostBuild
.Tester(use_test_config
=False)
20 t
.write("jamroot.jam", """
21 project : requirements <library>lib//x ;
23 obj foo : foo.cpp : <variant>release ;
31 t
.write("foo.cpp", """
36 t
.write("lib/x.cpp", """
44 t
.write("lib/jamfile.jam", """
48 t
.write("lib/jamroot.jam", """
53 t
.expect_addition("bin/$toolset/debug*/a.exe")
54 t
.expect_nothing("lib/bin/$toolset/release/x.obj")