+ Also take resources in main program source into account

git-svn-id: trunk@990 -
This commit is contained in:
michael 2005-08-31 14:12:41 +00:00
parent 9fe7ee0b81
commit a578c9b7ed
2 changed files with 16 additions and 11 deletions

View File

@ -283,6 +283,8 @@ implementation
begin begin
hp:=tused_unit(usedunits.first); hp:=tused_unit(usedunits.first);
found:=false; found:=false;
Found:=((current_module.flags and uf_has_resourcefiles)=uf_has_resourcefiles);
If not found then
While Assigned(hp) and not Found do While Assigned(hp) and not Found do
begin begin
Found:=((hp.u.flags and uf_has_resourcefiles)=uf_has_resourcefiles); Found:=((hp.u.flags and uf_has_resourcefiles)=uf_has_resourcefiles);

View File

@ -659,14 +659,17 @@ Var
begin begin
postprocessexecutable:=True; postprocessexecutable:=True;
if target_res.id=res_elf then if target_res.id=res_elf then
begin
found:=((current_module.flags and uf_has_resourcefiles)=uf_has_resourcefiles);
if not found then
begin begin
hp:=tused_unit(usedunits.first); hp:=tused_unit(usedunits.first);
found:=false;
While Assigned(hp) and not Found do While Assigned(hp) and not Found do
begin begin
Found:=((hp.u.flags and uf_has_resourcefiles)=uf_has_resourcefiles); Found:=((hp.u.flags and uf_has_resourcefiles)=uf_has_resourcefiles);
hp:=tused_unit(hp.next); hp:=tused_unit(hp.next);
end; end;
end;
if found then if found then
begin begin
cmdstr:=' -f -i '+maybequoted(fn); cmdstr:=' -f -i '+maybequoted(fn);