package An official xmake package repository https://xrepo.xmake.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

27 lines
969 B

package("quirc")
set_homepage("https://github.com/dlbeer/quirc")
set_description("QR decoder library")
set_license("ISC")
add_urls("https://github.com/dlbeer/quirc/archive/refs/tags/$(version).tar.gz",
"https://github.com/dlbeer/quirc.git")
add_versions("v1.2", "73c12ea33d337ec38fb81218c7674f57dba7ec0570bddd5c7f7a977c0deb64c5")
on_install(function (package)
io.writefile("xmake.lua", [[
add_rules("mode.release", "mode.debug")
target("quirc")
set_kind("$(kind)")
add_files("lib/*.c")
add_headerfiles("lib/quirc.h")
if is_plat("windows") and is_kind("shared") then
add_rules("utils.symbols.export_all")
end
]])
import("package.tools.xmake").install(package)
end)
on_test(function (package)
assert(package:has_cfuncs("quirc_new", {includes = "quirc.h"}))
end)