mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 04:49:25 +02:00
ide: don't write icon to .lrs file since .res can be used everywhere
git-svn-id: trunk@23382 -
This commit is contained in:
parent
f6928e6ddc
commit
fc53888ae2
@ -109,7 +109,7 @@ begin
|
||||
if FilenameIsAbsolute(FIcoFileName) then
|
||||
CreateIconFile;
|
||||
|
||||
// don't add icon to lazarus resources if we are using fpc resources
|
||||
{ to create an lrs with icon we can use this but there is no reason anymore
|
||||
if AResources.ResourceType <> rtRes then
|
||||
begin
|
||||
AResource := GetStream;
|
||||
@ -119,6 +119,7 @@ begin
|
||||
AResource.Free;
|
||||
end;
|
||||
end;
|
||||
}
|
||||
|
||||
AName := TResourceDesc.Create('MAINICON');
|
||||
ARes := TGroupIconResource.Create(nil, AName); //type is always RT_GROUP_ICON
|
||||
|
@ -598,13 +598,7 @@ begin
|
||||
else
|
||||
if HasSystemResources then
|
||||
begin
|
||||
// if we are using fpc resources only we need to compile them on all systems
|
||||
// since we have no other way to get them. If LRS are used then we can
|
||||
// skip compiling of rc on other than windows systems
|
||||
case ResourceType of
|
||||
rtLRS: Directive := '{$IFDEF WINDOWS}{$R '+Filename+'}{$ENDIF}';
|
||||
rtRes: Directive := '{$R '+Filename+'}';
|
||||
end;
|
||||
Directive := '{$R '+Filename+'}';
|
||||
if not CodeToolBoss.AddResourceDirective(CodeBuf, Filename, false, Directive) then
|
||||
begin
|
||||
Result := False;
|
||||
|
Loading…
Reference in New Issue
Block a user