소스 검색

inipp: add package (#2754)

star9029 1 년 전
부모
커밋
788f38f50a
1개의 변경된 파일21개의 추가작업 그리고 0개의 파일을 삭제
  1. 21 0
      packages/i/inipp/xmake.lua

+ 21 - 0
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 <inipp/inipp.h>
+            void test() {
+                inipp::Ini<char> ini;
+            }
+        ]]}, {configs = {languages = "c++11"}}))
+    end)