version.pas 3.2 KB

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