xmake.lua 629 B

12345678910111213141516
  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. set_license("WTFPL")
  6. add_urls("https://github.com/datenwolf/linmath.h.git")
  7. add_versions("2022.06.19", "3eef82841046507e16a0f6194a61cee2eadd34b3")
  8. on_install(function (package)
  9. os.cp("linmath.h", package:installdir("include"))
  10. end)
  11. on_test(function (package)
  12. assert(package:has_cfuncs("mat4x4_mul", {includes = "linmath.h"}))
  13. end)