t_wdosx.pas 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. {
  2. Copyright (c) 2001-2002 Pavel ??????
  3. This unit implements support import,export,link routines
  4. for the (i386) WDOSX target
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. ****************************************************************************
  17. }
  18. unit t_wdosx;
  19. {$i fpcdefs.inc}
  20. interface
  21. implementation
  22. uses
  23. cutils,
  24. fmodule,globals,systems,
  25. import,export,link,t_win,i_wdosx;
  26. type
  27. timportlibwdosx=class(TImportLibWin)
  28. end;
  29. texportlibwdosx=TExportLibWin;
  30. TExternalLinkerwdosx=class(TExternalLinkerWin)
  31. public
  32. function MakeExecutable:boolean;override;
  33. end;
  34. tDLLScannerWdosx=class(TDLLScannerWin)
  35. end;
  36. {*****************************************************************************
  37. TIMPORTLIBWDOSX
  38. *****************************************************************************}
  39. {*****************************************************************************
  40. TExternalLinkerWDOSX
  41. *****************************************************************************}
  42. function TExternalLinkerWdosx.MakeExecutable:boolean;
  43. var
  44. b: boolean;
  45. begin
  46. b := Inherited MakeExecutable;
  47. if b then
  48. DoExec(FindUtil('stubit'),current_module.exefilename^,false,false);
  49. Result := b;
  50. end;
  51. {****************************************************************************
  52. TDLLScannerWdosx
  53. ****************************************************************************}
  54. {*****************************************************************************
  55. Initialize
  56. *****************************************************************************}
  57. initialization
  58. RegisterExternalLinker(system_i386_wdosx_info,TExternalLinkerWdosx);
  59. RegisterImport(system_i386_wdosx,TImportLibWdosx);
  60. RegisterExport(system_i386_wdosx,TExportLibWdosx);
  61. RegisterDLLScanner(system_i386_wdosx,TDLLScannerWdosx);
  62. {RegisterAr(ar_gnu_arw_info);}
  63. {RegisterRes(res_gnu_windres_info);}
  64. RegisterTarget(system_i386_wdosx_info);
  65. end.