Adding a BuildMethod Block to a .cec File

Once you have created an Implementation block for a specific component type in a Catalog feature (.cec) file, you need to add a BuildMethod block to define the build information for this feature. The Implementation block must contain at least one BuildMethod block. BuildMethod blocks specify the method for building the component in an OS image. For more information, see BuildMethod Block.

  1. In your .cec file (for example, MyFeature.cec), enter or edit the following block:

    BuildMethods(
        BuildMethod(
            Step(BSP)
            CPU("x86")
            Action('#ENV(BSP_NODISPLAY, "")')
            Action('#ENV(BSP_DISPLAY_S3VIRGE, "1")')
      Action(
    '#COPY("$(_WINCEROOT)\PUBLIC\<MyPlatform>\MyFeature\MyFeature.pbp", "$(_FLATRELEASEDIR)")' )
        )
    )
    
  2. In the Step element, specify a build action for this build method and when in the build process it is to be performed. For example, you set an environment variable during the Feature Build step by setting the Step element to BSP and adding an Action element with an #ENV action for the appropriate variable.

  3. For the CPU element, specify which microprocessor this build method supports.

  4. For the Action element, specify the actions to be performed by Platform Builder during the platform build. Valid actions are determined by the entries made in the Step element.

  5. You can optionally include a Setting element to add associated Help files with the component. For example, the following code shows how to add Help using the Setting element:

    Setting ( '#CHM( "CHM_FILE" )' )
    

    Note   For more information about how these parameters are used, see Sample .cec Files.

See Also

Adding a .cec File to the Catalog | Removing a .cec File from the Catalog | Sample .cec Files | BuildMethod Block | Binary Image Builder File | Build Phases

 Last updated on Friday, October 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.