12.8.5. Excluding source files from a build

To exclude a source file from a build:

  1. Select Project → Project Properties... to display the Project Properties window.

  2. Right-click on the required group, in the List of Entries pane, that defines the build stage that you want to modify, for example *COMPILE=arm, and select Expand whole Tree from the context menu.

  3. Select the *Sources group in the List of Entries pane.

  4. Right-click on the *Files setting for the source file that is to be excluded, and select Exclude this file from Build from the context menu.

    The setting is grayed out and an exclamation mark (!) is added to the start of the filename.

  5. Select File → Save and Close to regenerate the makefile(s) for the project, and close the Project Properties window.

  6. Select Tools → Build... to rebuild the application.

Re-including a source file into a build

To re-include a source file into a build:

  1. Select Project → Project Properties... to display the Project Properties window.

  2. Right-click on the required group, in the List of Entries pane, that defines the build stage that you want to modify, for example *COMPILE=arm, and select Expand whole Tree from the context menu.

  3. Select the *Sources group in the List of Entries pane.

  4. Right-click on the *Files setting for the source file that is currently excluded, and select Re-Include this in Build from the context menu.

    The setting color is restored and the exclamation mark is removed from the start of the filename.

  5. Select File → Save and Close to regenerate the makefile(s) for the project, and close the Project Properties window.

  6. Select Tools → Build... to rebuild the application.

Copyright © 2003, 2004 ARM Limited. All rights reserved.ARM DUI 0234B
Non-Confidential