fpmake.pp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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:=ADirectory;
  15. {$endif ALLPACKAGES}
  16. P.Version:='2.7.1';
  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.OSes := AllUnixOSes+AllWindowsOSes-[qnx];
  24. P.SourcePath.Add('src');
  25. P.IncludePath.Add('src');
  26. T:=P.Targets.AddUnit('ibase40.pp');
  27. T:=P.Targets.AddUnit('ibase60dyn.pp');
  28. with T.Dependencies do
  29. begin
  30. AddInclude('ibase60.inc');
  31. end;
  32. T.ResourceStrings := True;
  33. T:=P.Targets.AddUnit('ibase60.pp');
  34. with T.Dependencies do
  35. begin
  36. AddInclude('ibase60.inc');
  37. end;
  38. P.ExamplePath.Add('examples');
  39. P.Targets.AddExampleProgram('testib40.pp');
  40. P.Targets.AddExampleProgram('testib60.pp');
  41. P.Sources.AddExampleFiles('examples/*',false,'.');
  42. {$ifndef ALLPACKAGES}
  43. Run;
  44. end;
  45. end.
  46. {$endif ALLPACKAGES}