| 1 |
------------------------------------------------------------------------------ |
| 2 |
-- -- |
| 3 |
-- GNAT COMPILER COMPONENTS -- |
| 4 |
-- -- |
| 5 |
-- G N A T V S N -- |
| 6 |
-- -- |
| 7 |
-- S p e c -- |
| 8 |
-- -- |
| 9 |
-- Copyright (C) 1992-2025, Free Software Foundation, Inc. -- |
| 10 |
-- -- |
| 11 |
-- GNAT is free software; you can redistribute it and/or modify it under -- |
| 12 |
-- terms of the GNU General Public License as published by the Free Soft- -- |
| 13 |
-- ware Foundation; either version 3, or (at your option) any later ver- -- |
| 14 |
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- |
| 15 |
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- |
| 16 |
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- |
| 17 |
-- for more details. You should have received a copy of the GNU General -- |
| 18 |
-- Public License distributed with GNAT; see file COPYING3. If not, go to -- |
| 19 |
-- http://www.gnu.org/licenses for a complete copy of the license. -- |
| 20 |
-- -- |
| 21 |
-- GNAT was originally developed by the GNAT team at New York University. -- |
| 22 |
-- Extensive contributions were provided by Ada Core Technologies Inc. -- |
| 23 |
-- -- |
| 24 |
------------------------------------------------------------------------------ |
| 25 |
|
| 26 |
-- This package spec holds version information for the GNAT tools. |
| 27 |
-- It is updated whenever the release number is changed. |
| 28 |
|
| 29 |
package Gnatvsn is |
| 30 |
|
| 31 |
Gnat_Static_Version_String : constant String := "GNU Ada"; |
| 32 |
-- Static string identifying this version, that can be used as an argument |
| 33 |
-- to e.g. pragma Ident. |
| 34 |
|
| 35 |
Library_Version : constant String := "15"; |
| 36 |
-- Library version. It needs to be updated whenever the major version |
| 37 |
-- number is changed. |
| 38 |
-- |
| 39 |
-- Note: Makefile.in uses the library version string to construct the |
| 40 |
-- soname value. |
| 41 |
|
| 42 |
Current_Year : constant String := "2025"; |
| 43 |
-- Used in printing copyright messages |
| 44 |
|
| 45 |
Verbose_Library_Version : constant String := "GNAT Lib v" & Library_Version; |
| 46 |
-- Version string stored in e.g. ALI files |
| 47 |
|
| 48 |
function Gnat_Version_String return String; |
| 49 |
-- Version output when GNAT (compiler), or its related tools, including |
| 50 |
-- GNATBIND, GNATCHOP, GNATFIND, GNATLINK, GNATMAKE, GNATXREF, are run |
| 51 |
-- (with appropriate verbose option switch set). |
| 52 |
|
| 53 |
type Gnat_Build_Type is (FSF, GPL); |
| 54 |
-- See Build_Type below for the meaning of these values. |
| 55 |
|
| 56 |
Build_Type : constant Gnat_Build_Type := FSF; |
| 57 |
-- Kind of GNAT build: |
| 58 |
-- |
| 59 |
-- FSF |
| 60 |
-- GNAT FSF version. This version of GNAT is part of a Free Software |
| 61 |
-- Foundation release of the GNU Compiler Collection (GCC). The bug |
| 62 |
-- box generated by Comperr gives information on how to report bugs |
| 63 |
-- and list the "no warranty" information. |
| 64 |
-- |
| 65 |
-- GPL |
| 66 |
-- GNAT Community Edition. This is a special version of GNAT, released |
| 67 |
-- by Ada Core Technologies and intended for academic users and free |
| 68 |
-- software developers. The bug box generated by the package Comperr |
| 69 |
-- gives appropriate bug submission instructions that do not reference |
| 70 |
-- customer number etc. |
| 71 |
|
| 72 |
function Gnat_Free_Software return String; |
| 73 |
-- Text to be displayed by the different GNAT tools when switch --version |
| 74 |
-- is used. This text depends on the GNAT build type. |
| 75 |
|
| 76 |
function Copyright_Holder return String; |
| 77 |
-- Return the name of the Copyright holder to be displayed by the different |
| 78 |
-- GNAT tools when switch --version is used. |
| 79 |
|
| 80 |
Ver_Len_Max : constant := 256; |
| 81 |
-- Longest possible length for Gnat_Version_String in this or any |
| 82 |
-- other version of GNAT. This is used by the binder to establish |
| 83 |
-- space to store any possible version string value for checks. This |
| 84 |
-- value should never be decreased in the future, but it would be |
| 85 |
-- OK to increase it if absolutely necessary. If it is increased, |
| 86 |
-- be sure to increase GNAT.Compiler.Version.Ver_Len_Max, and to update |
| 87 |
-- the VER_LEN_MAX define in version.c as well. |
| 88 |
|
| 89 |
Ver_Prefix : constant String := "GNAT Version: "; |
| 90 |
-- Prefix generated by binder. If it is changed, be sure to change |
| 91 |
-- GNAT.Compiler_Version.Ver_Prefix as well. |
| 92 |
|
| 93 |
end Gnatvsn; |