fpmake.pp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses {$ifdef unix}cthreads,{$endif} 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. P.ShortName := 'user';
  14. {$ifdef ALLPACKAGES}
  15. P.Directory:=ADirectory;
  16. {$endif ALLPACKAGES}
  17. P.Version:='3.3.1';
  18. P.Author := 'Michael van Canneyt, Marco van de Voort';
  19. P.License := 'LGPL with modification, ';
  20. P.HomepageURL := 'www.freepascal.org';
  21. P.OSes := [freebsd,linux];
  22. P.Email := '';
  23. P.Description := 'Headers to access Unix groups and users.';
  24. P.NeedLibC:= false;
  25. P.SourcePath.Add('src');
  26. T:=P.Targets.AddUnit('crypth.pp',[linux]);
  27. T:=P.Targets.AddUnit('grp.pp');
  28. T:=P.Targets.AddUnit('pwd.pp');
  29. T:=P.Targets.AddUnit('shadow.pp',[linux]);
  30. T:=P.Targets.AddUnit('users.pp');
  31. with T.Dependencies do
  32. begin
  33. AddUnit('pwd');
  34. AddUnit('shadow',[linux]);
  35. AddUnit('grp');
  36. end;
  37. T.ResourceStrings := true;
  38. P.ExamplePath.Add('examples');
  39. P.Targets.AddExampleProgram('testpass.pp');
  40. P.Targets.AddExampleProgram('testpass2.pp');
  41. P.Targets.AddExampleProgram('testuser.pp');
  42. P.NamespaceMap:='namespaces.lst';
  43. {$ifndef ALLPACKAGES}
  44. Run;
  45. end;
  46. end.
  47. {$endif ALLPACKAGES}