xmake.lua 700 B

12345678910111213141516
  1. package("plf_nanotimer")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://plflib.org/nanotimer.htm")
  4. set_description("A cross-platform lowest-overhead microsecond-precision timer for simple benchmarking on Linux/BSD/Windows/Mac.")
  5. set_license("zlib")
  6. add_urls("https://github.com/mattreecebentley/plf_nanotimer.git")
  7. add_versions("v1.07", "55e0fcb135ec8db874a0656f94d1f1780d7c75a7")
  8. on_install("!wasm", function (package)
  9. os.cp("plf_nanotimer.h", package:installdir("include"))
  10. end)
  11. on_test(function (package)
  12. assert(package:has_cxxtypes("plf::nanotimer", {configs = {languages = "c++17"}, includes = "plf_nanotimer.h"}))
  13. end)