You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-06-12 22:07:39 +02:00
improve: allow to disable extensions (cef_extensions.pak)
Some projects does not use extenstions, so there is no need to include `cef_extensions.pak` into a project, but CEF4Delphi requires it. Make able to disable extensions. Let's introduce the method `DisableExtensions` which will disable the file check for `cef_extensions.pak` and will add the `--disable-extensions` command line option.
This commit is contained in:
@ -167,7 +167,7 @@ function GetDLLVersion(const aDLLFile : string; var aVersionInfo : TFileVersion
|
||||
function SplitLongString(aSrcString : string) : string;
|
||||
function GetAbsoluteDirPath(const aSrcPath : string; var aRsltPath : string) : boolean;
|
||||
function CheckLocales(const aLocalesDirPath : string; var aMissingFiles : string; const aLocalesRequired : string = '') : boolean;
|
||||
function CheckResources(const aResourcesDirPath : string; var aMissingFiles : string; aCheckDevResources: boolean = True) : boolean;
|
||||
function CheckResources(const aResourcesDirPath : string; var aMissingFiles : string; aCheckDevResources: boolean = True; aCheckExtensions: boolean = True) : boolean;
|
||||
function CheckDLLs(const aFrameworkDirPath : string; var aMissingFiles : string) : boolean;
|
||||
function CheckDLLVersion(const aDLLFile : string; aMajor, aMinor, aRelease, aBuild : uint16) : boolean;
|
||||
function FileVersionInfoToString(const aVersionInfo : TFileVersionInfo) : string;
|
||||
@ -909,7 +909,7 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
function CheckResources(const aResourcesDirPath : string; var aMissingFiles : string; aCheckDevResources: boolean) : boolean;
|
||||
function CheckResources(const aResourcesDirPath : string; var aMissingFiles : string; aCheckDevResources, aCheckExtensions: boolean) : boolean;
|
||||
var
|
||||
TempDir : string;
|
||||
TempList : TStringList;
|
||||
@ -928,8 +928,8 @@ begin
|
||||
TempList.Add(TempDir + 'cef.pak');
|
||||
TempList.Add(TempDir + 'cef_100_percent.pak');
|
||||
TempList.Add(TempDir + 'cef_200_percent.pak');
|
||||
TempList.Add(TempDir + 'cef_extensions.pak');
|
||||
|
||||
if aCheckExtensions then TempList.Add(TempDir + 'cef_extensions.pak');
|
||||
if aCheckDevResources then TempList.Add(TempDir + 'devtools_resources.pak');
|
||||
|
||||
if TempExists then
|
||||
|
Reference in New Issue
Block a user