forked from mintty/mintty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appinfo.h
74 lines (60 loc) · 2.03 KB
/
appinfo.h
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#ifndef APPINFO_H
#define APPINFO_H
#define APPNAME "mintty"
#define WEBSITE "http://mintty.github.io/"
#define MAJOR_VERSION 3
#define MINOR_VERSION 7
#define PATCH_NUMBER 7
#define BUILD_NUMBER 0
// needed for res.rc
#define APPDESC "Terminal"
#define AUTHOR "Thomas Wolff, Andy Koppe"
#define YEAR "2024"
#define CONCAT_(a,b) a##b
#define CONCAT(a,b) CONCAT_(a,b)
#define STRINGIFY_(s) #s
#define STRINGIFY(s) STRINGIFY_(s)
#if BUILD_NUMBER
#define VERSION STRINGIFY(MAJOR_VERSION.MINOR_VERSION-CONCAT(beta,BUILD_NUMBER))
#else
#define VERSION STRINGIFY(MAJOR_VERSION.MINOR_VERSION.PATCH_NUMBER)
#endif
#if defined SVN_DIR && defined SVN_REV // deprecated
#undef BUILD_NUMBER
#define BUILD_NUMBER SVN_REV
#undef VERSION
#define VERSION STRINGIFY(svn-SVN_DIR-CONCAT(r,SVN_REV))
#endif
// needed for res.rc
#define POINT_VERSION \
STRINGIFY(MAJOR_VERSION.MINOR_VERSION.PATCH_NUMBER.BUILD_NUMBER)
#define COMMA_VERSION \
MAJOR_VERSION,MINOR_VERSION,PATCH_NUMBER,BUILD_NUMBER
#define COPYRIGHT "© " YEAR " " AUTHOR
// needed for secondary device attributes report
#define DECIMAL_VERSION \
(MAJOR_VERSION * 10000 + MINOR_VERSION * 100 + PATCH_NUMBER)
// needed for mintty -V and Options... - About...
#ifdef VERSION_SUFFIX
#define VERSION_APPENDIX " (" STRINGIFY(TARGET) ") " STRINGIFY(VERSION_SUFFIX)
#define VERSION_TEXT \
APPNAME " " VERSION " (" STRINGIFY(TARGET) ") " STRINGIFY(VERSION_SUFFIX)
#else
#define VERSION_APPENDIX " (" STRINGIFY(TARGET) ")"
#define VERSION_TEXT \
APPNAME " " VERSION " (" STRINGIFY(TARGET) ")"
#endif
#undef VERSION_TEXT
#define VERSION_TEXT version()
#define LICENSE_TEXT \
"License GPLv3+: GNU GPL version 3 or later"
#define WARRANTY_TEXT \
__("There is no warranty, to the extent permitted by law.")
// needed for Options... - About...
//__ %s: WEBSITE (URL)
#define ABOUT_TEXT \
__("Please report bugs or request enhancements through the " \
"issue tracker on the mintty project page located at" \
"\n%s.\n" \
"See also the Wiki there for further hints, thanks and credits.")
#endif