4.6. Project Configuration

Project configuration involves setting the correct build flags for targets, groups and project itself. You can set these flags in their respective properties dialog.

You can freely use autoconf and automake variables that are automatically set for the project during configuration. Apart from these automatically set variables, you can also defined your own variables in Project Properties use them in properties. This will make it easy to update flags later, especially when the variable is used in several targets.

Some of the many common variables are listed here. For full list of them see automake info documentation.

4.6.1. Project properties

Project properties dialog can be only brought by choosing Project->Properties. You can:

Dependencies are external packages that the project uses and hence required to build it. Only packages installed using pkg-config can be added from this interface. For others, the configure.ac file can be edited manually.

Figure 4-1. Project properties dialog

External package dependencies are grouped into modules, so that their combined build flags can be conviniently added to different targets. Modules are just arbitrary names given to group the packages and can be named anything (only alphanumeric and _ are allowed in module name). Usually, they follow the name of targets they would be use in. Consequently, for small projects with single targets, just one module to hold all dependencies is enough.

Each package exports a set of compiler flags and libraries. They are aggregated together for all packages under a module and configure variables $(module_CFLAGS) and $(module_LIBS) are defined. These variables can then be used in Group properties and Target properties.

To add a package dependency:

4.6.2. Group properties

To set group properties, select it in the Project View and active it. You can also bring it by selecting Operation menu->Properties

Group Properties set to a group applies to all the targets under it. So any compiler or linker flags set there would be automatically be part of all the targets in it (in addition the targets individual properties). Folowing flags are available in group properties.

4.6.3. Target properties

To set target properties, select it in the Project View and active it. You can also bring it by selecting Operation menu->Properties

Target Properties set to a target applies to that target. So any compiler or linker flags set there would be just part of it (in addition the its group properties). Folowing flags are available in target properties.