[fpc-devel] Added new target to fpmake

Darius Blaszyk dhkblaszyk at zeelandnet.nl
Sat Nov 27 22:10:33 CET 2010


> Well, fpmake contains the dependencies of the units. 
> Therefor you should be able to place the units in the correct order.
> So my idea would be to enforce the order by looking at the dependencies.
> 
> All that is needed is to list the units that should be documented;
> The engine can then look in the list of dependencies, and if there 
> are dependencies found, they can be added first.

I suppose it should look like this then:

T := P.Targets.AddFPDoc('input.pas', 'descr.xml');
T.Dependencies.Add('myunit1.pas');
T.Dependencies.Add('myunit2.pas');

Will generate the following command;

fpdoc --input=myunit1.pas --input=myunit2.pas --input=input.pas
--descr=descr.xml

Did I understand it correctly?

Regards, Darius




More information about the fpc-devel mailing list