SEGGER Embedded Studio provides a facility to build projects in various configurations. Project configurations are used to create different software builds for your projects.

A configuration defines a set of project options. For example, the output of a compilation can be put into different directories, dependent upon the configuration. When you create a solution, some default project configurations are created.

Build configurations and their uses

Configurations are typically used to differentiate debug builds from release builds. For example, the compiler options for debug builds will differ from those of a release build: a debug build will set options so the project can be debugged easily, whereas a release build will enable optimization to reduce program size or to increase its speed. Configurations have other uses; for example, you can use configurations to produce variants of software, such as custom libraries for several different hardware variants.

Configurations inherit project options from other configurations. This provides a single point of change for definitions common to several configurations. A particular project option can be overridden in a particular configuration to provide configuration-specific settings.

When a solution is created, two configurations are generated — Debug and Release — and you can create additional configurations by choosing Build > Build Configurations. Before you build, ensure that the appropriate configuration is set using Build > Set Active Build Configuration or, alternatively, the Active Configuration combo box in the Project Explorer.

Selecting a configuration

To set the configuration that affects your building and debugging, use the combo box in the Project Explorer or select Build > Set Active Build Configuration

Creating a configuration

To create your own configurations, select Build > Build Configurations to invoke the Configurations dialog. The dialog has two sections, one to manage public configurations and one to manage private configurations.

Clicking the plus button in the public configurations section will allow you to create a new public configuration and then specify the private configurations to inherit.

Clicking the plus button in the private configuration section will allow you to create a new private configuration that can be inherited by public configurations.

Deleting a configuration

You can delete a configuration by selecting it and clicking the minus button. This deletion cannot be undone or canceled, so beware.