fpmake.pp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. {$ifdef ALLPACKAGES}
  14. P.Directory:='postgres';
  15. {$endif ALLPACKAGES}
  16. P.Version:='2.2.2-0';
  17. P.SourcePath.Add('src');
  18. P.IncludePath.Add('src');
  19. T:=P.Targets.AddUnit('dllistdyn.pp');
  20. with T.Dependencies do
  21. begin
  22. AddInclude('dllisttypes.inc');
  23. end;
  24. T:=P.Targets.AddUnit('dllist.pp');
  25. with T.Dependencies do
  26. begin
  27. AddInclude('dllisttypes.inc');
  28. end;
  29. T:=P.Targets.AddUnit('postgres3dyn.pp');
  30. with T.Dependencies do
  31. begin
  32. AddInclude('postgres3types.inc');
  33. AddUnit('dllistdyn');
  34. end;
  35. T:=P.Targets.AddUnit('postgres3.pp');
  36. with T.Dependencies do
  37. begin
  38. AddInclude('postgres3types.inc');
  39. AddUnit('dllist');
  40. end;
  41. T:=P.Targets.AddUnit('postgres.pp');
  42. with T.Dependencies do
  43. begin
  44. AddUnit('dllist');
  45. end;
  46. P.Sources.AddSrc('README');
  47. P.ExamplePath.Add('tests/');
  48. P.Targets.AddExampleProgram('testpg2.pp');
  49. P.Targets.AddExampleProgram('testpg1.pp');
  50. {$ifndef ALLPACKAGES}
  51. Run;
  52. end;
  53. end.
  54. {$endif ALLPACKAGES}