improve cairo

pull/13/head
ruki 6 years ago
parent f11446d4b0
commit 890cdd1693
No known key found for this signature in database
GPG Key ID: 33341DF9719963FA
  1. 8
      packages/c/cairo/xmake.lua

@ -10,9 +10,13 @@ package("cairo")
add_deps("pkg-config", "fontconfig", "freetype", "libpng", "pixman") add_deps("pkg-config", "fontconfig", "freetype", "libpng", "pixman")
end end
if is_plat("macosx") then
add_frameworks("CoreGraphics", "CoreFoundation", "Foundation")
end
on_install("macosx", "linux", function (package) on_install("macosx", "linux", function (package)
local configs = {"--disable-dependency-tracking", "--enable-shared=no"} local configs = {"--disable-dependency-tracking", "--enable-shared=no"}
-- table.insert(configs, "--enable-gobject=yes") table.insert(configs, "--enable-gobject=no")
table.insert(configs, "--enable-svg=yes") table.insert(configs, "--enable-svg=yes")
table.insert(configs, "--enable-tee=yes") table.insert(configs, "--enable-tee=yes")
table.insert(configs, "--enable-quartz-image=" .. (is_plat("macosx") and "yes" or "no")) table.insert(configs, "--enable-quartz-image=" .. (is_plat("macosx") and "yes" or "no"))
@ -22,5 +26,5 @@ package("cairo")
end) end)
on_test(function (package) on_test(function (package)
assert(package:has_cfuncs("cairo_create", {includes = "cairo.h"})) assert(package:has_cfuncs("cairo_create", {includes = "cairo/cairo.h"}))
end) end)

Loading…
Cancel
Save