Using configurations allows you to use the same MLWorks project to build the same application for a different platforms. This is done by proving a simple mechanism for switching between extensions to the source and library paths. The location of the compiled objects is also changed.
Choose Project > Properties > Configurations to call up the "Project Properties - Configurations" dialog.
Figure 2.11 Project Properties - Configurations
At the top of the configurations dialog the list of available configurations is displayed. The current configuration is shown beneath this list.
You can add a new configuration by typing in a name for it in the text field above the Add New Configuration button, and then clicking on the button. The new configuration name appears in the list of configurations.
The library path for a given configuration can be set or changed as follows:
You can add extra source files to be used by the project when it is in the current configuration by clicking on Files in Configuration in the configuration dialog, and adding extra files using the standard project file dialog that appears. This dialog also allows you to remove source files from the current configuration.
A current configuration is set by selecting a configuration from the list of configurations, and clicking on Set As Current. Selecting a current configuration has the following effect when compiling the project:
examples/projects/, the configuration name is I386, and the mode is Debug, then the object files are placed in a directory called examples/projects/I386/Debug/.