pull/1822/head
ruki 2 years ago committed by GitHub
parent ffab59d9c4
commit 92ec2cea7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 24
      packages/o/orangeduck_mpc/xmake.lua

@ -0,0 +1,24 @@
package("orangeduck_mpc")
set_homepage("https://github.com/orangeduck/mpc")
set_description("A Parser Combinator library for C")
add_urls("https://github.com/orangeduck/mpc/archive/refs/tags/$(version).tar.gz",
"https://github.com/orangeduck/mpc.git")
add_versions("0.9.0", "da6e798accec57d7b0512ecc38adc151961adefde09811c1c25ee993a653e47c")
on_install(function (package)
io.writefile("xmake.lua", [[
add_rules("mode.debug", "mode.release")
target("mpc")
set_kind("static")
add_files("mpc.c")
add_headerfiles("mpc.h")
]])
local configs = {}
import("package.tools.xmake").install(package, configs)
end)
on_test(function (package)
assert(package:has_cfuncs("mpc_new", {includes = "mpc.h"}))
end)
Loading…
Cancel
Save