fpmake.pp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses fpmkunit;
  5. Var
  6. P : TPackage;
  7. T : TTarget;
  8. begin
  9. With Installer do
  10. begin
  11. {$endif ALLPACKAGES}
  12. P:=AddPackage('users');
  13. {$ifdef ALLPACKAGES}
  14. P.Directory:='users';
  15. {$endif ALLPACKAGES}
  16. P.Version:='2.2.2-0';
  17. P.Author := 'Michael van Canneyt, Marco van de Voort';
  18. P.License := 'LGPL with modification, ';
  19. P.HomepageURL := 'www.freepascal.org';
  20. P.Email := '';
  21. P.Description := 'Headers to access Unix groups and users.';
  22. P.NeedLibC:= false;
  23. P.SourcePath.Add('src');
  24. T:=P.Targets.AddUnit('crypth.pp',[linux]);
  25. T:=P.Targets.AddUnit('grp.pp');
  26. T:=P.Targets.AddUnit('pwd.pp');
  27. T:=P.Targets.AddUnit('shadow.pp',[linux]);
  28. T:=P.Targets.AddUnit('users.pp');
  29. with T.Dependencies do
  30. begin
  31. AddUnit('pwd');
  32. AddUnit('shadow',[linux]);
  33. AddUnit('grp');
  34. end;
  35. T.ResourceStrings := true;
  36. P.ExamplePath.Add('examples');
  37. P.Targets.AddExampleProgram('testpass.pp');
  38. P.Targets.AddExampleProgram('testpass2.pp');
  39. P.Targets.AddExampleProgram('testuser.pp');
  40. {$ifndef ALLPACKAGES}
  41. Run;
  42. end;
  43. end.
  44. {$endif ALLPACKAGES}