|
|
|
@ -6,6 +6,7 @@ package("cairo") |
|
|
|
|
add_urls("https://gitlab.freedesktop.org/cairo/cairo/-/archive/$(version)/cairo-$(version).tar.gz") |
|
|
|
|
add_urls("https://gitlab.freedesktop.org/cairo/cairo.git") |
|
|
|
|
add_versions("1.17.6", "a2227afc15e616657341c42af9830c937c3a6bfa63661074eabef13600e8936f") |
|
|
|
|
add_versions("1.17.8", "b4ed6d33037171d4c6594345b42d81796f335a6995fdf5638db0d306c17a0d3e") |
|
|
|
|
|
|
|
|
|
add_deps("meson", "ninja") |
|
|
|
|
add_deps("libpng", "pixman", "zlib", "freetype", "glib") |
|
|
|
@ -23,7 +24,7 @@ package("cairo") |
|
|
|
|
if is_plat("windows") then |
|
|
|
|
add_syslinks("gdi32", "msimg32", "user32", "ole32") |
|
|
|
|
elseif is_plat("macosx") then |
|
|
|
|
add_frameworks("CoreGraphics", "CoreFoundation", "Foundation") |
|
|
|
|
add_frameworks("CoreGraphics", "CoreFoundation", "CoreText", "Foundation") |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
on_load("windows", function (package) |
|
|
|
@ -32,7 +33,7 @@ package("cairo") |
|
|
|
|
end |
|
|
|
|
end) |
|
|
|
|
|
|
|
|
|
on_install("windows", "macosx", "linux", function (package) |
|
|
|
|
on_install("windows|x64", "windows|x86", "macosx", "linux", function (package) |
|
|
|
|
import("package.tools.meson") |
|
|
|
|
|
|
|
|
|
local configs = { |
|
|
|
|