Define Build Settings

To define build settings, perform these steps.

  1. Start the IDE.
  2. In the CodeWarrior Projects view, select the project for which you want to modify the build settings.
  3. Select Project > Properties.

    The Properties for <project> window appears. The left side of this window has a properties list. This list shows the build properties that apply to the current project.

  4. Select C/C++ Build.

    The C/C++ Build page appears.

    Figure 1. C/C++ Build Page - Builder Settings
    C/C++ Build Page - Builder Settings
  5. Click the Builder Settings tab.

    The builder settings for the selected build configuration appears. The table below describes the builder settings options.

    Table 1. Builder Settings Options
    Group Option Description
    Build Configuration Configuration Specifies the type of configurations for the selected project.
    Build Configuration Manage configurations Click to open the Manage Configurations dialog box that lets you set configurations based on the specified toolchains of the selected project.

    You can also create new configurations, rename an existing configuration, or remove the ones that are no longer required.

    Builder Builder type Specifies the type of builder to use:
    • Internal builder - Builds C/C++ programs using a compiler that implements the C/C++ Language Specifications.
    • External builder - External tools let you configure and run programs and Ant buildfiles using the Workbench, which can be saved and run at a later time to perform a build.
    Builder Use default build command Check to indicate that you want to use the default make command.

    Clear when you want to use a new make command. This option is only available when the Builder type option is set to External.

    Builder Build command Specifies the default command used to start the build utility for your specific toolchain. Use this field if you want to use a build utility other than the default make command.
    Builder Variables Click to open the Select build variable dialog box and add the desired environment variables and custom variables to the build command.
    Makefile generation Generate Makefiles automatically Check to enable Eclipse change between two different CDT modes: it either uses the customer's makefile for the build, if one exists, or it generates makefiles for the user.
    Makefile generation Expand Env. Variable Refs in Makefiles Check to define whether environment variables should be expanded in makefile.
    Build location Build directory Specifies the location where the build operation takes place. This location will contain the generated artifacts from the build process. This option appears disabled when the Generate Makefiles automatically option is enabled.
    Build location Workspace Click to open the Folder Selectiondialog box and select a workspace location for the project. This is the directory that will contain the plug-ins and features to build, including any generated artifacts.
    Build location File system Click to open the Browse For Folder dialog box and select a folder.
    Build location Variables Click to open the Select build variable dialog box and select a variable to specify as an argument for the build directory, or create and configure simple build variables which you can reference in build configurations that support variables.
  6. Make the desired changes and click OK.

    The Properties for <project> window will close.