fpmake.pp 1.4 KB

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