fpmake.pp 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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('openssl');
  13. P.Dependencies.Add('fcl-net');
  14. P.ShortName:='ossl';
  15. P.Description := 'Interface units for OpenSSL libraries supporting SSL-encrypted network communication.';
  16. {$ifdef ALLPACKAGES}
  17. P.Directory:=ADirectory;
  18. {$endif ALLPACKAGES}
  19. P.Version:='3.3.1';
  20. P.SourcePath.Add('src');
  21. P.OSes := AllUnixOSes+AllWindowsOSes+[OS2,EMX]-[qnx];
  22. if Defaults.CPU=jvm then
  23. P.OSes := P.OSes - [java,android];
  24. P.Dependencies.Add('rtl-extra',[OS2,EMX]);
  25. T:=P.Targets.AddUnit('openssl.pas');
  26. T:=P.Targets.AddUnit('fpopenssl.pp');
  27. T.ResourceStrings:=true;
  28. T:=P.Targets.AddUnit('opensslsockets.pp');
  29. T.ResourceStrings:=true;
  30. T.Dependencies.AddUnit('openssl');
  31. P.ExamplePath.Add('examples');
  32. P.Targets.AddExampleProgram('test1.pas');
  33. {$ifndef ALLPACKAGES}
  34. Run;
  35. end;
  36. end.
  37. {$endif ALLPACKAGES}