fpmake.pp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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('postgres');
  13. P.ShortName:='pgr';
  14. {$ifdef ALLPACKAGES}
  15. P.Directory:=ADirectory;
  16. {$endif ALLPACKAGES}
  17. P.Version:='3.1.1';
  18. P.SourcePath.Add('src');
  19. P.OSes := AllUnixOSes-[qnx]+AllWindowsOSes;
  20. P.IncludePath.Add('src');
  21. T:=P.Targets.AddUnit('dllistdyn.pp');
  22. with T.Dependencies do
  23. begin
  24. AddInclude('dllisttypes.inc');
  25. end;
  26. T:=P.Targets.AddUnit('dllist.pp');
  27. with T.Dependencies do
  28. begin
  29. AddInclude('dllisttypes.inc');
  30. end;
  31. T:=P.Targets.AddUnit('postgres3dyn.pp');
  32. with T.Dependencies do
  33. begin
  34. AddInclude('postgres3types.inc');
  35. AddUnit('dllistdyn');
  36. end;
  37. T.ResourceStrings := True;
  38. T:=P.Targets.AddUnit('postgres3.pp');
  39. with T.Dependencies do
  40. begin
  41. AddInclude('postgres3types.inc');
  42. AddUnit('dllist');
  43. end;
  44. T:=P.Targets.AddUnit('postgres.pp');
  45. with T.Dependencies do
  46. begin
  47. AddUnit('dllist');
  48. end;
  49. P.Sources.AddSrc('README.txt');
  50. P.ExamplePath.Add('examples');
  51. P.Targets.AddExampleProgram('testpg2.pp');
  52. P.Targets.AddExampleProgram('testpg1.pp');
  53. P.Sources.AddExampleFiles('examples/*',false,'.');
  54. {$ifndef ALLPACKAGES}
  55. Run;
  56. end;
  57. end.
  58. {$endif ALLPACKAGES}