Salome HOME
updated copyright message
[samples/component.git] / COMPONENT_version.h.in
index 8ea41460dcfe36e09637720638cbf7205af74df6..6c8ff2be4788762756649456d88214365631c48b 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023  CEA, EDF, 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__