diff options
author | upstream source tree <ports@midipix.org> | 2015-03-15 20:14:05 -0400 |
---|---|---|
committer | upstream source tree <ports@midipix.org> | 2015-03-15 20:14:05 -0400 |
commit | 554fd8c5195424bdbcabf5de30fdc183aba391bd (patch) | |
tree | 976dc5ab7fddf506dadce60ae936f43f58787092 /gcc/ada/mdll.ads | |
download | cbb-gcc-4.6.4-15d2061ac0796199866debe9ac87130894b0cdd3.tar.bz2 cbb-gcc-4.6.4-15d2061ac0796199866debe9ac87130894b0cdd3.tar.xz |
obtained gcc-4.6.4.tar.bz2 from upstream website;upstream
verified gcc-4.6.4.tar.bz2.sig;
imported gcc-4.6.4 source tree from verified upstream tarball.
downloading a git-generated archive based on the 'upstream' tag
should provide you with a source tree that is binary identical
to the one extracted from the above tarball.
if you have obtained the source via the command 'git clone',
however, do note that line-endings of files in your working
directory might differ from line-endings of the respective
files in the upstream repository.
Diffstat (limited to 'gcc/ada/mdll.ads')
-rw-r--r-- | gcc/ada/mdll.ads | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/gcc/ada/mdll.ads b/gcc/ada/mdll.ads new file mode 100644 index 000000000..45c6a4578 --- /dev/null +++ b/gcc/ada/mdll.ads @@ -0,0 +1,81 @@ +------------------------------------------------------------------------------ +-- -- +-- GNAT COMPILER COMPONENTS -- +-- -- +-- M D L L -- +-- -- +-- S p e c -- +-- -- +-- Copyright (C) 1992-2008, Free Software Foundation, Inc. -- +-- -- +-- GNAT is free software; you can redistribute it and/or modify it under -- +-- terms of the GNU General Public License as published by the Free Soft- -- +-- ware Foundation; either version 3, or (at your option) any later ver- -- +-- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- +-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- +-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- +-- for more details. You should have received a copy of the GNU General -- +-- Public License distributed with GNAT; see file COPYING3. If not, go to -- +-- http://www.gnu.org/licenses for a complete copy of the license. -- +-- -- +-- GNAT was originally developed by the GNAT team at New York University. -- +-- Extensive contributions were provided by Ada Core Technologies Inc. -- +-- -- +------------------------------------------------------------------------------ + +-- This package provides the core high level routines used by GNATDLL +-- to build Windows DLL + +with GNAT.OS_Lib; +-- Should have USE here ??? + +package MDLL is + + subtype Argument_List is GNAT.OS_Lib.Argument_List; + subtype Argument_List_Access is GNAT.OS_Lib.Argument_List_Access; + + Null_Argument_List : constant Argument_List := (1 .. 0 => new String'("")); + + Null_Argument_List_Access : Argument_List_Access := + new Argument_List (1 .. 0); + + Tools_Error : exception; + -- Comment required + + Verbose : Boolean := False; + Quiet : Boolean := False; + -- Comment required ??? + + Kill_Suffix : Boolean := False; + -- Kill_Suffix is used by dlltool to know whether or not the @nn suffix + -- should be removed from the exported names. When Kill_Suffix is set to + -- True then dlltool -k option is used. + + procedure Build_Dynamic_Library + (Ofiles : Argument_List; + Afiles : Argument_List; + Options : Argument_List; + Bargs_Options : Argument_List; + Largs_Options : Argument_List; + Lib_Filename : String; + Def_Filename : String; + Lib_Address : String := ""; + Build_Import : Boolean := False; + Relocatable : Boolean := False; + Map_File : Boolean := False); + -- Build a DLL and the import library to link against the DLL. + -- this function handles relocatable and non relocatable DLL. + -- If the Afiles argument list contains some Ada units then it will + -- generate the right adainit and adafinal and integrate it in the DLL. + -- If the Afiles argument list is empty (there is only some object files + -- provided) then it will not try to build a binder file. This is ok to + -- build DLL containing no Ada code. If Map_File is set to True, a map + -- file named Lib_Filename & ".map" will be created. + + procedure Build_Import_Library + (Lib_Filename : String; + Def_Filename : String); + -- Build an import library (.a) from a definition files. An import library + -- is needed to link against a DLL. + +end MDLL; |