⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 c-customize3.html

📁 vxworks相关论文
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="86193"> </a>Installation directory recorded in the environment variable <b class="symbol_UC">WIND_BASE</b>. </div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="86196"> </a><b class="file">c:\tornado </b></div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="86323"> </a>T<b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">ornado host type</font></b> </div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="86198"> </a><b>$wind_host_type</b></div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="86200"> </a>Host type recorded in the environment variable <b class="symbol_UC">WIND_HOST_TYPE</b>.</div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="86203"> </a><b class="file">x86-win32 </b></div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="86325"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Tornado registry</font></b> </div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="86205"> </a><b>$wind_registry</b></div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="86207"> </a>Registry recorded in the environment variable <b class="symbol_UC">WIND_REGISTRY</b> </div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="86210"> </a><b class="file">mars </b></div></td><td width="10">&nbsp;</td></tr><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p></p><dd><p class="Body"><a name="85860"> </a>These macros are available for custom entries in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Build</font></b> menu as well as for the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Tools</font></b> menu. For information on making them available though the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Build</font></b> menu, see <a href="c-customize2.html#87251"><i class="title">9.2.4&nbsp;Project</i></a>. For information on using them for custom builds, see <a href="c-customize3.html#88707"><i class="title">9.3.3&nbsp;Customizing the Build Menu</i></a>.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="85842">9.3.2  &nbsp;&nbsp;Examples of Tools Menu Customization</a></i></h4></font><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="84560">Version Control</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84562"> </a>This example illustrates how to use the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Customize Tools</font></b> dialog box to add an <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Uncheckout</font></b> command to the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Tools</font></b> menu: the command cancels the checkout of whatever file is currently open in Tornado (that is, the file visible in the current editor window). <a href="c-customize3.html#87810">Figure&nbsp;9-13</a> illustrates the specification for a ClearCase command to uncheckout a module. <div class="frame"><h4 class="EntityTitle"><a name="87810"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 9-13:&nbsp;&nbsp;Uncheckout Command for Tools Menu</font></a></h4><dl class="margin"><div class="Anchor"><a name="87815"> </a><img class="figure" border="0" src="images/c-customize8.gif"></div></dl></div></p><dd><p class="Body"><a name="87801"> </a>The <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Menu Text</font></b> entry indicates that the command unchecks out a file, but is not specific to any particular file. The <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Tool Command</font></b> field uses the <b class="operator">$</b><b class="keyword">filepath</b> macro (<a href="c-customize3.html#85848"><i class="title">Macros for Customized Menu Commands</i></a>) to expand the current file to its full path name.</p><dd><p class="Body"><a name="84579"> </a>In this example, the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Prompt for Arguments</font></b> box is checked. When the new <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Uncheckout </font></b>command in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Tools</font></b> menu is executed, the predefined argument list appears as a default in a dialog box (shown in <a href="c-customize3.html#84591">Figure&nbsp;9-14</a>), to permit specifying other arguments if necessary.<div class="frame"><h4 class="EntityTitle"><a name="84591"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 9-14:&nbsp;&nbsp;Prompt for Arguments Dialog Box</font></a></h4><dl class="margin"><div class="Anchor"><a name="84588"> </a><img class="figure" border="0" src="images/c-customize9.gif"></div></dl></div></p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="84592">Alternate Editor</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84598"> </a><a href="c-customize3.html#87835">Figure&nbsp;9-15</a> illustrates the specification for a command to run the Windows Notepad editor on the file that is currently open in Tornado. The <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Menu Text</font></b> contains a useful name, while the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Tool Command</font></b> field uses the actual execution command and <b class="operator">$</b><b class="keyword">filepath</b> to identify the current file. In this case, <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Prompt for Arguments</font></b> is not checked; thus the editor runs immediately. <div class="frame"><h4 class="EntityTitle"><a name="87835"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 9-15:&nbsp;&nbsp;Custom Editor Command for Tools Menu</font></a></h4><dl class="margin"><div class="Anchor"><a name="87840"> </a><img class="figure" border="0" src="images/c-customize10.gif"></div></dl></div></p><dd><p class="Body"><a name="87844"> </a>Normally you would change the default editor to an external editor using the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">External Editor</font></b> tab under <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Tools&gt;Options</font></b>. In the case where you only wish to use an alternate editor some of the time, you may prefer this method. </p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="84608">Binary Utilities</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84610"> </a>Tornado includes a suite of software-development utilities described in the <i class="title">GNU ToolKit User's Guide: The GNU Binary Utilities</i>. If you execute any of these utilities frequently, it may be convenient to define commands in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Tools</font></b> menu for that purpose.</p><dd><p class="Body"><a name="84615"> </a><a href="c-customize3.html#84626">Figure&nbsp;9-16</a> illustrates the specification for a command to run the <b class="command">size</b><i class="textVariable">arch</i> utility, which lists the size of each section of an object module for target architecture <i class="textVariable">arch</i>. In this case, the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Tool Command</font></b> field uses <b class="file">$filedir/SIMNTgnu/$</b><b class="keyword">basename</b> to construct the path and name of the object file generated from the current source file The <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Working Directory</font></b> field is filled in using the browse option to locate the appropriate version of <b class="command">size</b><i class="textVariable">arch </i>in the correct directory. <div class="frame"><h4 class="EntityTitle"><a name="84626"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 9-16:&nbsp;&nbsp;Object-Module Size Command for Tools Menu</font></a></h4><dl class="margin"><div class="Anchor"><a name="84622"> </a><img class="figure" border="0" src="images/c-customize11.gif"></div></dl></div></p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="84628">World Wide Web</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84630"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans"></font></b>You can add a <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Tools</font></b> command to link your Web browser directly to announcements from Wind River Systems (and to related Internet resources). <a href="c-customize3.html#84645">Figure&nbsp;9-17</a> shows the specification for a <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Wind River Web Page</font></b> command. (For a description of the information available on the WRS home page, see <a href="c-custsvc3.html#84083"><i class="title">10.3&nbsp;WRS Broadcasts on the World Wide Web</i></a>.<div class="frame"><h4 class="EntityTitle"><a name="84645"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 9-17:&nbsp;&nbsp;Web Browser Command for Tools Menu</font></a></h4><dl class="margin"><div class="Anchor"><a name="84642"> </a><img class="figure" border="0" src="images/c-customize12.gif"></div></dl></div></p><dd><p class="Body"><a name="88703"> </a>Tornado itself does not include a Web browser. If you do not have a Web browser, or your system does not have direct Internet access, ignore this example; it provides convenient access to information, but no essential functionality. </p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="88707">9.3.3  &nbsp;&nbsp;Customizing the Build Menu</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="87919"> </a>If you are using Tornado 1.0.1 build techniques, you can add commands to the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Build </font></b>menu to build any object that can be generated using GNU make. Typically this requires first generating (or writing) a makefile that specifies the rules to build that object. It also requires checking <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Show Tornado 1.0.1 menu items</font></b> on the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Project</font></b> tab of the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Tools&gt;Options</font></b> menu (see <a href="c-customize2.html#87251"><i class="title">9.2.4&nbsp;Project</i></a>).</p><dd><p class="Body"><a name="88016"> </a>Once a makefile is in place, click <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Customize</font></b> in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Build </font></b>menu to add your own commands to the bottom part of that menu (or to remove commands you no longer need). The <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Customize Builds</font></b> dialog box appears (<a href="c-customize3.html#88022">Figure&nbsp;9-18</a>). This dialog box shows all custom entries already present in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Project</font></b> menu (if any), and allows you to add commands to, remove commands from, or reorder the list of custom <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Project</font></b> commands. <div class="frame"><h4 class="EntityTitle"><a name="88022"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 9-18:&nbsp;&nbsp;Dialog Box: Customize Builds</font></a></h4><dl class="margin"><div class="Anchor"><a name="88024"> </a><img class="figure" border="0" src="images/c-customize15.gif"></div></dl></div></p><dd><p class="Body"><a name="88033"> </a>The <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Customize Builds</font></b> dialog box has the following buttons:</p></dl><dl class="margin"><dd><div class="Item"><a name="88049"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Add</font></b></div><dl class="margin"><dd><div class="Indent"><a name="88050"> </a>Activates the list and check boxes at the bottom of the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Customize builds</font></b> dialog box and enters <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">New Build</font></b> in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Menu Text</font></b> list box. Replace <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">New Build</font></b> with the command description; when you click <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">OK</font></b>, the new menu item appears in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Build</font></b> menu. </div><br></dl><dd><div class="Item"><a name="88051"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Remove</font></b> </div><dl class="margin"><dd><div class="Indent"><a name="88052"> </a>Deletes the selected menu item from the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Build</font></b> menu. </div><br></dl><dd><div class="Item"><a name="88053"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Move Up</font></b> </div><dl class="margin"><dd><div class="Indent"><a name="88054"> </a>Moves the selected menu item up one line in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Menu Contents</font></b> list box and changes the displayed order on the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Build</font></b> menu.</div><br></dl><dd><div class="Item"><a name="88055"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Move Down</font></b> </div><dl class="margin"><dd><div class="Indent"><a name="88056"> </a>Moves the selected menu item down one line in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Menu Contents</font></b> list box and changes the displayed order on the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Build</font></b> menu.</div><br></dl><dd><div class="Item"><a name="88057"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">OK</font></b></div><dl class="margin"><dd><div class="Indent"><a name="88058"> </a>Applies your changes to the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Build</font></b> menu.</div><br></dl><dd><div class="Item"><a name="88059"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Cancel</font></b></div><dl class="margin"><dd><div class="Indent"><a name="88060"> </a>Discards your changes without modifying the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Build</font></b> menu.</div><br></dl></dl><dl class="margin"><dd><p class="Body"><a name="87944"> </a>The <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Menu Contents</font></b> list box in <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Customize Builds</font></b> shows all custom commands currently in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Build</font></b> menu. When you select any item in this list, you can edit its attributes in the three text boxes near the bottom of the dialog box:</p></dl><dl class="margin"><dd><div class="Item"><a name="88080"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Menu Text</font></b> </div><dl class="margin"><dd><div class="Indent"><a name="88081"> </a>Contains the name of the custom command, as it appears in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Build</font></b> menu.</div><br></dl><dd><div class="Item"><a name="88087"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Build Target</font></b> </div><dl class="margin"><dd><div class="Indent"><a name="88088"> </a>You can specify any information here that can be placed in the make command line. You must specify at least the name of the object to build, but frequently it is also useful to include additional parameters in some of the standard makefile variables (see <i class="title">VxWorks Programmer's Guide: Configuration and Build</i>).</div><br><dd><div class="Indent"><a name="88107"> </a>Click the button at the right of the box to see a pop-up menu including a browse option and a list of macros which allow you to capture Tornado context in your commands. See <a href="c-customize3.html#85848"><i class="title">Macros for Customized Menu Commands</i></a> for explanations of these macros.</div><br></dl><dd><div class="Item"><a name="88120"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Working Directory</font></b> </div><dl class="margin"><dd><div class="Indent"><a name="88121"> </a>Use this field to specify the directory containing the makefile that defines the rules for building this target. (Usually, this directory is also where the source code for the object resides, and where the new object is generated.) You can edit the directory name in place, or click the button at the right of this field to bring up a menu similar to the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Build Target </font></b>menu. It includes a directory browser where you can search for the right directory and the same list of macros. To use the Tornado working directory, leave this field blank.</div><br><dd><div class="Indent"><a name="87970"> </a>You can also use the browse feature to select makefiles with names other than the names recognized by default, <b class="file">Makefile</b> or <b class="file">makefile</b>; Tornado inserts the make -f option automatically when you select a makefile with another name). If you use the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Browse</font></b> button without filling out the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Build Target</font></b> field, the new command is labeled <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Makefile</font></b>, and it builds the default target in the makefile you selected.</div><br></dl></dl></dl><a name="foot"><hr></a><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a><a href="GuideIX.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="c-customize.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-customize2.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-customize4.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p></body></html><!---by WRS Documentation (), Wind River Systems, Inc.    conversion tool:  Quadralay WebWorks Publisher 4.0.11    template:         CSS Template, Jan 1998 - Jefro --->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -