Download GPRbuild User's Guide
Transcript
GPRbuild User’s Guide
for Config_Body_File_Name_Pattern ("Ada") use
"pragma Source_File_Name_Project " &
" (Body_File_Name => ""*%b""," &
"
Casing
=> %c," &
"
Dot_Replacement => ""%d"");";
• Config Spec File Name Pattern (<language>)
Specifies the line to be put in a config file to indicate a spec file name pattern.
Example:
for Config_Spec_File_Name_Pattern ("Ada") use
"pragma Source_File_Name_Project " &
" (Spec_File_Name => ""*%s""," &
"
Casing
=> %c," &
"
Dot_Replacement => ""%d"");";
• Config File Unique (<language>)
Specifies, for languages that support config files, if several config files may
be indicated to the compiler, or not. This attribute may have only two values: "true" or "false" (case insensitive). The default, when this attribute
is not specified, is "false". When the value "true" is specified for this
attribute, GPRbuild will concatenate the config files, if there are more than
one. Example:
for Config_File_Unique ("Ada") use "True";
3.3.4.4 Dependency Related Attributes
There are two dependency-related attributes: Dependency_Switches and
Dependency_Driver. If neither of these two attributes are specified for a language other than Ada, then the source needs to be (re)compiled if the object file
does not exist or the source file is more recent than the object file or the switch
file.
• Dependency Switches (<language>)
For languages other than Ada, attribute Dependency_Switches specifies
the option or options to add to the compiler invocation so that it creates
the dependency file at the same time. The value of attribute Dependency_
Option is a string list. The name of the dependency file is added to the last
string in the list, which may be empty. Example:
for Dependency_Switches ("C") use ("-Wp,-MD,");
With these Dependency_Switches, when compiling ‘file.c’ the compiler
will be invoked with the option ‘-Wp,-MD,file.d’.
100