Using SoftBench

Defining Targets for Project Build

5.Select Add to add the new target to the "Pending New Targets" list.

6.Define as many targets as you need while the dialog box is posted. When you are done, select OK.

If the SoftBench-provided build configurations do not meet your needs, you can either define your own new build configuration or add target-specific customizations to an existing build configuration. See “Customizing Build Configurations” on page 62 for more information.

Specifying Dependency Relationships

In the main SoftBench window, the Files view shows the newly created targets. Targets can have two types of dependency relationships:

source-to-target dependencies

build order dependencies between two targets

Dependency relationships can only be created for project build targets.

To create a source-to-target dependency:

1.Select the files to link into the target, then choose "File: Link Source to Target…".

2.In the dialog box, select the target.

To see the dependency relationship:

1.Select Expand >>. This action expands the main SoftBench window to display the Builder page.

2.If the CodeAdvisor page is displayed, select the Builder tab.

3.In the target graph, select the target.

4.Select "Source File Dependencies" from the Display Dependencies menu button.

To create a build order dependency, you need at least two targets:

1.Select the target that must be built first, then choose "Target: Add Build Order Dependency…".

2.In the dialog box, select the target that must be built last.

You can also use subprojects to create build order dependencies. See “Creating a Subproject” on page 55 for more information.

Chapter 2

61