[Lazarus] Package and project file format

Michael Van Canneyt michael at freepascal.org
Sat Mar 3 11:15:51 CET 2018


The package .lpk andproject .lpi file use the following format :

     <Units Count="241">
         <Filename Value="lazarus.pp"/>
         <IsPartOfProject Value="True"/>
         <UnitName Value="Lazarus"/>
         <Filename Value="frames/oi_options.pas"/>
         <IsPartOfProject Value="True"/>
         <ComponentName Value="OIOptionsFrame"/>
         <HasResources Value="True"/>
         <ResourceBaseClass Value="Frame"/>

And similarly
      <RequiredPackages Count="7">
         <PackageName Value="LazDebuggerGdbmi"/>
         <PackageName Value="LCLBase"/>
         <MinVersion Major="1" Release="1" Valid="True"/>

Is it possible to get rid of the counts ?

Reason: if 2 people add files to a package/project, it always creates
conflicts when updating from the VCS. 
And if you're in bad luck, you need to change a lot of items.

On the other hand, if you do
       <Package name="LazDebuggerGdbmi"/>
       <Package name="LCLBase">
         <MinVersion Major="1" Release="1" Valid="True"/>

The chance of conflicts becomes less, and the resolution easier.


More information about the Lazarus mailing list