xmake.lua 722 B

12345678910111213141516171819
  1. package("papi")
  2. set_homepage("https://icl.utk.edu/papi/index.html")
  3. set_description("Performance Application Programming Interface")
  4. set_license("BSD-3-Clause")
  5. add_urls("http://icl.utk.edu/projects/papi/downloads/papi-$(version).tar.gz")
  6. add_versions("6.0.0", "3442709dae3405c2845b304c06a8b15395ecf4f3899a89ceb4d715103cb4055f")
  7. add_configs("shared", {description = "Build shared library.", default = true, type = "boolean", readonly = true})
  8. on_install("linux", function (package)
  9. os.cd("src")
  10. import("package.tools.autoconf").install(package)
  11. end)
  12. on_test(function (package)
  13. assert(package:has_cfuncs("PAPI_library_init", {includes = "papi.h"}))
  14. end)