]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/project_root_rule.py
3 # Copyright (C) Vladimir Prus 2005.
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 # Tests that we can declare a rule in Jamroot that will be can be called in
9 # child Jamfile to declare a target. Specifically test for use of 'glob' in that
14 t
= BoostBuild
.Tester(use_test_config
=False)
17 t
.write("jamroot.jam", """
18 project : requirements <link>static ;
19 rule my-lib ( name ) { lib $(name) : [ glob *.cpp ] ; }
22 t
.write("sub/a.cpp", """
25 t
.write("sub/jamfile.jam", """
30 t
.run_build_system(subdir
="sub")
32 t
.expect_addition("sub/bin/$toolset/debug/link-static*/foo.lib")