iniparser: add package (#2753)

pull/2756/head
star9029 1 year ago committed by GitHub
parent c74b83dbe0
commit 7c49a460ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 25
      packages/i/iniparser/xmake.lua

@ -0,0 +1,25 @@
package("iniparser")
set_homepage("http://ndevilla.free.fr/iniparser")
set_description("ini file parser")
set_license("MIT")
add_urls("https://github.com/ndevilla/iniparser.git")
add_versions("2023.09.15", "5142f0feab8ab456cb6af607eba0516ae46e1eb2")
on_install("linux", "macosx", "bsd", "mingw", "msys", "android", "iphoneos", "cross", "wasm", function (package)
io.writefile("xmake.lua", [[
add_rules("mode.release", "mode.debug")
target("iniparser")
set_kind("$(kind)")
add_files("src/*.c")
add_headerfiles("src/*.h", {prefixdir = "iniparser"})
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("iniparser_dump_ini", {includes = "iniparser/iniparser.h"}))
end)
Loading…
Cancel
Save