xmake.lua 604 B

123456789101112131415
  1. package("linmath.h")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/datenwolf/linmath.h")
  4. set_description("a lean linear math library, aimed at graphics programming. Supports vec3, vec4, mat4x4 and quaternions")
  5. add_urls("https://github.com/datenwolf/linmath.h.git")
  6. add_versions("2022.06.19", "3eef82841046507e16a0f6194a61cee2eadd34b3")
  7. on_install(function (package)
  8. os.cp("linmath.h", package:installdir("include"))
  9. end)
  10. on_test(function (package)
  11. assert(package:has_cfuncs("mat4x4_mul", {includes = "linmath.h"}))
  12. end)