]>
Commit | Line | Data |
---|---|---|
84481f76 RK |
1 | ------------------------------------------------------------------------------ |
2 | -- -- | |
3 | -- GNAT COMPILER COMPONENTS -- | |
4 | -- -- | |
5 | -- M L I B . P R J -- | |
6 | -- -- | |
7 | -- S p e c -- | |
8 | -- -- | |
10e77af2 | 9 | -- Copyright (C) 2001-2007, AdaCore -- |
84481f76 RK |
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- -- | |
b5c84c3c | 13 | -- ware Foundation; either version 3, or (at your option) any later ver- -- |
84481f76 RK |
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 -- | |
b5c84c3c RD |
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. -- | |
84481f76 RK |
20 | -- -- |
21 | -- GNAT was originally developed by the GNAT team at New York University. -- | |
fbf5a39b | 22 | -- Extensive contributions were provided by Ada Core Technologies Inc. -- |
84481f76 RK |
23 | -- -- |
24 | ------------------------------------------------------------------------------ | |
25 | ||
26 | -- This package builds a library for a library project file | |
27 | ||
28 | with Prj; use Prj; | |
29 | ||
30 | package MLib.Prj is | |
31 | ||
fbf5a39b AC |
32 | procedure Build_Library |
33 | (For_Project : Project_Id; | |
7e98a4c6 | 34 | In_Tree : Project_Tree_Ref; |
fbf5a39b AC |
35 | Gnatbind : String; |
36 | Gnatbind_Path : String_Access; | |
37 | Gcc : String; | |
38 | Gcc_Path : String_Access; | |
39 | Bind : Boolean := True; | |
40 | Link : Boolean := True); | |
41 | -- Build the library of library project For_Project. | |
42 | -- Fails if For_Project is not a library project file. | |
43 | -- Gnatbind, Gnatbind_Path, Gcc, Gcc_Path are used for standalone | |
44 | -- libraries, to call the binder and to compile the binder generated | |
45 | -- files. If Bind is False the binding of a stand-alone library is skipped. | |
46 | -- If Link is False, the library is not linked/built. | |
47 | ||
7e98a4c6 | 48 | procedure Check_Library |
10e77af2 VC |
49 | (For_Project : Project_Id; |
50 | In_Tree : Project_Tree_Ref); | |
fbf5a39b AC |
51 | -- Check if the library of a library project needs to be rebuilt, |
52 | -- because its time-stamp is earlier than the time stamp of one of its | |
53 | -- object files. | |
84481f76 RK |
54 | |
55 | end MLib.Prj; |