From c1a7e31eb972ff118dd99ff93cbe7425202e673d Mon Sep 17 00:00:00 2001 From: xpxz <97490782+heheda123123@users.noreply.github.com> Date: Wed, 18 Sep 2024 14:35:54 +0800 Subject: [PATCH] add debug-hpp (#5271) Co-authored-by: xp --- packages/d/debug-hpp/xmake.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 packages/d/debug-hpp/xmake.lua diff --git a/packages/d/debug-hpp/xmake.lua b/packages/d/debug-hpp/xmake.lua new file mode 100644 index 000000000..8040bfd48 --- /dev/null +++ b/packages/d/debug-hpp/xmake.lua @@ -0,0 +1,22 @@ +package("debug-hpp") + set_kind("library", {headeronly = true}) + set_homepage("https://github.com/archibate/debug-hpp") + set_description("printing everything including STL containers without pain") + set_license("Unlicense") + + add_urls("https://github.com/archibate/debug-hpp.git") + add_versions("2024.09.06", "ec10419581bc49e7368a853d7c0b607ac663f05c") + + on_install(function (package) + os.cp("debug.hpp", package:installdir("include")) + end) + + on_test(function (package) + assert(package:check_cxxsnippets({test = [[ + #include + + void test() { + debug(), "hello world"; + } + ]]}, {configs = {languages = "cxx11"}})) + end)