X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=COMPONENT_version.h.in;h=d8e9e727cf98d5b1a6ca98293e519410c3a30763;hb=12aed9bce9883a0fc8db8a3f0afdb9c8fe286ed8;hp=da9014dd511392487d4e3f5b0cf891a6499ef2dc;hpb=5374090b3a9e3473eaf3e690b134967a735531a1;p=samples%2Fcomponent.git diff --git a/COMPONENT_version.h.in b/COMPONENT_version.h.in index da9014d..d8e9e72 100644 --- a/COMPONENT_version.h.in +++ b/COMPONENT_version.h.in @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2022 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -6,7 +6,7 @@ // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -27,12 +27,22 @@ #if !defined(__COMPONENT_VERSION_H__) #define __COMPONENT_VERSION_H__ -/* - COMPONENT_VERSION is (major << 16) + (minor << 8) + patch. +/*! + Specify version of SALOME COMPONENT module, as follows + + COMPONENT_VERSION_MAJOR : (integer) number identifying major version + COMPONENT_VERSION_MINOR : (integer) number identifying minor version + COMPONENT_VERSION_MAINTENANCE : (integer) number identifying maintenance version + COMPONENT_VERSION_STR : (string) complete version number "major.minor.maintenance" + COMPONENT_VERSION : (hex) complete version number (major << 16) + (minor << 8) + maintenance + COMPONENT_DEVELOPMENT : (integer) indicates development version when set to 1 */ -#define COMPONENT_VERSION_STR "@VERSION@" -#define COMPONENT_VERSION @XVERSION@ -#define COMPONENT_DEVELOPMENT @VERSION_DEV@ +#define COMPONENT_VERSION_MAJOR @SALOMECOMPONENT_MAJOR_VERSION@ +#define COMPONENT_VERSION_MINOR @SALOMECOMPONENT_MINOR_VERSION@ +#define COMPONENT_VERSION_MAINTENANCE @SALOMECOMPONENT_PATCH_VERSION@ +#define COMPONENT_VERSION_STR "@SALOMECOMPONENT_VERSION@" +#define COMPONENT_VERSION @SALOMECOMPONENT_XVERSION@ +#define COMPONENT_DEVELOPMENT @SALOMECOMPONENT_VERSION_DEV@ #endif // __COMPONENT_VERSION_H__