Share via


Adding a BuildMethod Block to a .cec File (Windows CE 5.0)

Send Feedback

After you create an Implementation block for a specific Catalog item in a Catalog item (.cec) file, you must add a BuildMethod block to define additional information for this item.

The Implementation block must contain at least one BuildMethod block. BuildMethod blocks associate source files, Help files, or user-created projects with the Catalog item. For more information, see BuildMethod Block.

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

    BuildMethods(
        BuildMethod(
            Step(BSP)
            CPU("x86")
            Action ('#SRCCODE( DIR, "SOURCES_FULLPATH" )' )
        )
    )
    
  2. In the Step element, specify a build action for this build method and when in the build process it is to be performed.

    Note   In Windows CE 5.0, this information is required in a .cec file, but is otherwise ignored. For information about specifying custom build steps, see Custom Build.

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

  4. You can include an Action element to specify metadata associated with the selected Catalog item or module.

  5. You can include a Setting element to associate selected Help documentation files with the Catalog item.

    For example, the following code shows how to add Help using the Setting element:

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

For more information about how these parameters are used, see BuildMethod Block and 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

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.