OSDN Git Service

2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
[pf3gnuchains/gcc-fork.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 --          Copyright (C) 2001-2007, Free Software Foundation, Inc.         --
10 --                                                                          --
11 -- GNAT is free software;  you can  redistribute it  and/or modify it under --
12 -- terms of the  GNU General Public License as published  by the Free Soft- --
13 -- ware  Foundation;  either version 3,  or (at your option) any later ver- --
14 -- sion.  GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
17 -- for  more details.  You should have  received  a copy of the GNU General --
18 -- Public License  distributed with GNAT; see file COPYING3.  If not, go to --
19 -- http://www.gnu.org/licenses for a complete copy of the license.          --
20 --                                                                          --
21 -- GNAT was originally developed  by the GNAT team at  New York University. --
22 -- Extensive contributions were provided by Ada Core Technologies Inc.      --
23 --                                                                          --
24 ------------------------------------------------------------------------------
25
26 --  Support for procedure Gnatname
27
28 --  For arbitrary naming schemes, create or update a project file,
29 --  or create a configuration pragmas file.
30
31 package Prj.Makr is
32
33    procedure Make
34      (File_Path         : String;
35       Project_File      : Boolean;
36       Directories       : Argument_List;
37       Name_Patterns     : Argument_List;
38       Excluded_Patterns : Argument_List;
39       Foreign_Patterns  : Argument_List;
40       Preproc_Switches  : Argument_List;
41       Very_Verbose      : Boolean);
42    --  Create a project file or a configuration pragmas file
43    --
44    --  Project_File is the path name of the project file. If the project
45    --  file already exists parse it and keep all the elements that are not
46    --  automatically generated.
47    --
48    --  Directory_List_File is the path name of a text file that
49    --  contains on each non empty line the path names of the source
50    --  directories for the project file. The source directories
51    --  are relative to the directory of the project file.
52    --
53    --  File_Name_Patterns is a GNAT.Regexp string pattern such as
54    --  ".*\.ads|.*\.adb" or any other pattern.
55    --
56    --  A project file (without any sources) is automatically generated
57    --  with the name <project>_naming. It contains a package Naming with
58    --  all the specs and bodies for the project.
59    --  A file containing the source file names is automatically
60    --  generated and used as the Source_File_List for the project file.
61    --  It includes all sources that follow the Foreign_Patterns (except those
62    --  that follow Excluded_Patterns).
63
64    --  Preproc_switches is a list of optional preprocessor switches -gnatep=
65    --  and -gnateD that are used when invoking the compiler to find the
66    --  unit name and kind.
67
68 end Prj.Makr;