Salome HOME
Fast SSL porting for testbase
[samples/component.git] / COMPONENT_version.h.in
index da9014dd511392487d4e3f5b0cf891a6499ef2dc..d8e9e727cf98d5b1a6ca98293e519410c3a30763 100644 (file)
@@ -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
 #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__