Though parent-child relationships usually imply that the parent part generates the child part, in a TeamConnection build it is the opposite. Because TeamConnection places the build output at the top of the tree, it refers to the build output as the parent and to the build input as the child.

To understand how build output is generated, it may be easier to start at the bottom of the build object model and work your way up. In Figure 44 on page 133, hello.h and bye.h are C source ®les that are embedded in hello.c and bye.c, respectively. The parser, parser1, is able to read hello.c and bye.c to determine ®les they embed. This build object model contains three build events:

vThe builder compiler1 compiles hello.c into hello.obj.

vThe builder compiler1 compiles bye.c into bye.obj.

vThe builder linker1 links hello.obj and bye.obj into msgcat.exe

This build object model contains the following parent-child relationships:

vmsgcat.exe is the parent of hello.obj and bye.obj.

vhello.obj is the parent of hello.c

vbye.obj is the parent of bye.c

You establish these parent-child relationships between parts when you create the parts in TeamConnection.

Before you can build msgcat.exe, for example, you need to create a place-holder part for it and designate linker1 as its builder. You then create place-holder parts for hello.obj and bye.obj and designate compiler1 as their builder and msgcat.exe as their parent.

ªCreating the build tree for the applicationº on page 184 walks you through an example of creating the build tree for this object model.

132User's Guide

Page 152
Image 152
IBM SC34-4499-03 manual Users Guide