fpmake.pp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses {$ifdef unix}cthreads,{$endif} fpmkunit;
  5. Var
  6. P : TPackage;
  7. T : TTarget;
  8. begin
  9. With Installer do
  10. begin
  11. {$endif ALLPACKAGES}
  12. P:=AddPackage('cairo');
  13. P.ShortName := 'cai';
  14. {$ifdef ALLPACKAGES}
  15. P.Directory:=ADirectory;
  16. {$endif ALLPACKAGES}
  17. P.Version:='3.3.1';
  18. P.Author := 'Library: University of Southern California + Red Hat Inc., header: Luiz AmXrico Pereira CXmara';
  19. P.License := 'Library: MPL 1.1 + LGPL-2.1, header: LGPL with modification, ';
  20. P.HomepageURL := 'www.freepascal.org';
  21. P.OSes := [beos,haiku,freebsd,solaris,netbsd,openbsd,linux,win32,win64,aix,dragonfly,android];
  22. if Defaults.CPU=jvm then
  23. P.OSes := P.OSes - [android];
  24. // Do not build cairo on iPhone (=arm-darwin)
  25. if Defaults.CPU<>arm then
  26. P.OSes := P.OSes + [darwin];
  27. P.Email := '';
  28. P.Description := 'a vector graphics library with display and print output';
  29. P.NeedLibC:= true;
  30. P.SourcePath.Add('src');
  31. P.Dependencies.Add('x11',AllUnixOSes);
  32. P.Dependencies.Add('fcl-image');
  33. T:=P.Targets.AddUnit('cairo.pp');
  34. T:=P.Targets.AddUnit('cairogobject.pp');
  35. T:=P.Targets.AddUnit('cairoft.pp');
  36. with T.Dependencies do
  37. begin
  38. AddUnit('cairo');
  39. end;
  40. T:=P.Targets.AddUnit('cairoxlib.pp',AllUnixOSes);
  41. with T.Dependencies do
  42. begin
  43. AddUnit('cairo');
  44. end;
  45. T:=P.Targets.AddUnit('cairowin32.pp',AllWindowsOses);
  46. with T.Dependencies do
  47. AddUnit('cairo');
  48. P.NamespaceMap:='namespaces.lst';
  49. {$ifndef ALLPACKAGES}
  50. Run;
  51. end;
  52. end.
  53. {$endif ALLPACKAGES}