-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdtinybuild.inc
70 lines (60 loc) · 1.43 KB
/
dtinybuild.inc
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
// Tiny buildinfo macros
// - rlyeh, public domain | wtrmrkrlyeh
// - ported to pascal by Doj
{$IF not Declared(BUILD_GIT_BRANCH)}
const
BUILD_GIT_BRANCH = 'n/a';
{$ENDIF}
{$IF not Declared(BUILD_GIT_REVISION)}
const
BUILD_GIT_REVISION = 'NaN';
{$ENDIF}
{$IF not Declared(BUILD_BITS)}
{$IF Defined(CPU64)}
const
BUILD_BITS = 64;
{$IF not Declared(BUILD_ARCH)} BUILD_ARCH = '64-bit'; {$ENDIF}
{$ELSEIF Defined(CPU32)}
const
BUILD_BITS = 32;
{$IF not Declared(BUILD_ARCH)} BUILD_ARCH = '32-bit'; {$ENDIF}
{$ELSEIF Defined(CPU16)}
const
BUILD_BITS = 16;
{$IF not Declared(BUILD_ARCH)} BUILD_ARCH = '16-bit'; {$ENDIF}
{$ELSE}
const
BUILD_BITS = 0;
{$IF not Declared(BUILD_ARCH)} BUILD_ARCH = '0-bit'; {$ENDIF}
{$ENDIF}
{$ENDIF}
{$IF not Declared(BUILD_PROJECT)}
const
BUILD_PROJECT = 'UNNAMED';
{$ENDIF}
{$IF not Declared(BUILD_VERSION)}
const
BUILD_VERSION = '0.0.0';
{$ENDIF}
{$IF not Declared(BUILD_URL)}
const
BUILD_URL = 'https://';
{$ENDIF}
{$IF not Declared(BUILD_STAMP)}
const
BUILD_STAMP = {$I %DATE%} + ' ' + {$I %TIME%};
{$ENDIF}
{$IF not Declared(BUILD_TYPE)}
const
BUILD_TYPE = 'DEBUG';
{$ENDIF}
{$IF not Declared(BUILD_INFO)}
const
BUILD_INFO = BUILD_PROJECT + ' ' + BUILD_VERSION
+ ' (' + BUILD_ARCH + ' ' + BUILD_TYPE + ')'
+ ' (' + BUILD_STAMP + ')'
+ ' (git:' + BUILD_GIT_BRANCH + ' rev:' + BUILD_GIT_REVISION + ')';
{$ENDIF}
// begin
// Writeln(BUILD_INFO);
// end.