fpmake.pp 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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('httpd13');
  13. P.ShortName:='hd13';
  14. {$ifdef ALLPACKAGES}
  15. P.Directory:=ADirectory;
  16. {$endif ALLPACKAGES}
  17. P.Version:='3.3.1';
  18. P.Author := 'Library: Apache Foundation, header: Felipe Monteiro de Carvalho';
  19. P.License := 'Library: Apache License 2, header: LGPL with modification, ';
  20. P.HomepageURL := 'www.freepascal.org';
  21. P.Email := '';
  22. P.Description := 'Headers for the Apache 1.3 www server';
  23. P.NeedLibC:= true; // true for headers that indirectly link to libc?
  24. {$ifdef ALLPACKAGES}
  25. P.OSes := []; // By default, do not build this package
  26. {$else ALLPACKAGES}
  27. P.OSes := AllUnixOSes+AllWindowsOSes-[qnx];
  28. {$endif ALLPACKAGES}
  29. P.SourcePath.Add('src');
  30. P.IncludePath.Add('src');
  31. // P.Dependencies.Add('x11');
  32. T:=P.Targets.AddUnit('httpd.pas');
  33. with T.Dependencies do
  34. begin
  35. AddInclude('httpd.inc');
  36. AddInclude('ap_config.inc');
  37. AddInclude('ap_mmn.inc');
  38. AddInclude('hsregex.inc');
  39. AddInclude('ap_alloc.inc');
  40. AddInclude('readdir.inc');
  41. AddInclude('buff.inc');
  42. AddInclude('ap.inc');
  43. AddInclude('util_uri.inc');
  44. AddInclude('http_config.inc');
  45. AddInclude('http_core.inc');
  46. AddInclude('http_log.inc');
  47. AddInclude('http_main.inc');
  48. AddInclude('http_protocol.inc');
  49. AddInclude('http_request.inc');
  50. AddInclude('http_vhost.inc');
  51. end;
  52. {$ifndef ALLPACKAGES}
  53. Run;
  54. end;
  55. end.
  56. {$endif ALLPACKAGES}