I don't see how including all images needed by the package internally to the final application could be prevented. But having the component palette icons in the resource definitely looks wrong. At the moment I don't see where this happened. Since I want to focus on other things I cannot investigate too much. Can you give me a hint, or, better, can you write a patch?
Images for component palette included as *.res files.
I find out lazarus/fpc include it in every programm if they are *.res/*.dcr files,
so
images for component palette must be included as lazarus resources (.lrs-Files). I made for you lrs-file in zip-file.
Why have you added IDEIntf to required packages? Is it needed?I think you should remove all unneeded units from laz_visualplanit.pas and put it to vpreg.pas,
because packageunits (here laz_visualplanit.pas) are included to every application if you this package.
1. Comment out {$R VpReg.RES} from this units:
VpRegF2.pas
VpRegAd.pas
VpRegIs.pas
Because one from vpreg.pas is enough.
2. Open vpreg.pas and made this changes:
a)
from
{$R vpreg.res} { Palette Glyphs }
to
{$ifndef FPC}
{$R vpreg.res} { Palette Glyphs }
{$endif}
b)
Add to uses:
{$IFDEF LCL}
LResources, ....
c)
at end of file:
{$ifdef FPC}
initialization
{$I vpreg.lrs} // Palette glyphs
{$endif}
end.
3. Make same from 2. to vpregzeos.pas but the resources for vpregzeos.pas named vpregzeos.res/lrs.
You find in zip-file the images and resources. (You don't need images now, maybe in future for changes).