t_wdosx.pas 2.8 KB

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