Added: build flags for App.Version (Debug, Prerelease, Special, Private)
This commit is contained in:
parent
c4e557268f
commit
a97a491ca2
24
X2UtApp.pas
24
X2UtApp.pas
@ -109,6 +109,10 @@ type
|
||||
FMinor: Integer;
|
||||
FRelease: Integer;
|
||||
FBuild: Integer;
|
||||
FDebug: Boolean;
|
||||
FPrerelease: Boolean;
|
||||
FSpecial: Boolean;
|
||||
FPrivate: Boolean;
|
||||
FStrings: TX2AppVersionStrings;
|
||||
public
|
||||
constructor Create();
|
||||
@ -130,6 +134,22 @@ type
|
||||
//:! Defaults to 0 if no version information is available
|
||||
property Build: Integer read FBuild write FBuild;
|
||||
|
||||
//:$ Contains the value of the Debug Build flag
|
||||
//:! Defaults to False if no version information is available
|
||||
property Debug: Boolean read FDebug write FDebug;
|
||||
|
||||
//:$ Contains the value of the Prerelease Build flag
|
||||
//:! Defaults to False if no version information is available
|
||||
property Prerelease: Boolean read FPrerelease write FPrerelease;
|
||||
|
||||
//:$ Contains the value of the Special Build flag
|
||||
//:! Defaults to False if no version information is available
|
||||
property Special: Boolean read FSpecial write FSpecial;
|
||||
|
||||
//:$ Contains the value of the Private Build flag
|
||||
//:! Defaults to False if no version information is available
|
||||
property Private: Boolean read FPrivate write FPrivate;
|
||||
|
||||
//:$ Contains extended version information
|
||||
property Strings: TX2AppVersionStrings read FStrings;
|
||||
end;
|
||||
@ -355,6 +375,10 @@ begin
|
||||
Minor := LoWord(pInfo^.dwFileVersionMS);
|
||||
Release := HiWord(pInfo^.dwFileVersionLS);
|
||||
Build := LoWord(pInfo^.dwFileVersionLS);
|
||||
Debug := ((pInfo^.dwFileFlags and VS_FF_DEBUG) = VS_FF_DEBUG);
|
||||
Prerelease := ((pInfo^.dwFileFlags and VS_FF_PRERELEASE) = VS_FF_PRERELEASE);
|
||||
Special := ((pInfo^.dwFileFlags and VS_FF_SPECIALBUILD) = VS_FF_SPECIALBUILD);
|
||||
Private := ((pInfo^.dwFileFlags and VS_FF_PRIVATEBUILD) = VS_FF_PRIVATEBUILD);
|
||||
end;
|
||||
|
||||
// Get additional version information using RTTI
|
||||
|
Loading…
Reference in New Issue
Block a user