[Lazarus] Package and project file format
Michael Van Canneyt
michael at freepascal.org
Sat Mar 3 11:15:51 CET 2018
Hello,
The package .lpk andproject .lpi file use the following format :
<Units Count="241">
<Unit0>
<Filename Value="lazarus.pp"/>
<IsPartOfProject Value="True"/>
<UnitName Value="Lazarus"/>
</Unit0>
<Unit1>
<Filename Value="frames/oi_options.pas"/>
<IsPartOfProject Value="True"/>
<ComponentName Value="OIOptionsFrame"/>
<HasResources Value="True"/>
<ResourceBaseClass Value="Frame"/>
</Unit1>
And similarly
<RequiredPackages Count="7">
<Item1>
<PackageName Value="LazDebuggerGdbmi"/>
</Item1>
<Item2>
<PackageName Value="LCLBase"/>
<MinVersion Major="1" Release="1" Valid="True"/>
</Item2>
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
<RequiredPackages>
<Package name="LazDebuggerGdbmi"/>
<Package name="LCLBase">
<MinVersion Major="1" Release="1" Valid="True"/>
</Package>
The chance of conflicts becomes less, and the resolution easier.
Michael.
More information about the Lazarus
mailing list