ide: don't write icon to .lrs file since .res can be used everywhere

git-svn-id: trunk@23382 -
This commit is contained in:
paul 2010-01-05 10:43:22 +00:00
parent f6928e6ddc
commit fc53888ae2
2 changed files with 3 additions and 8 deletions

View File

@ -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

View File

@ -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;