📄 c-builder3.html
字号:
<dd><div class="Indent"><a name="97341"> </a>Contains the preprocessor definitions (macros) used to include VxWorks components. </div><br></dl><dd><div class="Item"><a name="97347"> </a><b class="file">Makefile</b></div><dl class="margin"><dd><div class="Indent"><a name="97348"> </a>The makefile used for building an application or VxWorks. Created when the project is built, based on the build specification selected at that time. </div><br></dl><dd><div class="Item"><a name="97351"> </a><b class="file">prjParams.h</b></div><dl class="margin"><dd><div class="Indent"><a name="100695"> </a>Contains component parameters.</div><br></dl><dd><div class="Item"><a name="100699"> </a><i class="textVariable">projectName</i><b class="file">.wpj</b></div><dl class="margin"><dd><div class="Indent"><a name="100696"> </a>Contains information about the project used for generating the project makefile, as well as project source files such as <b class="file">prjConfig.c</b>. </div><br></dl><dd><div class="Item"><a name="100678"> </a><i class="textVariable">workspaceName</i><b class="file">.wsp</b></div><dl class="margin"><dd><div class="Indent"><a name="100684"> </a>Contains information about the workspace, including which projects belong to it. </div><br></dl></dl><dl class="margin"><dd><p class="Body"><a name="100723"> </a>When you build the project, a makefile is dynamically generated in the main project directory, and a subdirectory is created containing the objects produced by the build. The subdirectory is named after the selected build specification. If other build specifications are created and used for other builds, parallel directories are created for their objects. </p><dd><p class="Body"><a name="97318"> </a>The <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Files</font></b> view can also display the default list of objects that would be built, and the external dependencies that make up the new project, in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Built Objects</font></b> and <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">External Dependencies</font></b> folders, respectively. </p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="92169">4.3.3 Configuring VxWorks Components</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="92170"> </a>The <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">VxWorks</font></b> view of the workspace displays all VxWorks components available for the target. The names of components that are selected for inclusion appear in bold type. The names of components that are excluded appear in plain type. The names of components that have not been installed appear on italics. Note that the names of folders appear in bold type if any (but not necessarily all) of their components are included. (<a href="c-builder3.html#92173">Figure 4-22</a>.)<div class="frame"><h4 class="EntityTitle"><a name="92173"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 4-22: VxWorks Components</font></a></h4><dl class="margin"><div class="CellBody"><a name="92178"> </a><img class="figure" border="0" src="images/c-builder19.gif"></div></dl></div></p></dl></dl><dl class="margin"><dd><p class="table" callout><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td valign="top" width="40"><br><img border="0" alt="*" src="icons/note.gif"></td><td><hr><div class="CalloutCell"><a name="102327"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">NOTE: </font></b></a>See the <i class="title">VxWorks Programmer's Guide</i> for detailed information about the use of VxWorks facilities, target-resident tools, and optional components.</div></td></tr><tr valign="top"><td></td><td><hr></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p callout></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="90586">Finding VxWorks Components and Configuration Macros</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="90587"> </a>You can locate individual components and configuration parameters in the component tree, based on their macro names with the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Find Object </font></b>dialog box. The dialog box can be accessed with the context menu for the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">VxWorks</font></b> view (<a href="c-builder3.html#90590">Figure 4-23</a>). <div class="frame"><h4 class="EntityTitle"><a name="90590"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 4-23: Find Object</font></a></h4><dl class="margin"><div class="CellBody"><a name="90595"> </a><img class="figure" border="0" src="images/c-builder24.gif"></div></dl></div></p></dl></dl><dl class="margin"><dd><p class="table" callout><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td valign="top" width="40"><br><img border="0" alt="*" src="icons/note.gif"></td><td><hr><div class="CalloutCell"><a name="102345"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">NOTE: </font></b></a>The <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Find Object </font></b>dialog box is particularly helpful in conjunction with VxWorks documentation, which discusses VxWorks configuration in terms of preprocessor symbols, rather than the descriptive names used in the project facility GUI.</div></td></tr><tr valign="top"><td></td><td><hr></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p callout></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="90607">Displaying Descriptions and Online Help for Components </a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="90608"> </a>The component tree in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">VxWorks</font></b> view provides descriptive names for components. You can display a component description property sheet, which includes the name of the pre-processor macro for the component, by double-clicking on the component name (<a href="c-builder3.html#90611">Figure 4-24</a>). <div class="frame"><h4 class="EntityTitle"><a name="90611"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 4-24: VxWorks Component Properties and HTML Reference</font></a></h4><dl class="margin"><div class="CellBody"><a name="90616"> </a><img class="figure" border="0" src="images/c-builder29.gif"></div></dl></div></p><dd><p class="Body"><a name="93616"> </a>To display online reference documentation, double-click on the topic of your choice displayed in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Help Link </font></b>box of the property sheet. The corresponding HTML reference material is displayed in a Web browser (<a href="c-builder3.html#90611">Figure 4-24</a>). </p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="91505">Including and Excluding Components</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="91506"> </a>VxWorks components that are not needed for a project can be excluded, and components that have been excluded can be included again. The context menu provides <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Include</font></b> and <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Exclude</font></b> options for components you select in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">VxWorks</font></b> view. You can also use the <kbd>DELETE</kbd> key to exclude options. </p><dd><p class="Body"><a name="91507"> </a>Tornado automatically determines component dependencies each time a component is included or excluded. That is, it determines if a component you want to include is dependent upon other components that have not been included in the project, or if a component that you are deleting is required by other components. When a component is included, any dependent components are automatically included. When a component is excluded, any dependent components are also excluded. In either case, a dialog box provides information about dependencies and the option of cancelling the requested action. For example, if you exclude <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">POSIX clocks</font></b>, the dialog box informs you that <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">ANSI time</font></b> component would be excluded (<a href="c-builder3.html#91510">Figure 4-25</a>). <div class="frame"><h4 class="EntityTitle"><a name="91510"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 4-25: Exclude VxWorks Component</font></a></h4><dl class="margin"><div class="CellBody"><a name="91515"> </a><img class="figure" border="0" src="images/c-builder31.gif"></div></dl></div></p></dl></dl><dl class="margin"><dd><p class="table" callout><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td valign="top" width="40"><br><img border="0" alt="*" src="icons/warning.gif"></td><td><hr><div class="CalloutCell"><a name="102363"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">WARNING: </font></b></a>The results of calculating dependencies is not necessarily identical for inclusion and removal. Including a component you previously excluded does not automatically include the components that were dependent on that component, and that were therefore excluded with it. For example, excluding the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">POSIX clocks</font></b> component automatically excludes the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">ANSI time </font></b>component, which is <i class="emphasis">dependent on </i>it. But if the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">POSIX clocks</font></b> component is subsequently included, there are no components <i class="emphasis">required by</i> it, and the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">ANSI time </font></b>component is not automatically included (<a href="c-builder3.html#91519">Figure 4-26</a>).</div></td></tr><tr valign="top"><td></td><td><hr></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p callout><dl class="margin"><dd><p class="Body"><a name="102368"> </a><div class="frame"><h4 class="EntityTitle"><a name="91519"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 4-26: Include VxWorks Component</font></a></h4><dl class="margin"><div class="CellBody"><a name="91524"> </a><img class="figure" border="0" src="images/c-builder33.gif"></div></dl></div></p><dd><p class="Body"><a name="97979"> </a>You can also include folders of components. However, not all components in a folder are necessarily included by default (nor would it always be desirable to do so, as there might be conflicts between components). Tornado offers a choice about what components to include. For example, if you include <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">target shell components</font></b>, not all of the components are included by default, and you are prompted to accept or modify the default selection (<a href="c-builder3.html#97996">Figure 4-27</a>).<div class="frame"><h4 class="EntityTitle"><a name="97996"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 4-27: Including a Component Folder</font></a></h4><dl class="margin"><div class="CellBody"><a name="98001"> </a><img class="figure" border="0" src="images/c-buildera5.gif"></div></dl></div> </p><dd><p class="Body"><a name="101689"> </a>Tornado automatically calculates an estimate of the change in the size of the image resulting from the inclusion or exclusion, as well as the new image size. The <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Include</font></b> and <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Exclude</font></b> dialog boxes display this information. (Also see <a href="c-builder3.html#90699"><i class="title">Estimating Total Component Size</i></a>).</p><dd><p class="Body"><a name="100864"> </a>Some folders contain component options that are explicitly combinative or mutually exclusive (in the sense of being potentially conflictual). The name of these folders are preceded by a checkbox icon in the folder tree. You can make your selection or change either by opening the folder and performing an include or exclude operation on individual components; or by displaying the property sheet for the folder and making selections with the check boxes on the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Components </font></b>page (<a href="c-builder3.html#97996">Figure 4-27</a>). <div class="frame"><h4 class="EntityTitle"><a name="100858"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 4-28: Including Conflicting Components</font></a></h4><dl class="margin"><div class="CellBody"><a name="100863"> </a><img class="figure" border="0" src="images/c-builder34.gif"></div></dl></div></p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="91546">Component Conflicts</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="94456"> </a>If you include components that potentially conflict, or are missing a required component, Tornado warns you of the conflict by displaying a message box with a warning, and by highlighting the full folder path to the source of the conflict. The property sheet for the folder also displays error information in its <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Errors</font></b> page. For example, if you attempt to include both symbol table initialization components a warning is first displayed. Once you acknowledge the warning, the folder names <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">development tool components</font></b>, <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">symbol table components</font></b>, <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">select symbol table initialization </font></b>are highlighted. You can display the property sheet for the folder for a description of the problem and how to correct it. (See <a href="c-builder3.html#91549">Figure 4-29</a> for all GUI elements.)</p></dl></dl><dl class="margin">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -