OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [ada/] [mdll.ads] - Blame information for rev 16

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
------------------------------------------------------------------------------
2
--                                                                          --
3
--                         GNAT COMPILER COMPONENTS                         --
4
--                                                                          --
5
--                                 M D L L                                  --
6
--                                                                          --
7
--                                 S p e c                                  --
8
--                                                                          --
9
--          Copyright (C) 1992-2004 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 2,  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 COPYING.  If not, write --
19
-- to  the  Free Software Foundation,  51  Franklin  Street,  Fifth  Floor, --
20
-- Boston, MA 02110-1301, USA.                                              --
21
--                                                                          --
22
-- GNAT was originally developed  by the GNAT team at  New York University. --
23
-- Extensive contributions were provided by Ada Core Technologies Inc.      --
24
--                                                                          --
25
------------------------------------------------------------------------------
26
 
27
--  This package provides the core high level routines used by GNATDLL
28
--  to build Windows DLL
29
 
30
with GNAT.OS_Lib;
31
--  Should have USE here ???
32
 
33
package MDLL is
34
 
35
   subtype Argument_List is GNAT.OS_Lib.Argument_List;
36
   subtype Argument_List_Access is GNAT.OS_Lib.Argument_List_Access;
37
 
38
   Null_Argument_List : constant Argument_List := (1 .. 0 => new String'(""));
39
 
40
   Null_Argument_List_Access : Argument_List_Access :=
41
                                 new Argument_List (1 .. 0);
42
 
43
   Tools_Error : exception;
44
   --  Commment required
45
 
46
   Verbose : Boolean := False;
47
   Quiet   : Boolean := False;
48
   --  Comment required ???
49
 
50
   Kill_Suffix : Boolean := False;
51
   --  Kill_Suffix is used by dlltool to know whether or not the @nn suffix
52
   --  should be removed from the exported names. When Kill_Suffix is set to
53
   --  True then dlltool -k option is used.
54
 
55
   procedure Build_Dynamic_Library
56
     (Ofiles        : Argument_List;
57
      Afiles        : Argument_List;
58
      Options       : Argument_List;
59
      Bargs_Options : Argument_List;
60
      Largs_Options : Argument_List;
61
      Lib_Filename  : String;
62
      Def_Filename  : String;
63
      Lib_Address   : String  := "";
64
      Build_Import  : Boolean := False;
65
      Relocatable   : Boolean := False;
66
      Map_File      : Boolean := False);
67
   --  Build a DLL and the import library to link against the DLL.
68
   --  this function handles relocatable and non relocatable DLL.
69
   --  If the Afiles argument list contains some Ada units then it will
70
   --  generate the right adainit and adafinal and integrate it in the DLL.
71
   --  If the Afiles argument list is empty (there is only some object files
72
   --  provided) then it will not try to build a binder file. This is ok to
73
   --  build DLL containing no Ada code. If Map_File is set to True, a map
74
   --  file named Lib_Filename & ".map" will be created.
75
 
76
   procedure Build_Import_Library
77
     (Lib_Filename : String;
78
      Def_Filename : String);
79
   --  Build an import library (.a) from a definition files. An import library
80
   --  is needed to link against a DLL.
81
 
82
end MDLL;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.