From 18e1df11539adaf432240a6aac36b300a4faed17 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 14 Mar 2019 00:35:14 +0800 Subject: [PATCH] improve libpng --- packages/l/libpng/xmake.lua | 2 ++ scripts/test.lua | 1 + 2 files changed, 3 insertions(+) diff --git a/packages/l/libpng/xmake.lua b/packages/l/libpng/xmake.lua index 0fe47ba89..39bdb05f7 100644 --- a/packages/l/libpng/xmake.lua +++ b/packages/l/libpng/xmake.lua @@ -13,6 +13,8 @@ package("libpng") add_deps("cmake") end + add_links("png") + on_install("windows", function (package) import("package.tools.cmake").install(package) end) diff --git a/scripts/test.lua b/scripts/test.lua index 5690e25b1..54ed175f2 100644 --- a/scripts/test.lua +++ b/scripts/test.lua @@ -21,6 +21,7 @@ function main(...) os.cd(workdir) os.exec("xmake create test") os.cd("test") + print(os.curdir()) os.exec("xmake repo --add local-repo %s", repodir) os.exec("xmake repo -l") os.exec("xmake require -f -v -D -y %s", table.concat(packages, " "))