2
0

fpmake.pp 1.5 KB

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