1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
6 -- (Default Version) --
10 -- Copyright (C) 2001-2004, Ada Core Technologies, Inc. --
12 -- GNAT is free software; you can redistribute it and/or modify it under --
13 -- terms of the GNU General Public License as published by the Free Soft- --
14 -- ware Foundation; either version 2, or (at your option) any later ver- --
15 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
16 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
17 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
18 -- for more details. You should have received a copy of the GNU General --
19 -- Public License distributed with GNAT; see file COPYING. If not, write --
20 -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
21 -- MA 02111-1307, USA. --
23 -- GNAT was originally developed by the GNAT team at New York University. --
24 -- Extensive contributions were provided by Ada Core Technologies Inc. --
26 ------------------------------------------------------------------------------
28 -- This is the default version which does not support libraries.
29 -- All subprograms are dummies, because they are never called,
30 -- except Support_For_Libraries which returns None.
32 package body MLib
.Tgt
is
38 function Archive_Builder
return String is
43 -----------------------------
44 -- Archive_Builder_Options --
45 -----------------------------
47 function Archive_Builder_Options
return String_List_Access
is
49 return new String_List
'(1 => new String'("cr"));
50 end Archive_Builder_Options
;
56 function Archive_Ext
return String is
65 function Archive_Indexer
return String is
70 ---------------------------
71 -- Build_Dynamic_Library --
72 ---------------------------
74 procedure Build_Dynamic_Library
75 (Ofiles
: Argument_List
;
76 Foreign
: Argument_List
;
77 Afiles
: Argument_List
;
78 Options
: Argument_List
;
79 Interfaces
: Argument_List
;
80 Lib_Filename
: String;
82 Symbol_Data
: Symbol_Record
;
83 Driver_Name
: Name_Id
:= No_Name
;
84 Lib_Version
: String := "";
85 Auto_Init
: Boolean := False)
87 pragma Unreferenced
(Ofiles
);
88 pragma Unreferenced
(Foreign
);
89 pragma Unreferenced
(Afiles
);
90 pragma Unreferenced
(Options
);
91 pragma Unreferenced
(Interfaces
);
92 pragma Unreferenced
(Lib_Filename
);
93 pragma Unreferenced
(Lib_Dir
);
94 pragma Unreferenced
(Symbol_Data
);
95 pragma Unreferenced
(Driver_Name
);
96 pragma Unreferenced
(Lib_Version
);
97 pragma Unreferenced
(Auto_Init
);
101 end Build_Dynamic_Library
;
107 function DLL_Ext
return String is
116 function Dynamic_Option
return String is
125 function Is_Object_Ext
(Ext
: String) return Boolean is
126 pragma Unreferenced
(Ext
);
135 function Is_C_Ext
(Ext
: String) return Boolean is
136 pragma Unreferenced
(Ext
);
145 function Is_Archive_Ext
(Ext
: String) return Boolean is
146 pragma Unreferenced
(Ext
);
155 function Libgnat
return String is
160 ------------------------
161 -- Library_Exists_For --
162 ------------------------
164 function Library_Exists_For
(Project
: Project_Id
) return Boolean is
165 pragma Unreferenced
(Project
);
168 end Library_Exists_For
;
170 ---------------------------
171 -- Library_File_Name_For --
172 ---------------------------
174 function Library_File_Name_For
(Project
: Project_Id
) return Name_Id
is
175 pragma Unreferenced
(Project
);
178 end Library_File_Name_For
;
184 function Object_Ext
return String is
193 function PIC_Option
return String is
198 -----------------------------------------------
199 -- Standalone_Library_Auto_Init_Is_Supported --
200 -----------------------------------------------
202 function Standalone_Library_Auto_Init_Is_Supported
return Boolean is
205 end Standalone_Library_Auto_Init_Is_Supported
;
207 ---------------------------
208 -- Support_For_Libraries --
209 ---------------------------
211 function Support_For_Libraries
return Library_Support
is
214 end Support_For_Libraries
;