|
18 | 18 | ** See the License for the specific language governing permissions and |
19 | 19 | ** limitations under the License. |
20 | 20 | ** |
21 | | -** File: sample_lib_version.h |
22 | | -** |
23 | | -** Purpose: |
24 | | -** The SAMPLE Lib header file containing version number |
25 | | -** |
26 | | -** Notes: |
27 | | -** |
28 | 21 | *************************************************************************/ |
29 | | -#ifndef _sample_lib_version_h_ |
30 | | -#define _sample_lib_version_h_ |
31 | 22 |
|
32 | | -#define SAMPLE_LIB_MAJOR_VERSION 1 |
33 | | -#define SAMPLE_LIB_MINOR_VERSION 1 |
34 | | -#define SAMPLE_LIB_REVISION 4 |
35 | | -#define SAMPLE_LIB_MISSION_REV 0 |
| 23 | +/*! @file sample_lib_version.h |
| 24 | + * @brief Purpose: |
| 25 | + * |
| 26 | + * The Sample Lib header file containing version information |
| 27 | + * |
| 28 | + */ |
| 29 | + |
| 30 | +#ifndef SAMPLE_LIB_VERSION_H |
| 31 | +#define SAMPLE_LIB_VERSION_H |
| 32 | + |
| 33 | +/* Development Build Macro Definitions */ |
| 34 | + |
| 35 | +#define SAMPLE_LIB_BUILD_NUMBER 27 /*!< Development Build: Number of commits since baseline */ |
| 36 | +#define SAMPLE_LIB_BUILD_BASELINE "v1.1.0" /*!< Development Build: git tag that is the base for the current development */ |
| 37 | + |
| 38 | +/* Version Macro Definitions */ |
| 39 | + |
| 40 | +#define SAMPLE_LIB_MAJOR_VERSION 1 /*!< @brief ONLY APPLY for OFFICIAL releases. Major version number. */ |
| 41 | +#define SAMPLE_LIB_MINOR_VERSION 1 /*!< @brief ONLY APPLY for OFFICIAL releases. Minor version number. */ |
| 42 | +#define SAMPLE_LIB_REVISION 0 /*!< @brief ONLY APPLY for OFFICIAL releases. Revision version number. */ |
| 43 | +#define SAMPLE_LIB_MISSION_REV 0 /*!< @brief ONLY USED by MISSION Implementations. Mission revision */ |
| 44 | + |
| 45 | +#define SAMPLE_LIB_STR_HELPER(x) #x /*!< @brief Helper function to concatenate strings from integer macros */ |
| 46 | +#define SAMPLE_LIB_STR(x) SAMPLE_LIB_STR_HELPER(x) /*!< @brief Helper function to concatenate strings from integer macros */ |
| 47 | + |
| 48 | +/*! @brief Development Build Version Number. |
| 49 | + * @details Baseline git tag + Number of commits since baseline. @n |
| 50 | + * See @ref cfsversions for format differences between development and release versions. |
| 51 | + */ |
| 52 | +#define SAMPLE_LIB_VERSION SAMPLE_LIB_BUILD_BASELINE "+dev" SAMPLE_LIB_STR(SAMPLE_LIB_BUILD_NUMBER) |
| 53 | + |
| 54 | +/*! @brief Development Build Version String. |
| 55 | + * @details Reports the current development build's baseline, number, and name. Also includes a note about the latest official version. @n |
| 56 | + * See @ref cfsversions for format differences between development and release versions. |
| 57 | +*/ |
| 58 | +#define SAMPLE_LIB_VERSION_STRING \ |
| 59 | + " Sample Lib DEVELOPMENT BUILD " \ |
| 60 | + SAMPLE_LIB_VERSION \ |
| 61 | + ", Last Official Release: v1.1.0" /* For full support please use this version */ |
36 | 62 |
|
37 | | -#endif /* _sample_lib_version_h_ */ |
| 63 | +#endif /* SAMPLE_LIB_VERSION_H */ |
38 | 64 |
|
39 | 65 | /************************/ |
40 | 66 | /* End of File Comment */ |
|
0 commit comments