Ticket #9304: bjam-b2-docs-cleanup.patch
File bjam-b2-docs-cleanup.patch, 8.1 KB (added by , 9 years ago) |
---|
-
tools/build/v2/doc/src/architecture.xml
83 83 84 84 <listitem><para> 85 85 The targets are returned to the top level code. They are converted 86 into bjam targets (via <code>virtual-target.actualize</code>) and passed87 to bjamfor building.86 into Boost Build targets (via <code>virtual-target.actualize</code>) 87 and passed to Boost Build for building. 88 88 </para></listitem> 89 89 </orderedlist> 90 90 </para> … … 166 166 Virtual targets correspond to atomic updatable entities. Each virtual 167 167 target can be assigned an updating action -- instance of the 168 168 <code>action</code> class. The action class, in turn, contains a list of 169 source targets, properties, and a name of an bjam action which should be170 executed.169 source targets, properties, and a name of an Boost Build action which 170 should be executed. 171 171 </para> 172 172 173 173 <para> … … 183 183 that the real file names are computed, and the commands that should be run 184 184 are generated. This is done by the <code>virtual-target.actualize</code> 185 185 and <code>action.actualize</code> methods. The first is conceptually 186 simple, while the second needs additional explanation. Commands in bjam186 simple, while the second needs additional explanation. Commands in Boost Build 187 187 are generated in a two-stage process. First, a rule with an appropriate 188 188 name (for example "gcc.compile") is called and is given a list of target 189 189 names. The rule sets some variables, like "OPTIONS". After that, the … … 308 308 <para> 309 309 As stated above, it is possible to compile a C++ file multiple times, 310 310 using different include paths. Therefore, include dependencies for those 311 compilations can be different. The problem is that bjamdoes not allow311 compilations can be different. The problem is that Boost Build does not allow 312 312 multiple scans of the same target. 313 313 </para> 314 314 315 315 <para> 316 316 The solution in Boost.Build is straightforward. When a virtual target is 317 converted to a bjamtarget (via the317 converted to a Boost Build target (via the 318 318 <literal>virtual-target.actualize</literal> method), we specify the 319 scanner object to be used. The actualize method will create different bjam319 scanner object to be used. The actualize method will create different Boost Build 320 320 targets for different scanners. 321 321 </para> 322 322 … … 355 355 <listitem><simpara> 356 356 If when compiling "a.cpp" there is an include of "a.h", the "dir" 357 357 directory is on the include path, and a target called "a.h" will be 358 generated in "dir", then bjamshould discover the include, and create358 generated in "dir", then Boost Build should discover the include, and create 359 359 "a.h" before compiling "a.cpp". 360 360 </simpara></listitem> 361 361 -
tools/build/v2/doc/src/extending.xml
613 613 and the target type. When invoked, the generator will create a target 614 614 of type <literal>CPP</literal> with a source target of 615 615 type <literal>VERBATIM</literal> as the only source. But what command 616 will be used to actually generate the file? In bjam, actions are616 will be used to actually generate the file? In Boost Build, actions are 617 617 specified using named "actions" blocks and the name of the action 618 618 block should be specified when creating targets. By convention, 619 619 generators use the same name of the action block as their own id. So, … … 970 970 971 971 972 972 <para> Note the <code>bind DEF_FILE</code> part. It tells 973 bjamto translate the internal target name in973 Boost Build to translate the internal target name in 974 974 <varname>DEF_FILE</varname> to a corresponding filename in 975 975 the <code>link</code> action. Without it the expansion of 976 976 <code>$(DEF_FILE)</code> would be a strange symbol that is … … 992 992 </programlisting> 993 993 <!-- You *must* explain the part in [...] above. It's completely opaque to the casual reader --> 994 994 995 This is needed to accomodate some bug in bjam, which hopefully995 This is needed to accomodate some bug in Boost Build, which hopefully 996 996 will be fixed one day. 997 997 <!-- This is *NOT* a bug!! Anyway, BBv2 shouild handle this automatically. Why doesn't it? --> 998 998 </para></listitem> -
tools/build/v2/doc/src/install.xml
103 103 </para> 104 104 105 105 <para>Placing Boost.Build into <filename>/usr/share/boost-build</filename> 106 will make sure that <command>b jam</command> will find Boost.Build106 will make sure that <command>b2</command> will find Boost.Build 107 107 without any additional setup.</para> 108 108 </listitem> 109 109 … … 120 120 </para> 121 121 122 122 <para>If those guidelines are met, users will be able to invoke 123 <command>b jam</command> without any explicit configuration.123 <command>b2/command> without any explicit configuration. 124 124 </para> 125 125 126 126 -
tools/build/v2/doc/src/overview.xml
580 580 581 581 <section id="bbv2.overview.invocation"> 582 582 <title>Invocation</title> 583 584 <note> 585 <para> 586 As of Boost 1.47.0, the official name of Boost.Build executable is <command>b2</command>. The bootstrap scripts create a copy with the old name <command>bjam</command> to prevent third-party build scripts from failing. Authors are encouraged to update their scripts to refer to the new name. 587 </para> 588 </note> 583 589 584 590 <para>To invoke Boost.Build, type <command>b2</command> on the command line. Three kinds 585 591 of command-line tokens are accepted, in any order:</para> -
tools/build/v2/doc/src/reference.xml
17 17 <section id="bbv2.reference.init"> 18 18 <title>Initialization</title> 19 19 20 <para>bjam's first job upon startup is to load the Jam code that 20 <para>First job of the Boost Build's command <command>b2</command> 21 upon startup is to load the Jam code that 21 22 implements the build system. To do this, it searches for a file 22 23 called <filename>boost-build.jam</filename>, first in the invocation directory, then 23 24 in its parent and so forth up to the filesystem root, and finally -
tools/build/v2/doc/src/tasks.xml
447 447 <varname>args</varname> and <varname>input-files</varname> as command-line 448 448 arguments. The <varname>args</varname> parameter is passed verbatim and 449 449 the values of the <varname>input-files</varname> parameter are treated as 450 paths relative to containing Jamfile, and are adjusted if <command>b jam451 </command>is invoked from a different directory. The450 paths relative to containing Jamfile, and are adjusted if <command>b2</command> 451 is invoked from a different directory. The 452 452 <code>run-fail</code> rule is identical to the <code>run</code> rule, 453 453 except that it expects that the run fails. 454 454 </para>