Next: Package Builder, Previous: Project Level Attributes, Up: Configuration File Reference [Contents][Index]
Attributes in package Naming
of a configuration file specify defaults. These
attributes may be used in user project files to replace these defaults.
The following attributes usually appear in package Naming
of a configuration
file:
Specifies the default suffix for a “spec” or header file. Examples:
for Spec_Suffix ("Ada") use ".ads"; for Spec_Suffix ("C") use ".h"; for Spec_Suffix ("C++") use ".hh";
Specifies the default suffix for a “body” or a source file. Examples:
for Body_Suffix ("Ada") use ".adb"; for Body_Suffix ("C") use ".c"; for Body_Suffix ("C++") use ".cpp";
Specifies the suffix for a subunit source file (separate) in Ada. If attribute
Separate_Suffix
is not specified, then the default suffix of subunit source
files is the same as the default suffix for body source files. Example:
for Separate_Suffix use ".sep";
Specifies the casing of spec and body files in a unit based language
(such as Ada) to know how to map a unit name to its file name. The values for
this attribute may only be "lowercase"
, "UPPERCASE"
and "Mixedcase"
.
The default, when attribute Casing
is not specified is lower case.
This attribute rarely needs to be specified, since on
platforms where file names are not case sensitive (such as Windows or VMS)
the default (lower case) will suffice.
Specifies the string to replace a dot (“.”) in unit names of a unit based
language (such as Ada) to obtain its file name. If there is any unit based
language in the configuration, attribute Dot_Replacement
must be declared.
Example:
for Dot_Replacement use "-";