• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[[bbv2.reference.class.abstract-target]]
2= Class abstract-target
3
4Base class for all abstract targets.
5
6[source]
7----
8class abstract-target {
9    rule __init__ ( name : project )
10    rule name ( )
11    rule project ( )
12    rule location ( )
13    rule full-name ( )
14    rule generate ( property-set )
15}
16----
17
18Classes derived from
19link:#bbv2.reference.class.abstract-target[abstract-target]:
20
21* project-target
22* main-target
23* basic-target
24
25--
261. `rule __init__ ( name : project )`
27+
28`name`::
29  The name of the target in the Jamfile.
30`project`::
31  The link:#bbv2.reference.class.project-target[project] to which this
32  target belongs.
33
342. `rule name ( )`
35+
36Returns the name of this target.
37
383. `rule project ( )`
39+
40Returns the link:#bbv2.reference.class.project-target[project] for this
41target.
42
434. `rule location ( )`
44+
45Returns the location where the target was declared.
46
475. `rule full-name ( )`
48+
49Returns a user-readable name for this target.
50
516. [[bbv2.reference.class.abstract-target.generate]] `rule generate ( property-set )`
52+
53Generates virtual targets for this abstract target using the specified
54properties, unless a different value of some feature is required by the
55target. This is an abstract method which must be overridden by derived
56classes.
57+
58On success, returns:
59+
60* a property-set with the usage requirements to be applied to dependents
61* a list of produced virtual targets, which may be empty.
62+
63If `property-set` is empty, performs the default build of this target,
64in a way specific to the derived class.
65--