xmake.lua 1.1 KB

12345678910111213141516171819202122232425262728
  1. package("xbyak")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/herumi/xbyak")
  4. set_description("JIT assembler for x86(IA-32)/x64(AMD64, x86-64) MMX/SSE/SSE2/SSE3/SSSE3/SSE4/FPU/AVX/AVX2/AVX-512")
  5. set_urls("https://github.com/herumi/xbyak/archive/$(version).zip",
  6. "https://github.com/herumi/xbyak.git")
  7. add_versions("v6.73", "8cb9cc090f6123b35a2c554ae4cc80c9a2fb65ebf0b378463094fc62360fb13d")
  8. add_versions("v6.03", "e13ec1247a3a34f602434cf5075f0dfeea42bbd9bc4a73fd59dcf3e44907e68a")
  9. add_versions("v6.02", "cd3fe5ee15df6bfa73c721584b101c885096551124e6ded31b6f866ecb381cf0")
  10. on_install(function (package)
  11. os.cp("xbyak", package:installdir("include"))
  12. end)
  13. on_test(function (package)
  14. assert(package:check_cxxsnippets({test = [[
  15. void test()
  16. {
  17. class Sample : public Xbyak::CodeGenerator {
  18. Sample() {
  19. inc(eax);
  20. }
  21. };
  22. }
  23. ]]}, {configs = {languages = "c++17"}, includes = { "xbyak/xbyak.h" } }))
  24. end)