Next: Customization examples, Previous: Customizing through XML and Python files, Up: Customizing and Extending GPS
GPS has built-in support for external tools. This feature can be used to support a wide variety of tools (in particular, to specify different compilers). Regular enhancements are done in this area, so if you are planning to use the external tool support in GPS, check for the latest GPS version available.
Typically, the following things need to be achieved to successfully use a tool:
Each of these points is discussed in further sections. In all these cases, most
of the work can be done statically through XML customization files.
These files have the same format as other XML customization files
(see Customizing through XML and Python files), and the tool descriptions are found in
<tool>
tags.
This tag accepts the following attributes:
name (mandatory)
package (Default value is ide)
See also See Defining project attributes, for more information on defining your own project attributes. Using the "package", "attribute" or "index" XML attributes of <tool> will implicitly create new project attributes as needed.
If this attribute is set to "ide", then the switches cannot be set for a
specific file, only at the project level. Support for file-specific switches
currently requires modification of the GPS sources themselves.
attribute (Default value is default_switches)
index (Default value is the tool name)
override (Default value is 'false')
This tag accepts the following children, described in separate sections:
<switches>
<language>
<initial-cmd-line>