In the Delphi project converter, is there a way to specify extra Lazarus packages to be included when converting.
For example I have a Delphi project that uses Indy, and have Indy installed in Lazarus, but as it stands the project converter does not know this so can't find any of the Indy units during conversion.
I then, once I have added IndyLaz to the project have to go through the units using Indy and uncomment the commented out units so it can find them.
Would be much easier if I could specify this from the get go.
Good point. The converter tries to find a missing unit but apparently it does not search installed packages nor offer to install (online) packages. It should.
The same dialog that is used in Project Inspector -> Required Packages -> Add... should be used to select a package.
If you want to study the code, look at
function TDelphiUnit.AskUnitPathFromUser: TModalResult;
in unit ConvertDelphi among other code.
I would love to see contributions for the converter as well. I have maintained it but recently my time was spent to other priorities.
[Edit] No, the converter searches from all packages. See
function TConvertDelphiProjPack.CheckPackageDep(AUnitName: string): Boolean;
It has
Pack:=PackageGraph.FindUnitInAllPackages(AUnitName, True);
A found package is then added to project dependencies. Why does it not work with Indy? I don't know. It requires debugging.
Can you please provide a test project to convert, I could look at it next weekend.
You can also debug the converter yourself.