xmake.lua 789 B

12345678910111213141516171819
  1. package("sse2rvv")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/pattonkan/sse2rvv")
  4. set_description("A translator from Intel SSE intrinsics to RISCV-V Extension implementation")
  5. set_license("MIT")
  6. add_urls("https://github.com/pattonkan/sse2rvv/archive/58b524e3f3cb8732118194f2920a343a5c5ce530.tar.gz",
  7. "https://github.com/pattonkan/sse2rvv.git")
  8. add_versions("2024.02.18", "e41e24195fda914c0ef85671c202e43d0e3bf86a63ece6564c539ad60f571bd1")
  9. on_install(function (package)
  10. assert(package:is_arch("riscv.*"), "package(sse2rvv): only support riscv")
  11. os.vcp("sse2rvv.h", package:installdir("include"))
  12. end)
  13. on_test(function (package)
  14. assert(package:has_cxxincludes("sse2rvv.h"))
  15. end)