]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/core_bindrule.py
3 # Copyright 2001 Dave Abrahams
4 # Copyright 2011 Steven Watanabe
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)
11 t
= BoostBuild
.Tester(["-d1"], pass_toolset
=0)
13 t
.write("subdir1/file-to-bind", "# This file intentionally left blank")
15 t
.write("file.jam", """\
16 rule do-nothing ( target : source )
18 DEPENDS $(target) : $(source) ;
20 actions quietly do-nothing { }
22 # Make a non-file target which depends on a file that exists
24 SEARCH on file-to-bind = subdir1 ;
26 do-nothing fake-target : file-to-bind ;
28 # Set jam up to call our bind-rule
29 BINDRULE = bind-rule ;
31 rule bind-rule ( target : path )
33 ECHO "found:" $(target) at $(path) ;
36 DEPENDS all : fake-target ;
39 t
.run_build_system(["-ffile.jam"], stdout
="""\
41 found: file-to-bind at subdir1%sfile-to-bind