From 548849b20e8c6f0769a658c2bef68f360f507560 Mon Sep 17 00:00:00 2001 From: Chi Huu Huynh <73843190+Chi-EEE@users.noreply.github.com> Date: Tue, 23 Apr 2024 13:30:27 +0100 Subject: [PATCH] noisy: add package (#3856) --- packages/n/noisy/xmake.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 packages/n/noisy/xmake.lua diff --git a/packages/n/noisy/xmake.lua b/packages/n/noisy/xmake.lua new file mode 100644 index 000000000..b04b7f347 --- /dev/null +++ b/packages/n/noisy/xmake.lua @@ -0,0 +1,22 @@ +package("noisy") + set_kind("library", {headeronly = true}) + set_homepage("https://vzalzal.com/posts/noisy-the-class-you-wrote-a-hundred-times/") + set_description("A C++ type to trace calls to special member functions.") + set_license("MIT") + + add_urls("https://github.com/VincentZalzal/noisy.git") + add_versions("2024.04.22", "99810230e226a294fb2bf97e4a1bc8d734368a48") + + on_install(function (package) + os.cp("noisy.h", package:installdir("include")) + end) + + on_test(function (package) + assert(package:check_cxxsnippets({test = [[ + #include + vz::Noisy make_noisy() { return {}; } + void test() { + vz::Noisy x = vz::Noisy(make_noisy()); + } + ]]}, {configs = {languages = "cxx11"}})) + end)