i_win32.pas 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by Peter Vreman
  4. This unit implements support information structures for win32
  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. { This unit implements support information structures for win32. }
  19. unit i_win32;
  20. interface
  21. uses
  22. systems;
  23. const
  24. res_gnu_windres_info : tresinfo =
  25. (
  26. id : res_gnu_windres;
  27. resbin : 'windres';
  28. rescmd : '--include $INC -O coff -o $OBJ $RES'
  29. );
  30. const
  31. system_i386_win32_info : tsysteminfo =
  32. (
  33. system : system_i386_WIN32;
  34. name : 'Win32 for i386';
  35. shortname : 'Win32';
  36. flags : [];
  37. cpu : cpu_i386;
  38. unit_env : 'WIN32UNITS';
  39. extradefines : 'MSWINDOWS';
  40. exeext : '.exe';
  41. defext : '.def';
  42. scriptext : '.bat';
  43. smartext : '.sl';
  44. unitext : '.ppu';
  45. unitlibext : '.ppl';
  46. asmext : '.s';
  47. objext : '.o';
  48. resext : '.rc';
  49. resobjext : '.or';
  50. sharedlibext : '.dll';
  51. staticlibext : '.a';
  52. staticlibprefix : 'libp';
  53. sharedlibprefix : '';
  54. sharedClibext : '.dll';
  55. staticClibext : '.a';
  56. staticClibprefix : 'lib';
  57. sharedClibprefix : '';
  58. p_ext_support : false;
  59. Cprefix : '_';
  60. newline : #13#10;
  61. dirsep : '\';
  62. files_case_relevent : true;
  63. assem : as_i386_pecoff;
  64. assemextern : as_gas;
  65. link : nil;
  66. linkextern : nil;
  67. ar : ar_gnu_ar;
  68. res : res_gnu_windres;
  69. script : script_dos;
  70. endian : endian_little;
  71. alignment :
  72. (
  73. procalign : 4;
  74. loopalign : 4;
  75. jumpalign : 0;
  76. constalignmin : 0;
  77. constalignmax : 4;
  78. varalignmin : 0;
  79. varalignmax : 4;
  80. localalignmin : 4;
  81. localalignmax : 4;
  82. recordalignmin : 0;
  83. recordalignmax : 4;
  84. maxCrecordalign : 16
  85. );
  86. first_parm_offset : 8;
  87. stacksize : 262144;
  88. DllScanSupported:true;
  89. use_function_relative_addresses : true
  90. );
  91. implementation
  92. initialization
  93. {$ifdef CPU86}
  94. {$ifdef WIN32}
  95. {$ifndef WDOSX}
  96. set_source_info(system_i386_win32_info);
  97. {$endif WDOSX}
  98. {$endif WIN32}
  99. {$endif CPU86}
  100. end.
  101. {
  102. $Log$
  103. Revision 1.12 2005-03-20 22:36:45 olle
  104. * Cleaned up handling of source file extension.
  105. + Added support for .p extension for macos and darwin
  106. Revision 1.11 2005/02/14 17:13:10 peter
  107. * truncate log
  108. }