| 1 | <?xml version="1.0" encoding="UTF-8" standalone="yes"?> | 
 
 
 
 
 | 2 | <software-distribution project="MinGW" home="http://mingw.org" issue="2012073100"> | 
 
 
 
 
 | 3 |  | 
 
 
 
 
 | 4 | <!-- File: mingw32-gendef.xml --> | 
 
 
 
 
 | 5 |  | 
 
 
 
 
 | 6 | <package-collection subsystem="mingw32"> | 
 
 
 
 
 | 7 | <download-host uri="http://prdownloads.sourceforge.net/mingw/%F?download" /> | 
 
 
 
 
 | 8 |  | 
 
 
 
 
 | 9 | <package name="mingw32-gendef" alias="gendef"> | 
 
 
 
 
 | 10 | <description lang="en" title="Generate .def files for DLLs" > | 
 
 
 
 
 | 11 | <paragraph>gendef can extract information from DLLs to create | 
 
 
 
 
 | 12 | corresponding .def files that list the symbols available in each DLL. | 
 
 
 
 
 | 13 | .def files can then be used by dlltool (mingw32-binutils) to generate | 
 
 
 
 
 | 14 | import libraries.  gendef is similar to pexports, but the two tools | 
 
 
 
 
 | 15 | differ in how each determines the "decoration" (or calling convention) | 
 
 
 
 
 | 16 | appropriate for each symbol, since that information is not always | 
 
 
 
 
 | 17 | available directly from the DLL's symbol table.  gendef locates the | 
 
 
 
 
 | 18 | symbol's code in the DLL, and uses a disassembler to determine that | 
 
 
 
 
 | 19 | information.  pexports can use a C pre-processor to extract the | 
 
 
 
 
 | 20 | information, provided you have the appropriate header files.  Neither | 
 
 
 
 
 | 21 | method is foolproof, so both tools are provided. | 
 
 
 
 
 | 22 | </paragraph> | 
 
 
 
 
 | 23 | <paragraph>gendef was written by the MinGW64 team.  It can extract | 
 
 
 
 
 | 24 | symbols from 32bit or 64bit EXEs or DLLs.  It can automatically detect | 
 
 
 
 
 | 25 | stdcall, fastcall, and cdecl calling conventions and generate the | 
 
 
 
 
 | 26 | correctly decorated function names, without requiring the header files | 
 
 
 
 
 | 27 | or a C pre-processor. | 
 
 
 
 
 | 28 | </paragraph> | 
 
 
 
 
 | 29 | </description> | 
 
 
 
 
 | 30 |  | 
 
 
 
 
 | 31 | <licence tarname="gendef-%-mingw32-%-lic.tar.%" /> | 
 
 
 
 
 | 32 | <source tarname="gendef-%-mingw32-%-src.tar.%" /> | 
 
 
 
 
 | 33 |  | 
 
 
 
 
 | 34 | <component class="bin"> | 
 
 
 
 
 | 35 | <release tarname="gendef-1.0.1346-1-mingw32-bin.tar.lzma" /> | 
 
 
 
 
 | 36 | </component> | 
 
 
 
 
 | 37 |  | 
 
 
 
 
 | 38 | <component class="doc"> | 
 
 
 
 
 | 39 | <release tarname="gendef-1.0.1346-1-mingw32-doc.tar.lzma" /> | 
 
 
 
 
 | 40 | </component> | 
 
 
 
 
 | 41 |  | 
 
 
 
 
 | 42 | <component class="lic"> | 
 
 
 
 
 | 43 | <release tarname="gendef-1.0.1346-1-mingw32-lic.tar.lzma" /> | 
 
 
 
 
 | 44 | </component> | 
 
 
 
 
 | 45 | </package> | 
 
 
 
 
 | 46 |  | 
 
 
 
 
 | 47 | </package-collection> | 
 
 
 
 
 | 48 | </software-distribution> | 
 
 
 
 
 | 49 | <!-- vim: set nocompatible expandtab fileformat=unix textwidth=80 tabstop=2 shiftwidth=2: --> |