fpmake.pp 1.3 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('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.ResourceStrings := True;
  36. T:=P.Targets.AddUnit('postgres3.pp');
  37. with T.Dependencies do
  38. begin
  39. AddInclude('postgres3types.inc');
  40. AddUnit('dllist');
  41. end;
  42. T:=P.Targets.AddUnit('postgres.pp');
  43. with T.Dependencies do
  44. begin
  45. AddUnit('dllist');
  46. end;
  47. P.Sources.AddSrc('README.txt');
  48. P.ExamplePath.Add('tests/');
  49. P.Targets.AddExampleProgram('testpg2.pp');
  50. P.Targets.AddExampleProgram('testpg1.pp');
  51. {$ifndef ALLPACKAGES}
  52. Run;
  53. end;
  54. end.
  55. {$endif ALLPACKAGES}