fpmake.pp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. P.ShortName:='ibas';
  14. {$ifdef ALLPACKAGES}
  15. P.Directory:=ADirectory;
  16. {$endif ALLPACKAGES}
  17. P.Version:='3.3.1';
  18. P.Author := 'Library: (Codegear?), header: ?';
  19. P.License := 'Library: Interbase License, header: LGPL with modification, ';
  20. P.HomepageURL := 'www.freepascal.org';
  21. P.Email := '';
  22. P.Description := 'Headers for the Interbase/Firebird RDBMS';
  23. P.NeedLibC:= true; // true for headers that indirectly link to libc?
  24. P.OSes := AllUnixOSes+AllWindowsOSes-[qnx];
  25. if Defaults.CPU=jvm then
  26. P.OSes := P.OSes - [java,android];
  27. P.SourcePath.Add('src');
  28. P.IncludePath.Add('src');
  29. T:=P.Targets.AddUnit('ibase40.pp');
  30. T:=P.Targets.AddUnit('ibase60dyn.pp');
  31. with T.Dependencies do
  32. begin
  33. AddInclude('ibase60.inc');
  34. end;
  35. T.ResourceStrings := True;
  36. T:=P.Targets.AddUnit('ibase60.pp');
  37. with T.Dependencies do
  38. begin
  39. AddInclude('ibase60.inc');
  40. end;
  41. P.ExamplePath.Add('examples');
  42. P.Targets.AddExampleProgram('testib40.pp');
  43. P.Targets.AddExampleProgram('testib60.pp');
  44. P.Sources.AddExampleFiles('examples/*',P.Directory,false,'.');
  45. {$ifndef ALLPACKAGES}
  46. Run;
  47. end;
  48. end.
  49. {$endif ALLPACKAGES}