Last change
on this file since 29 was
29,
checked in by landauf, 16 years ago
|
updated boost from 1_33_1 to 1_34_1
|
File size:
862 bytes
|
Line | |
---|
1 | |
---|
2 | import common ; |
---|
3 | import "class" : new ; |
---|
4 | |
---|
5 | rule generate-example ( project name : property-set : sources * ) |
---|
6 | { |
---|
7 | local result ; |
---|
8 | for local s in $(sources) |
---|
9 | { |
---|
10 | #local ea = [ $(s).action ] ; |
---|
11 | #local ep = [ $(ea).properties ] ; |
---|
12 | |
---|
13 | # Create a new action, that takes the source target |
---|
14 | # and runs 'common.copy' comamnd on it. |
---|
15 | local a = [ |
---|
16 | new non-scanning-action $(s) : common.copy : $(property-set) ] ; |
---|
17 | |
---|
18 | local source-name = [ $(s).name ] ; |
---|
19 | |
---|
20 | # Create the target to represent the result of the action. |
---|
21 | # The target has the name that was specified in Jamfile |
---|
22 | # and passed here via the 'name' parameter, |
---|
23 | # and the same type and project as the source. |
---|
24 | result += [ new file-target $(name) |
---|
25 | : [ $(s).type ] |
---|
26 | : $(project) |
---|
27 | : $(a) ] ; |
---|
28 | } |
---|
29 | return $(result) ; |
---|
30 | } |
---|
31 | |
---|
32 | generate a2 : a.cpp : <generating-rule>@generate-example ; |
---|
Note: See
TracBrowser
for help on using the repository browser.