-
Notifications
You must be signed in to change notification settings - Fork 1
/
Roselt.AppInfo.pas
36 lines (29 loc) · 926 Bytes
/
Roselt.AppInfo.pas
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
unit Roselt.AppInfo;
interface
uses System.SysUtils;
function GetAppInfo: String; // Need to get all of the App Info dynamically in the future
implementation
function GetAppInfo: String;
function GetAppArchitectureInfo: String;
begin
Result := 'Unknown Architecture';
{$IFDEF MSWINDOWS} Result := 'X64'; {$ENDIF}
{$IFDEF IOS} Result := 'X64'; {$ENDIF}
{$IFDEF MACOS} Result := 'X64'; {$ENDIF}
{$IFDEF LINUX} Result := 'X64'; {$ENDIF}
{$IFDEF ANDROID} Result := 'X64'; {$ENDIF}
{$IFDEF WEBLIB} Result := 'Web'; {$ENDIF}
end;
var
Version, Architecture, BuildType, CompiledDate: String;
begin
Version := 'Version 1.0.0.0 Beta 1';
Architecture := GetAppArchitectureInfo;
BuildType := 'RELEASE';
{$IFDEF DEBUG}
BuildType := 'DEBUG';
{$ENDIF}
CompiledDate := DateToStr(Date);
Result := Version + ' | ' + Architecture + ' | ' + BuildType + ' | ' + CompiledDate;
end;
end.