02.03.2014 Views

BSP Developer's Guide

BSP Developer's Guide

BSP Developer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6<br />

Components<br />

NOTE: INIT_BEFORE only affects ordering within the initGroup. Do not reference<br />

a component that is not in the initGroup; this has no effect at all.<br />

Step 5:<br />

NOTE: The INIT_AFTER property has no effect in the Tornado 2.x implementation.<br />

See E.3 Project Initialization Order, p.238 for the default initialization sequence for<br />

Tornado 2.x.<br />

Link Helpful Documentation<br />

Specify related reference entries (in HTML format) with the HELP property.<br />

6<br />

...<br />

HELP<br />

...<br />

fooMan.html<br />

By default, a build automatically includes reference entries related to values<br />

declared by the MODULES and INIT_RTN properties. In the case of<br />

INCLUDE_FOO, in addition to fooMan.html, which is specified by HELP, the build<br />

associates the fooLib and fooShow libraries and the fooInit( ) routine.<br />

Step 6:<br />

Define Dependencies<br />

Use the REQUIRES, EXCLUDES, and INCLUDE_WHEN properties to explicitly<br />

declare dependencies among components. (See Step 2 to learn how the project<br />

facility automatically configures object module-related dependencies.)<br />

The project facility does not detect implicit dependencies when a component is not<br />

shipped in object module format. Likewise, no dependencies are detected when<br />

symbols are referenced by pointers at run-time. Both circumstances require you to<br />

declare dependencies explicitly.<br />

...<br />

REQUIRES<br />

EXCLUDES<br />

INCLUDE_WHEN<br />

...<br />

INCLUDE_LOGGING<br />

INCLUDE_SPY<br />

INCLUDE_POSIX_AIO INCLUDE_POSIX_MQ<br />

In the example, REQUIRES declares that INCLUDE_LOGGING must be configured<br />

along with INCLUDE_FOO. EXCLUDES declares the INCLUDE_SPY cannot be<br />

configured with INCLUDE_FOO. And INCLUDE_WHEN tells the system that<br />

whenever the components INCLUDE_POSIX_AIO and INCLUDE_POSIX_MQ are<br />

included, then INCLUDE_FOO must also be included.<br />

131

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!