Preprocessing Using Romimage Conditionals

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/27/2008

You can use Romimage conditional statements to selectively compile source code during the Make Image phase of the build process.

Platform Builder uses these statements to control options in the run-time image and to control variations between similar hardware. For example, you can choose to enable or disable profiling in the run-time image based on the conditional statements that you add to the source files.

The following code example shows the syntax for Romimage conditional statements:

IF <environment variable>[!]
...
ENDIF

Parameters

  • environment variable
    Specifies the variable used in the conditional statement, typically an IMG or BSP environment variable.

See Also

Reference

Romimage

Concepts

Environment Variables
Build System

Other Resources

Utilities