From f3c03c4c51a6086eb34b38f66ad2d5bbfcba0eac Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 22 Dec 2021 23:26:31 +0800 Subject: [PATCH] add qoi (#782) --- packages/q/qoi/xmake.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 packages/q/qoi/xmake.lua diff --git a/packages/q/qoi/xmake.lua b/packages/q/qoi/xmake.lua new file mode 100644 index 000000000..bb7f6e3a0 --- /dev/null +++ b/packages/q/qoi/xmake.lua @@ -0,0 +1,16 @@ +package("qoi") + + set_kind("library", {headeronly = true}) + set_homepage("https://github.com/phoboslab/qoi") + set_description("The Quite OK Image Format for fast, lossless image compression") + + add_urls("https://github.com/phoboslab/qoi.git") + add_versions("2021.12.22", "44fe081388c60e7618f49486865b992e08ce4de4") + + on_install(function (package) + os.cp("qoi.h", package:installdir("include")) + end) + + on_test(function (package) + assert(package:has_cfuncs("qoi_encode", {includes = "qoi.h"})) + end)