Adding a Build Method

When you add a build method to the implementation for an application, driver, or feature, you are providing information that the build system requires to build and include the feature in a run-time image. This information can include which core OS supports this feature, at which step in the build process an action is performed on the target, the location of the feature source files, and the location where the Platform Builder build system will place the feature file after it is built.

For more information about build phases, see Build Phases.

The following procedure shows you how to add a build method that will occur during the Build Release phase.

To add a build method

  1. In the CEC Editor, from the File menu, select Open, select a .cec file to open, and then choose Open.

  2. In the CEC Editor window, select a feature to edit.

    For example, if you created a feature named MyFeature, select its icon in the left pane.

  3. From the Insert menu, choose Build Method.

  4. From the Step box, choose which step in the build process you want a build action to be performed at.

    For information about the steps in the build process, see Build Phases.

  5. From the CPUs list, select which CPUs your feature will be supported on.

  6. From the Supported CoreOS list, choose which core operating systems (OSs) your feature will support, and then choose OK.

    In order for the Catalog to display your feature, the core OS that you select must be compatible with the core OS that your platform is based on. For more information about displaying features in the Catalog, see Platform Modification.

    The IDE automatically highlights the new build method in the CEC Editor window. If the icon is not highlighted, select the new icon.

  7. From the Insert menu, choose Action, and then choose an action to be performed at the build process step that you have selected.

    For information about actions that you can perform, see BuildMethod Block.

    For example, if you have chosen to insert a copy action for a feature named MyFeature, which copies a file to a location, in the Source File box, type $(_WINCEROOT)\Samples\MyFeature\MyFeature.dll. Then, in the Target Directory box, type $(_FLATRELEASEDIR), and then choose OK. This copies the dynamic-link library (.dll) file for MyFeature from its location in $(_WINCEROOT)\Samples\MyFeature to the flat release directory for your platform.

See Also

How to Add an Application to the Catalog | CEC Editor Tool | BuildMethod Block | Catalog Feature Files

 Last updated on Friday, October 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.