From c5a049cdcc95cdcdc001374751c9c5797ef899b9 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 11 Apr 2019 00:00:04 +0800 Subject: [PATCH] improve libuv --- packages/c/cairo/xmake.lua | 6 +++--- packages/l/libuv/xmake.lua | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/c/cairo/xmake.lua b/packages/c/cairo/xmake.lua index 6a4b86d86..cc0c4a6fa 100644 --- a/packages/c/cairo/xmake.lua +++ b/packages/c/cairo/xmake.lua @@ -15,9 +15,9 @@ package("cairo") -- table.insert(configs, "--enable-gobject=yes") table.insert(configs, "--enable-svg=yes") table.insert(configs, "--enable-tee=yes") - table.insert(configs, "--enable-quartz-image") - table.insert(configs, "--enable-xlib=no") - table.insert(configs, "--enable-xlib-xrender=no") + table.insert(configs, "--enable-quartz-image=" .. (is_plat("macosx") and "yes" or "no")) + table.insert(configs, "--enable-xlib=" .. (is_plat("macosx") and "no" or "yes")) + table.insert(configs, "--enable-xlib-xrender=" .. (is_plat("macosx") and "no" or "yes")) import("package.tools.autoconf").install(package, configs) end) diff --git a/packages/l/libuv/xmake.lua b/packages/l/libuv/xmake.lua index 591e6ee3e..96c5c2433 100644 --- a/packages/l/libuv/xmake.lua +++ b/packages/l/libuv/xmake.lua @@ -31,3 +31,7 @@ package("libuv") on_install("macosx", "linux", function (package) import("package.tools.autoconf").install(package) end) + + on_test(function (package) + assert(package:has_cfuncs("uv_tcp_init", {includes = "uv.h"})) + end)