From 788f38f50a781a6e1035d73b31d4781179c3edf9 Mon Sep 17 00:00:00 2001 From: star9029 Date: Thu, 26 Oct 2023 08:18:39 +0800 Subject: [PATCH] inipp: add package (#2754) --- packages/i/inipp/xmake.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 packages/i/inipp/xmake.lua diff --git a/packages/i/inipp/xmake.lua b/packages/i/inipp/xmake.lua new file mode 100644 index 000000000..9ad2801b4 --- /dev/null +++ b/packages/i/inipp/xmake.lua @@ -0,0 +1,21 @@ +package("inipp") + set_kind("library", {headeronly = true}) + set_homepage("https://github.com/mcmtroffaes/inipp") + set_description("Simple C++ ini parser.") + set_license("MIT") + + add_urls("https://github.com/mcmtroffaes/inipp.git") + add_versions("2022.02.03", "c61e699682d3f1091209c2179f1d03f5fc593327") + + on_install(function (package) + os.cp("inipp/inipp.h", package:installdir("include/inipp")) + end) + + on_test(function (package) + assert(package:check_cxxsnippets({test = [[ + #include + void test() { + inipp::Ini ini; + } + ]]}, {configs = {languages = "c++11"}})) + end)