Next: , Previous: , Up: The Cross-Referencing Tools gnatxref and gnatfind   [Contents][Index]


5.3.3 Project Files for `gnatxref' and `gnatfind'

Project files allow a programmer to specify how to compile its application, where to find sources, etc. These files are used primarily by GPS, but they can also be used by the two tools gnatxref and gnatfind.

A project file name must end with .gpr. If a single one is present in the current directory, then gnatxref and gnatfind will extract the information from it. If multiple project files are found, none of them is read, and you have to use the -p switch to specify the one you want to use.

The following lines can be included, even though most of them have default values which can be used in most cases. The lines can be entered in any order in the file. Except for src_dir and obj_dir, you can only have one instance of each line. If you have multiple instances, only the last one is taken into account.

`gnatxref' and `gnatfind' only take into account the src_dir and obj_dir lines, and ignore the others.


Next: , Previous: , Up: The Cross-Referencing Tools gnatxref and gnatfind   [Contents][Index]