fpmake.pp 759 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses fpmkunit;
  5. {$endif ALLPACKAGES}
  6. procedure add_pas2ut(const ADirectory: string);
  7. Var
  8. P : TPackage;
  9. T : TTarget;
  10. begin
  11. With Installer do
  12. begin
  13. P:=AddPackage('utils-pas2ut');
  14. P.ShortName:='p2ut';
  15. P.Author := 'Free Pascal Team';
  16. P.License := 'LGPL with modification';
  17. P.HomepageURL := 'www.freepascal.org';
  18. P.Description := 'Pascal source to FPC Unit test generator program';
  19. P.Email := '';
  20. P.NeedLibC:= false;
  21. P.Directory:=ADirectory;
  22. P.Version:='3.1.1';
  23. P.Dependencies.Add('fcl-passrc');
  24. T:=P.Targets.AddProgram('pas2ut.pp');
  25. end;
  26. end;
  27. {$ifndef ALLPACKAGES}
  28. begin
  29. add_pas2ut('');
  30. Installer.Run;
  31. end.
  32. {$endif ALLPACKAGES}