1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
5 -- M D L L . T O O L S --
11 -- Copyright (C) 1992-2001 Free Software Foundation, Inc. --
13 -- GNAT is free software; you can redistribute it and/or modify it under --
14 -- terms of the GNU General Public License as published by the Free Soft- --
15 -- ware Foundation; either version 2, or (at your option) any later ver- --
16 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
17 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
18 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
19 -- for more details. You should have received a copy of the GNU General --
20 -- Public License distributed with GNAT; see file COPYING. If not, write --
21 -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
22 -- MA 02111-1307, USA. --
24 -- GNAT was originally developed by the GNAT team at New York University. --
25 -- It is now maintained by Ada Core Technologies Inc (http://www.gnat.com). --
27 ------------------------------------------------------------------------------
29 -- Interface to externals tools used to build DLL and import libraries
34 (Def_Filename : String;
37 Exp_Table : String := "";
38 Base_File : String := "";
39 Build_Import : Boolean);
40 -- Run dlltool binary.
41 -- This tools is used to build an import library and an export table
44 (Output_File : String;
45 Files : Argument_List;
46 Options : Argument_List;
47 Base_File : String := "";
48 Build_Lib : Boolean := False);
52 (Alis : Argument_List;
53 Args : Argument_List := Null_Argument_List);
54 -- Run gnatbind binary to build the binder program.
55 -- it Runs the command : gnatbind -n alis... to build the binder program.
59 Args : Argument_List := Null_Argument_List);
60 -- Run gnatlink binary.
61 -- It runs the command : gnatlink ali arg1 arg2...
64 -- Look for the needed tools in the path and record the full path for each