From 92df5b4785903131552ae91d66333e47c6809a6f Mon Sep 17 00:00:00 2001 From: star9029 Date: Sun, 22 Oct 2023 16:13:09 +0800 Subject: [PATCH] inifile-cpp: add package (#2742) --- packages/i/inifile-cpp/xmake.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 packages/i/inifile-cpp/xmake.lua diff --git a/packages/i/inifile-cpp/xmake.lua b/packages/i/inifile-cpp/xmake.lua new file mode 100644 index 000000000..7725292f1 --- /dev/null +++ b/packages/i/inifile-cpp/xmake.lua @@ -0,0 +1,22 @@ +package("inifile-cpp") + set_kind("library", {headeronly = true}) + set_homepage("https://github.com/Rookfighter/inifile-cpp") + set_description("A header-only and easy to use Ini file parser for C++.") + set_license("MIT") + + add_urls("https://github.com/Rookfighter/inifile-cpp.git") + add_versions("2022.06.25", "e7ba25eede111e76e176a341ea12a47e9948627c") + + on_install(function (package) + os.cp("include", package:installdir()) + end) + + on_test(function (package) + assert(package:check_cxxsnippets({test = [[ + #include + void test() { + ini::IniFile myIni; + myIni.load("some/ini/path"); + } + ]]}, {configs = {languages = "c++11"}})) + end)