* add utf8.h

* add utf8
pull/1818/head
ruki 2 years ago committed by GitHub
parent 7f48b413f4
commit 0cabb09786
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      packages/b/branchless-utf8/xmake.lua

@ -0,0 +1,15 @@
package("branchless-utf8")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/skeeto/branchless-utf8")
set_description("Branchless UTF-8 decoder")
add_urls("https://github.com/skeeto/branchless-utf8.git")
add_versions("2022.08.30", "e4d82fd5ddae98658f8c129006e3bc5acd0ae9f1")
on_install(function (package)
os.cp("*.h", package:installdir("include"))
end)
on_test(function (package)
assert(package:has_cfuncs("utf8_decode", {includes = "utf8.h"}))
end)
Loading…
Cancel
Save