Exclude file from the build

The default HighTec project builds automatically, all *.c files under the source folder. Sometimes you have source files in your project which you do not want to compile (excluded from build).

To exclude a file from a build right-click on file name  Resource Configuration  Exclude from Build…​.

ide exclude from build
Fig. 1. Exclude from build

In the open dialog choose the configuration from which you want to exclude the file. When click to btnOk, the file is excluded. In the Project Explorer, you can find such files according to the exclude icon (exclude icon).

You can still build this file in all the other configurations which you did not set. To include the file again in your build, please use the same procedure and uncheck the checkbox next to configuration in which you want to build the file.

Indexer

To ensure, that the Indexer is using the active build configuration for the building the index, you have to set the Use active build configuration option within the Indexer settings. With this option, the exclusion mechanism works correctly also after you switch the build configuration.

ide indexer setting
Fig. 2. Indexer settings