]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/project-test4/jamroot.jam
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / tools / build / test / project-test4 / jamroot.jam
1 # Copyright 2002, 2003, 2005 Vladimir Prus
2 # Distributed under the Boost Software License, Version 1.0.
3 # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
4
5 import os ;
6 import gcc ;
7 import property ;
8 import toolset ;
9
10 rule properties-as-path ( properties * )
11 {
12 local r ;
13 for local p in $(properties)
14 {
15 if $(p:G) != <action>
16 {
17 r += $(p) ;
18 }
19 }
20 return [ property.as-path
21 [ property.remove incidental : $(r) ] ] ;
22 }
23
24
25 toolset.flags yfc-compile KNOWN-PROPERTIES : <toolset> <optimization> ;
26 toolset.flags yfc-link KNOWN-PROPERTIES : <toolset> <optimization> ;
27
28
29 rule yfc-compile ( target : sources * : property-set * )
30 {
31 PROPERTIES on $(target) = [ properties-as-path $(property-set) ] ;
32 }
33
34 actions yfc-compile
35 {
36 echo $(PROPERTIES) > $(<)
37 echo $(>) >> $(<)
38 }
39
40 rule yfc-link ( target : sources * : property-set * )
41 {
42 PROPERTIES on $(target) = [ properties-as-path $(property-set) ] ;
43 }
44
45 actions yfc-link
46 {
47 echo $(PROPERTIES) > $(<)
48 echo $(>) >> $(<)
49 }
50
51 if [ os.name ] = VMS
52 {
53 actions yfc-compile
54 {
55 PIPE WRITE SYS$OUTPUT "$(PROPERTIES)" | TYPE SYS$INPUT /OUT=$(<:W)
56 PIPE WRITE SYS$OUTPUT "$(>:J= ",")" | APPEND /NEW SYS$INPUT $(<:W)
57 }
58
59 actions yfc-link
60 {
61 PIPE WRITE SYS$OUTPUT "$(PROPERTIES)" | TYPE SYS$INPUT /OUT=$(<:W)
62 OPEN /APPEND FOUT $(<:W)
63 WRITE FOUT "$(>:J= ",")"
64 CLOSE FOUT
65 }
66 }
67
68 #IMPORT $(__name__) : yfc-compile yfc-link : : yfc-compile yfc-link ;