fpmake.pp 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses fpmkunit;
  5. Var
  6. T : TTarget;
  7. P : TPackage;
  8. begin
  9. With Installer do
  10. begin
  11. {$endif ALLPACKAGES}
  12. P:=AddPackage('fcl-net');
  13. P.ShortName:='fcln';
  14. {$ifdef ALLPACKAGES}
  15. P.Directory:=ADirectory;
  16. {$endif ALLPACKAGES}
  17. P.Version:='3.1.1';
  18. P.Dependencies.Add('fcl-base');
  19. P.Dependencies.Add('openssl',AllOSes - AllAmigaLikeOSes);
  20. P.Dependencies.Add('fcl-xml');
  21. P.Dependencies.Add('fcl-passrc');
  22. P.Dependencies.Add('fcl-async',[linux,freebsd,netbsd,openbsd,dragonfly]);
  23. P.Dependencies.Add('rtl-extra');
  24. P.Author := 'Sebastian Guenther and Free Pascal development team';
  25. P.License := 'LGPL with modification, ';
  26. P.HomepageURL := 'www.freepascal.org';
  27. P.Email := '';
  28. P.Description := 'Network related parts of Free Component Libraries (FCL), FPC''s OOP library.';
  29. P.NeedLibC:= false;
  30. P.OSes:=P.OSes-[embedded,msdos];
  31. P.SourcePath.Add('src');
  32. P.IncludePath.Add('src/unix',AllUnixOSes);
  33. P.IncludePath.Add('src/win',AllWindowsOSes);
  34. P.IncludePath.Add('src/os2',[EMX]);
  35. P.IncludePath.Add('src/amiga',[morphos]);
  36. P.IncludePath.Add('src/$(OS)',AllOSes-AllWindowsOSes-AllUnixOSes-[EMX]);
  37. // IP and Sockets
  38. T:=P.Targets.AddUnit('netdb.pp',AllUnixOSes);
  39. T:=P.Targets.AddUnit('resolve.pp',AllUnixOSes+AllWindowsOSes+AllAmigaLikeOSes+[OS2,EMX]);
  40. with T.Dependencies do
  41. begin
  42. AddInclude('resolve.inc');
  43. AddUnit('netdb',AllUnixOSes);
  44. end;
  45. T.ResourceStrings := True;
  46. T:=P.Targets.AddUnit('ssockets.pp',AllUnixOSes+AllWindowsOSes+AllAmigaLikeOSes+[OS2,EMX]);
  47. with T.Dependencies do
  48. begin
  49. AddUnit('resolve');
  50. end;
  51. T.ResourceStrings := True;
  52. T:=P.Targets.AddUnit('sslsockets.pp',AllUnixOSes+AllWindowsOSes);
  53. with T.Dependencies do
  54. begin
  55. AddUnit('ssockets');
  56. end;
  57. T.ResourceStrings := True;
  58. // HTTP Client
  59. T:=P.Targets.AddUnit('fpsock.pp',[linux,freebsd,netbsd,openbsd,dragonfly]);
  60. with T.Dependencies do
  61. begin
  62. AddUnit('resolve');
  63. end;
  64. T.ResourceStrings := True;
  65. T:=P.Targets.AddUnit('cnetdb.pp',[linux,freebsd]);
  66. P.ExamplePath.Add('examples');
  67. P.Targets.AddExampleProgram('examples/ip6test.pp');
  68. P.Targets.AddExampleProgram('examples/svrclass.pp');
  69. P.Targets.AddExampleProgram('examples/testdns.pp');
  70. P.Targets.AddExampleProgram('examples/testnet.pp');
  71. P.Targets.AddExampleProgram('examples/testhosts.pp');
  72. P.Targets.AddExampleProgram('examples/testsvc.pp');
  73. P.Targets.AddExampleProgram('examples/testhst.pp');
  74. P.Targets.AddExampleProgram('examples/testuri.pp');
  75. P.Targets.AddExampleProgram('examples/testproto.pp');
  76. {$ifndef ALLPACKAGES}
  77. Run;
  78. end;
  79. end.
  80. {$endif ALLPACKAGES}