fpmake.pp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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('ibase');
  13. {$ifdef ALLPACKAGES}
  14. P.Directory:='ibase';
  15. {$endif ALLPACKAGES}
  16. P.Version:='2.2.2-0';
  17. P.Author := 'Library: (Codegear?), header: ?';
  18. P.License := 'Library: Interbase License, header: LGPL with modification, ';
  19. P.HomepageURL := 'www.freepascal.org';
  20. P.Email := '';
  21. P.Description := 'Headers for the Interbase/Firebird RDBMS';
  22. P.NeedLibC:= true; // true for headers that indirectly link to libc?
  23. P.SourcePath.Add('src');
  24. P.IncludePath.Add('src');
  25. T:=P.Targets.AddUnit('ibase40.pp');
  26. T:=P.Targets.AddUnit('ibase60dyn.pp');
  27. with T.Dependencies do
  28. begin
  29. AddInclude('ibase60.inc');
  30. end;
  31. T.ResourceStrings := True;
  32. T:=P.Targets.AddUnit('ibase60.pp');
  33. with T.Dependencies do
  34. begin
  35. AddInclude('ibase60.inc');
  36. end;
  37. P.ExamplePath.Add('tests');
  38. P.Targets.AddExampleProgram('testib40.pp');
  39. P.Targets.AddExampleProgram('testib60.pp');
  40. {$ifndef ALLPACKAGES}
  41. Run;
  42. end;
  43. end.
  44. {$endif ALLPACKAGES}