From 890cdd169323832300ae85d08b8464f2c8c14377 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 11 Apr 2019 22:33:34 +0800 Subject: [PATCH] improve cairo --- packages/c/cairo/xmake.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/c/cairo/xmake.lua b/packages/c/cairo/xmake.lua index 51330dc12..bc30684bc 100644 --- a/packages/c/cairo/xmake.lua +++ b/packages/c/cairo/xmake.lua @@ -10,9 +10,13 @@ package("cairo") add_deps("pkg-config", "fontconfig", "freetype", "libpng", "pixman") end + if is_plat("macosx") then + add_frameworks("CoreGraphics", "CoreFoundation", "Foundation") + end + on_install("macosx", "linux", function (package) 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-tee=yes") table.insert(configs, "--enable-quartz-image=" .. (is_plat("macosx") and "yes" or "no")) @@ -22,5 +26,5 @@ package("cairo") end) on_test(function (package) - assert(package:has_cfuncs("cairo_create", {includes = "cairo.h"})) + assert(package:has_cfuncs("cairo_create", {includes = "cairo/cairo.h"})) end)