fpmake.pp 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. {$ifdef ALLPACKAGES}
  14. P.Directory:='fcl-net';
  15. {$endif ALLPACKAGES}
  16. P.Version:='2.2.2-0';
  17. P.Dependencies.Add('fcl-base');
  18. P.Dependencies.Add('fcl-xml');
  19. P.Dependencies.Add('fcl-passrc');
  20. P.Author := 'Sebastian Guenther and Free Pascal development team';
  21. P.License := 'LGPL with modification, ';
  22. P.HomepageURL := 'www.freepascal.org';
  23. P.Email := '';
  24. P.Description := 'Network related parts of Free Component Libraries (FCL), FPC''s OOP library.';
  25. P.NeedLibC:= false;
  26. P.SourcePath.Add('src');
  27. P.IncludePath.Add('src/unix',AllUnixOSes);
  28. P.IncludePath.Add('src/win',AllWindowsOSes);
  29. P.IncludePath.Add('src/os2',[EMX]);
  30. P.IncludePath.Add('src/$(OS)',AllOSes-AllWindowsOSes-AllUnixOSes-[EMX]);
  31. // IP and Sockets
  32. T:=P.Targets.AddUnit('netdb.pp',AllUnixOSes);
  33. T:=P.Targets.AddUnit('resolve.pp',AllUnixOSes+AllWindowsOSes+[OS2,EMX]);
  34. with T.Dependencies do
  35. begin
  36. AddInclude('resolve.inc');
  37. AddUnit('netdb');
  38. end;
  39. T:=P.Targets.AddUnit('ssockets.pp',AllUnixOSes+AllWindowsOSes+[OS2,EMX]);
  40. with T.Dependencies do
  41. begin
  42. AddUnit('resolve');
  43. end;
  44. // HTTP Client
  45. T:=P.Targets.AddUnit('fpsock.pp',AllUnixOSes);
  46. with T.Dependencies do
  47. begin
  48. AddUnit('resolve');
  49. end;
  50. P.ExamplePath.Add('examples');
  51. P.Targets.AddExampleProgram('examples/ip6test.pp');
  52. P.Targets.AddExampleProgram('examples/svrclass.pp');
  53. P.Targets.AddExampleProgram('examples/testdns.pp');
  54. P.Targets.AddExampleProgram('examples/testnet.pp');
  55. P.Targets.AddExampleProgram('examples/testhosts.pp');
  56. P.Targets.AddExampleProgram('examples/testsvc.pp');
  57. P.Targets.AddExampleProgram('examples/testhst.pp');
  58. P.Targets.AddExampleProgram('examples/testuri.pp');
  59. P.Targets.AddExampleProgram('examples/testproto.pp');
  60. {$ifndef ALLPACKAGES}
  61. Run;
  62. end;
  63. end.
  64. {$endif ALLPACKAGES}