| 1 | |
| 2 | /** |
| 3 | * |
| 4 | * @file version.cpp |
| 5 | * |
| 6 | * Part of the OpenJazz project |
| 7 | * |
| 8 | * @par Licence: |
| 9 | * Copyright (c) 2015-2023 Carsten Teibes |
| 10 | * |
| 11 | * OpenJazz is distributed under the terms of |
| 12 | * the GNU General Public License, version 2.0 |
| 13 | * |
| 14 | * @par Description: |
| 15 | * Contains version information. |
| 16 | * |
| 17 | */ |
| 18 | |
| 19 | #include "version.h" |
| 20 | |
| 21 | // Fallback version data, should be defined by the build system |
| 22 | #ifndef OJ_DATE |
| 23 | #define OJ_DATE __DATE__ |
| 24 | #endif |
| 25 | #ifndef OJ_VERSION |
| 26 | #define OJ_VERSION "git" |
| 27 | #endif |
| 28 | |
| 29 | const char *oj_date = OJ_DATE; |
| 30 | |
| 31 | #ifdef OJ_VERSION_GIT |
| 32 | const char *oj_version = OJ_VERSION " (" OJ_VERSION_GIT ")"; |
| 33 | #else |
| 34 | const char *oj_version = OJ_VERSION; |
| 35 | #endif |