Next: , Up: gnatmake and Project Files


6.1.1 Switches Related to Project Files

The following switches are used by GNAT tools that support project files:

-P`project'
Indicates the name of a project file. This project file will be parsed with the verbosity indicated by `-vP*x*', if any, and using the external references indicated by `-X' switches, if any. There may zero, one or more spaces between `-P' and project.

There must be only one `-P' switch on the command line.

Since the Project Manager parses the project file only after all the switches on the command line are checked, the order of the switches `-P', `-vP*x*' or `-X' is not significant.


-X`name'=`value'
Indicates that external variable name has the value value. The Project Manager will use this value for occurrences of external(name) when parsing the project file.

If name or value includes a space, then name=value should be put between quotes.

         -XOS=NT
         -X"user=John Doe"

Several `-X' switches can be used simultaneously. If several `-X' switches specify the same name, only the last one is used.

An external variable specified with a `-X' switch takes precedence over the value of the same name in the environment.


-vP`x'
Indicates the verbosity of the parsing of GNAT project files.

`-vP0' means Default; `-vP1' means Medium; `-vP2' means High.

The default is Default: no output for syntactically correct project files. If several `-vP*x*' switches are present, only the last one is used.


-aP`dir'
Add directory dir at the beginning of the project search path, in order, after the current working directory.


-eL
Follow all symbolic links when processing project files.


--subdirs=`subdir'
This switch is recognized by `gnatmake' and `gnatclean'. It indicate that the real directories (except the source directories) are the subdirectories subdir of the directories specified in the project files. This applies in particular to object directories, library directories and exec directories. If the subdirectories do not exist, they are created automatically.