]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <!DOCTYPE section PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN" | |
3 | "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd"> | |
4 | ||
5 | <section id="bbv2.reference.class.main-target"> | |
6 | ||
7 | <title>Class main-target</title> | |
8 | <indexterm> | |
9 | <primary>main-target</primary> | |
10 | </indexterm> | |
11 | ||
12 | <programlisting language="jam"> | |
13 | class main-target : <link linkend="bbv2.reference.class.abstract-target">abstract-target</link> { | |
14 | rule <link linkend="bbv2.reference.class.main-target.generate">generate</link> ( property-set ) | |
15 | ||
16 | # Methods inherited from <link linkend="bbv2.reference.class.abstract-target">abstract-target</link> | |
17 | rule <link linkend="bbv2.reference.class.abstract-target.name">name</link> ( ) | |
18 | rule <link linkend="bbv2.reference.class.abstract-target.project">project</link> ( ) | |
19 | rule <link linkend="bbv2.reference.class.abstract-target.location">location</link> ( ) | |
20 | rule <link linkend="bbv2.reference.class.abstract-target.full-name">full-name</link> ( ) | |
21 | } | |
22 | </programlisting> | |
23 | ||
24 | <para> | |
25 | A <link linkend="bbv2.reference.class.main-target">main-target</link> | |
26 | represents a named top-level target in a Jamfile. | |
27 | </para> | |
28 | ||
29 | <orderedlist> | |
30 | ||
31 | <listitem id="bbv2.reference.class.main-target.generate"> | |
32 | <indexterm zone="bbv2.reference.class.main-target.generate"> | |
33 | <primary>generate</primary> | |
34 | <secondary>Main Target Method</secondary> | |
35 | </indexterm> | |
36 | <code language="jam">rule generate ( property-set )</code> | |
37 | <para> | |
38 | Overrides | |
39 | <link linkend="bbv2.reference.class.abstract-target.generate">abstract-target.generate</link>. | |
40 | ||
41 | Select an alternative for this main target, by finding all alternatives | |
42 | whose requirements are satisfied by <literal>property-set</literal> and | |
43 | picking the one with the longest requirements set. Returns the result | |
44 | of calling <link linkend="bbv2.reference.class.basic-target.generate">generate</link> | |
45 | on that alternative. | |
46 | </para> | |
47 | ||
48 | <para> | |
49 | On success, returns: | |
50 | <itemizedlist> | |
51 | <listitem>a property-set with the usage requirements to be applied to dependents</listitem> | |
52 | <listitem>a list of produced virtual targets, which may be empty.</listitem> | |
53 | </itemizedlist> | |
54 | </para> | |
55 | </listitem> | |
56 | ||
57 | </orderedlist> | |
58 | ||
59 | </section> |