[Lazarus] Package filenames with _package

Martin Frb lazarus at mfriebe.de
Sun Jan 7 14:55:00 CET 2018

On 07/01/18 14:35, Ondrej Pokorny via Lazarus wrote:
> On 07.01.2018 20:29, Vojtěch Čihák via Lazarus wrote:
>> Hi,
>> click Package->New Package...
>> it immediately opens Save dialog, where you choose filname. It saves 
>> xyz.lpk
>> Then click Compile and xyz.pas is autogenerated.
> :D
> The question was: it saves xyz.lpk, where can I define that abc.pas is 
> autogenerated/used for xyz.lpk instead of xyz.pas?

I think, add a unit, select it in the list, right click it, and in "file 
type" make it the "main unit"

Maybe there is an easier way

SynEditDsgn has this

the auto generated unit is allsyneditdsgn.pas

and the unit with registration is "syneditlazdsgn.pas" (see checkbox at 
the bottom of package dialog.
So this as afaik why the unit will be called from the autogenerated unit.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20180107/03ac9815/attachment.html>

More information about the Lazarus mailing list