mini: add package (#4351)

pull/4353/head
star9029 7 months ago committed by GitHub
parent d162bf5910
commit 3e4c192cad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 22
      packages/m/mini/xmake.lua

@ -0,0 +1,22 @@
package("mini")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/metayeti/mINI")
set_description("INI file reader and writer")
set_license("MIT")
add_urls("https://github.com/metayeti/mINI/archive/refs/tags/$(version).tar.gz",
"https://github.com/metayeti/mINI.git")
add_versions("0.9.15", "241e105ab074827ab8b40582aa7b04c6191f84b244603969965c0874ad4f942c")
on_install(function (package)
os.cp("src/mini", package:installdir("include"))
end)
on_test(function (package)
assert(package:check_cxxsnippets({test = [[
void test() {
mINI::INIFile file("myfile.ini");
}
]]}, {configs = {languages = "c++17"}, includes = "mini/ini.h"}))
end)
Loading…
Cancel
Save