• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[[bbv2.reference.class.main-target]]
2= Class main-target
3
4[source,jam]
5----
6class main-target : abstract-target {
7    rule generate ( property-set )
8
9    # Methods inherited from abstract-target
10    rule name ( )
11    rule project ( )
12    rule location ( )
13    rule full-name ( )
14}
15----
16
17A link:#bbv2.reference.class.main-target[main-target] represents a named
18top-level target in a Jamfile.
19
20--
211. [[bbv2.reference.class.main-target.generate]] `rule generate ( property-set )`
22+
23Overrides
24link:#bbv2.reference.class.abstract-target.generate[abstract-target.generate].
25Select an alternative for this main target, by finding all alternatives
26whose requirements are satisfied by `property-set` and picking the one
27with the longest requirements set. Returns the result of calling
28link:#bbv2.reference.class.basic-target.generate[generate] on that
29alternative.
30+
31On success, returns:
32+
33* a property-set with the usage requirements to be applied to dependents
34* a list of produced virtual targets, which may be empty.
35--
36