]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ada/prj-makr.ads
* prj-makr.ads, prj-makr.adb : New files.
[thirdparty/gcc.git] / gcc / ada / prj-makr.ads
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- P R J . M A K R --
6 -- --
7 -- S p e c --
8 -- --
9 -- $Revision$
10 -- --
11 -- Copyright (C) 2001-2002 Free Software Foundation, Inc. --
12 -- --
13 -- GNAT is free software; you can redistribute it and/or modify it under --
14 -- terms of the GNU General Public License as published by the Free Soft- --
15 -- ware Foundation; either version 2, or (at your option) any later ver- --
16 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
17 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
18 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
19 -- for more details. You should have received a copy of the GNU General --
20 -- Public License distributed with GNAT; see file COPYING. If not, write --
21 -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
22 -- MA 02111-1307, USA. --
23 -- --
24 -- GNAT was originally developed by the GNAT team at New York University. --
25 -- It is now maintained by Ada Core Technologies Inc (http://www.gnat.com). --
26 -- --
27 ------------------------------------------------------------------------------
28
29 -- Support for procedure Gnatname.
30
31 -- For arbitrary naming schemes, create or update a project file,
32 -- or create a configuration pragmas file.
33
34 with GNAT.OS_Lib; use GNAT.OS_Lib;
35
36 package Prj.Makr is
37
38 procedure Make
39 (File_Path : String;
40 Project_File : Boolean;
41 Directories : Argument_List;
42 Name_Patterns : Argument_List;
43 Excluded_Patterns : Argument_List;
44 Very_Verbose : Boolean);
45 -- Create a project file or a configuration pragmas file
46 --
47 -- Project_File is the path name of the project file. If the project
48 -- file already exists parse it and keep all the elements that are not
49 -- automatically generated.
50 --
51 -- Directory_List_File is the path name of a text file that
52 -- contains on each non empty line the path names of the source
53 -- directories for the project file. The source directories
54 -- are relative to the directory of the project file.
55 --
56 -- File_Name_Patterns is a GNAT.Regexp string pattern such as
57 -- ".*\.ads|.*\.adb" or any other pattern.
58 --
59 -- A project file (without any sources) is automatically generated
60 -- with the name <project>_naming. It contains a package Naming with
61 -- all the specs and bodies for the project.
62 -- A file containing the source file names is automatically
63 -- generated and used as the Source_File_List for the project file.
64
65 end Prj.Makr;