mini: add package (#4351)
parent
d162bf5910
commit
3e4c192cad
1 changed files with 22 additions and 0 deletions
@ -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…
Reference in new issue