fpmake.pp 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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];
  22. // Do not build cairo on iPhone (=arm-darwin)
  23. if Defaults.CPU<>arm then
  24. P.OSes := P.OSes + [darwin];
  25. P.Email := '';
  26. P.Description := 'a vector graphics library with display and print output';
  27. P.NeedLibC:= true;
  28. P.SourcePath.Add('src');
  29. P.Dependencies.Add('x11',AllUnixOSes);
  30. P.Dependencies.Add('fcl-image');
  31. T:=P.Targets.AddUnit('cairo.pp');
  32. T:=P.Targets.AddUnit('cairogobject.pp');
  33. T:=P.Targets.AddUnit('cairoft.pp');
  34. with T.Dependencies do
  35. begin
  36. AddUnit('cairo');
  37. end;
  38. T:=P.Targets.AddUnit('cairoxlib.pp',AllUnixOSes);
  39. with T.Dependencies do
  40. begin
  41. AddUnit('cairo');
  42. end;
  43. T:=P.Targets.AddUnit('cairowin32.pp',AllWindowsOses);
  44. with T.Dependencies do
  45. AddUnit('cairo');
  46. P.NamespaceMap:='namespaces.lst';
  47. {$ifndef ALLPACKAGES}
  48. Run;
  49. end;
  50. end.
  51. {$endif ALLPACKAGES}