ide: creating app bundle as a part of a build process for Cocoa WS. Issue #36780

git-svn-id: branches/fixes_2_0@62936 -
This commit is contained in:
mattias 2020-04-11 08:52:58 +00:00
parent 52abee6390
commit 07af721275

View File

@ -6866,13 +6866,10 @@ begin
end; end;
end; end;
// leave if no further action is needed
if NoBuildNeeded then
exit;
// create application bundle // create application bundle
if Project1.UseAppBundle and (Project1.MainUnitID>=0) if Project1.UseAppBundle and (Project1.MainUnitID>=0)
and (MainBuildBoss.GetLCLWidgetType=LCLPlatformDirNames[lpCarbon]) and ((MainBuildBoss.GetLCLWidgetType=LCLPlatformDirNames[lpCarbon])
or (MainBuildBoss.GetLCLWidgetType=LCLPlatformDirNames[lpCocoa]))
then begin then begin
Result:=CreateApplicationBundle(TargetExeName, Project1.GetTitleOrName); Result:=CreateApplicationBundle(TargetExeName, Project1.GetTitleOrName);
if not (Result in [mrOk,mrIgnore]) then begin if not (Result in [mrOk,mrIgnore]) then begin
@ -6886,6 +6883,11 @@ begin
end; end;
end; end;
// leave if no further action is needed
if NoBuildNeeded then
exit;
if (AReason in Project1.CompilerOptions.CompileReasons) if (AReason in Project1.CompilerOptions.CompileReasons)
and (not (pbfDoNotCompileProject in Flags)) then begin and (not (pbfDoNotCompileProject in Flags)) then begin
// compile // compile