version.pas 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by Florian Klaempfl
  4. Version/target constants
  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 version;
  19. {$i fpcdefs.inc}
  20. interface
  21. const
  22. { word version for ppu file }
  23. wordversion = (1 shl 14)+(1 shl 7) + 0;
  24. { version string }
  25. version_nr = '1';
  26. release_nr = '1';
  27. patch_nr = '0';
  28. minorpatch = '';
  29. { date string }
  30. {$ifdef FPC}
  31. date_string = {$I %DATE%};
  32. {$else}
  33. date_string = 'N/A';
  34. {$endif}
  35. { target cpu string }
  36. {$ifdef i386}
  37. target_cpu_string = 'i386';
  38. {$endif}
  39. {$ifdef x86_64}
  40. target_cpu_string = 'x86_64';
  41. {$endif}
  42. {$ifdef sparc}
  43. target_cpu_string = 'sparc';
  44. {$endif}
  45. {$ifdef m68k}
  46. target_cpu_string = 'm68k';
  47. {$endif}
  48. {$ifdef alpha}
  49. target_cpu_string = 'alpha';
  50. {$endif}
  51. {$ifdef powerpc}
  52. target_cpu_string = 'powerpc';
  53. {$endif}
  54. {$ifdef ia64}
  55. target_cpu_string = 'ia64';
  56. {$endif}
  57. {$ifdef mips}
  58. target_cpu_string = 'mips';
  59. {$endif}
  60. {$ifdef arm}
  61. target_cpu_string = 'arm';
  62. {$endif}
  63. { source cpu string }
  64. {$ifdef cpu86}
  65. source_cpu_string = 'i386';
  66. {$endif}
  67. {$ifdef cpu68}
  68. source_cpu_string = 'm68k';
  69. {$endif}
  70. {$ifdef cpuia64}
  71. target_cpu_string = 'ia64';
  72. {$endif}
  73. {$ifdef cpu86_64}
  74. source_cpu_string = 'x86_64';
  75. {$endif}
  76. function version_string:string;
  77. function full_version_string:string;
  78. implementation
  79. function version_string:string;
  80. begin
  81. if patch_nr='0' then
  82. version_string := version_nr+'.'+release_nr
  83. else
  84. version_string := version_nr+'.'+release_nr+'.'+patch_nr;
  85. end;
  86. function full_version_string:string;
  87. begin
  88. if patch_nr='0' then
  89. full_version_string := version_nr+'.'+release_nr+minorpatch
  90. else
  91. full_version_string := version_nr+'.'+release_nr+'.'+patch_nr+minorpatch;
  92. end;
  93. end.
  94. {
  95. $Log$
  96. Revision 1.14 2002-08-09 19:15:41 carl
  97. - removed newcg define
  98. Revision 1.13 2002/07/04 20:43:02 florian
  99. * first x86-64 patches
  100. Revision 1.12 2002/05/18 13:34:21 peter
  101. * readded missing revisions
  102. Revision 1.11 2002/05/16 19:46:47 carl
  103. + defines.inc -> fpcdefs.inc to avoid conflicts if compiling by hand
  104. + try to fix temp allocation (still in ifdef)
  105. + generic constructor calls
  106. + start of tassembler / tmodulebase class cleanup
  107. Revision 1.9 2002/03/24 19:12:11 carl
  108. + patch for SPARC from Mazen NEIFER
  109. Revision 1.8 2002/03/01 12:47:21 pierre
  110. * used shl 7 for release number
  111. }