xmake.lua 805 B

12345678910111213141516171819202122
  1. package("noisy")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://vzalzal.com/posts/noisy-the-class-you-wrote-a-hundred-times/")
  4. set_description("A C++ type to trace calls to special member functions.")
  5. set_license("MIT")
  6. add_urls("https://github.com/VincentZalzal/noisy.git")
  7. add_versions("2024.04.22", "99810230e226a294fb2bf97e4a1bc8d734368a48")
  8. on_install(function (package)
  9. os.cp("noisy.h", package:installdir("include"))
  10. end)
  11. on_test(function (package)
  12. assert(package:check_cxxsnippets({test = [[
  13. #include <noisy.h>
  14. vz::Noisy make_noisy() { return {}; }
  15. void test() {
  16. vz::Noisy x = vz::Noisy(make_noisy());
  17. }
  18. ]]}, {configs = {languages = "cxx11"}}))
  19. end)