fpmake.pp 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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('hash');
  13. {$ifdef ALLPACKAGES}
  14. P.Directory:=ADirectory;
  15. {$endif ALLPACKAGES}
  16. P.Author := 'Free Pascal development team, Mark Adler, Jacques Nomssi Nzali, Silvio Clecio';
  17. P.License := 'LGPL with modification, ';
  18. P.HomepageURL := 'www.freepascal.org';
  19. P.Email := '';
  20. P.Description := 'Several hash and cryptography algorithms (MD5,CRC,Linux crypt and NTLM1).';
  21. P.NeedLibC:= false;
  22. P.OSes:=P.OSes-[embedded,win16,macosclassic,palmos,zxspectrum,msxdos,amstradcpc,sinclairql];
  23. if Defaults.CPU=jvm then
  24. P.OSes := P.OSes - [java,android];
  25. P.Dependencies.Add('rtl-objpas');
  26. P.Dependencies.Add('rtl-extra');
  27. P.Version:='3.3.1';
  28. T:=P.Targets.AddUnit('src/md5.pp');
  29. T.Dependencies.AddInclude('src/md5i386.inc', [i386], AllOSes-[darwin]);
  30. T:=P.Targets.AddUnit('src/sha1.pp');
  31. T.Dependencies.AddInclude('src/sha1i386.inc', [i386], AllOSes-[darwin]);
  32. T:=P.Targets.AddUnit('src/crc.pas');
  33. T:=P.Targets.AddUnit('src/ntlm.pas');
  34. T:=P.Targets.AddUnit('src/uuid.pas');
  35. T:=P.Targets.AddUnit('src/hmac.pp');
  36. T:=P.Targets.AddUnit('src/unixcrypt.pas');
  37. T.OSes:=[Linux];
  38. T:=P.Targets.AddExampleunit('examples/mdtest.pas');
  39. T:=P.Targets.AddExampleunit('examples/crctest.pas');
  40. T:=P.Targets.AddExampleunit('examples/sha1test.pp');
  41. T:=P.Targets.AddExampleunit('examples/hmd5.pp');
  42. T:=P.Targets.AddExampleunit('examples/hsha1.pp');
  43. T:=P.Targets.AddExampleunit('examples/md5performancetest.pas');
  44. T:=P.Targets.AddExampleunit('examples/sha1performancetest.pas');
  45. // md5.ref
  46. P.NamespaceMap:='namespaces.lst';
  47. {$ifndef ALLPACKAGES}
  48. Run;
  49. end;
  50. end.
  51. {$endif ALLPACKAGES}