Skip to content

Commit

Permalink
Finetuning QT5 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
LongDirtyAnimAlf committed Sep 14, 2017
1 parent bc83eb7 commit e905719
Showing 1 changed file with 39 additions and 3 deletions.
42 changes: 39 additions & 3 deletions installerlazarus.pas
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ function TLazarusNativeInstaller.BuildModuleCustom(ModuleName: string): boolean;
LazBuildApp: string;
OperationSucceeded: boolean;
sCmpOpt: string;
NothingToBeDone:boolean;
begin
Result:=inherited;

Expand Down Expand Up @@ -474,7 +475,24 @@ function TLazarusNativeInstaller.BuildModuleCustom(ModuleName: string): boolean;
end;
'LCLCROSS':
begin
NothingToBeDone:=false;
if FCrossLCL_Platform<>'' then
begin
{$ifdef Darwin}
{$ifdef LCLCOCOA}
NothingToBeDone:=(FCrossLCL_Platform='cocoa');
{$else}
{$ifdef CPUX64}
{$ifdef LCLQT5}
NothingToBeDone:=(FCrossLCL_Platform='qt5');
{$else}
NothingToBeDone:=(FCrossLCL_Platform='cocoa');
{$endif}
{$endif}
{$endif}
{$endif}
end;
if (NOT NothingToBeDone) then
begin
// first: Processor.Parameters.Add('-C lcl'+DirectorySeparator+'interfaces'+DirectorySeparator+FCrossLCL_Platform);
// followed by: make ideintf basecomponents bigidecomponents LCL_PLATFORM=qt
Expand All @@ -486,7 +504,7 @@ function TLazarusNativeInstaller.BuildModuleCustom(ModuleName: string): boolean;
else
begin
// nothing to be done: exit graceously
infoln(infotext+'No LCL_PLATFORM defined ... nothing to be done', etInfo);
infoln(infotext+'No extra LCL_PLATFORM defined ... nothing to be done', etInfo);
OperationSucceeded := true;
Result := true;
exit;
Expand Down Expand Up @@ -980,6 +998,7 @@ function TLazarusInstaller.CleanModule(ModuleName: string): boolean;
{$endif}
oldlog: TErrorMethod;
CleanCommand,CleanDirectory:string;
NothingToBeDone:boolean;
begin
Result := inherited;

Expand Down Expand Up @@ -1070,14 +1089,31 @@ function TLazarusInstaller.CleanModule(ModuleName: string): boolean;
'LCLCROSS':
begin
CleanDirectory:=DirectorySeparator+'lcl';
if (FCrossLCL_Platform <> '') then
NothingToBeDone:=false;
if FCrossLCL_Platform<>'' then
begin
{$ifdef Darwin}
{$ifdef LCLCOCOA}
NothingToBeDone:=(FCrossLCL_Platform='cocoa');
{$else}
{$ifdef CPUX64}
{$ifdef LCLQT5}
NothingToBeDone:=(FCrossLCL_Platform='qt5');
{$else}
NothingToBeDone:=(FCrossLCL_Platform='cocoa');
{$endif}
{$endif}
{$endif}
{$endif}
end;
if (NOT NothingToBeDone) then
begin
Processor.Parameters.Add('LCL_PLATFORM=' + FCrossLCL_Platform);
CleanCommand:='cleanintf';
end
else
begin
infoln(infotext+'No LCL_PLATFORM defined ... nothing to be done', etInfo);
infoln(infotext+'No extra LCL_PLATFORM defined ... nothing to be done', etInfo);
Result := true;
exit;
end;
Expand Down

0 comments on commit e905719

Please sign in to comment.