noisy: add package (#3856)

pull/3859/head
Chi Huu Huynh 7 months ago committed by GitHub
parent dbe1de5a48
commit 548849b20e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 22
      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 <noisy.h>
vz::Noisy make_noisy() { return {}; }
void test() {
vz::Noisy x = vz::Noisy(make_noisy());
}
]]}, {configs = {languages = "cxx11"}}))
end)
Loading…
Cancel
Save