blob: 03d00d1d28357dbd5f865078f9d1083654a36104 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#ifndef SMOLBOTE_VERSION_H
#define SMOLBOTE_VERSION_H
// VcsVersion gets defined by the CMakeLists if project-src/.hg exists
#cmakedefine VcsVersion
#cmakedefine VcsBookmark
#ifdef VcsVersion
#ifdef VcsBookmark
// Version: 1.2.3 (stable)
#define SMOLBOTE_VERSION "@VcsVersion@ (@VcsBookmark@)"
#else
// Version: 1.2.3
#define SMOLBOTE_VERSION "@VcsVersion@"
#endif
// Describe: 1.2.3-r123-0123456789ab
#define SMOLBOTE_DESCRIBE "@VcsVersion@-r@VcsRevision@-@VcsCommit@"
// Commit
#define SMOLBOTE_COMMIT "@VcsCommit@"
// Branch: default
#define SMOLBOTE_BRANCH "@VcsBranch@"
#else
// If VcsVersion has not been defined, these values will be used
// Version: 1.2.3
#define SMOLBOTE_VERSION "0.3.0"
// Describe: 1.2.3-r123-0123456789ab
#define SMOLBOTE_DESCRIBE "0.3.0-release"
// Commit
#define SMOLBOTE_COMMIT "package"
// Branch: default
#define SMOLBOTE_BRANCH "release"
#endif
#endif // SMOLBOTE_VERSION_H
|