2
0

xmake.lua 892 B

1234567891011121314151617181920
  1. package("rtm")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/nfrechette/rtm")
  4. set_description("Realtime Math")
  5. set_license("MIT")
  6. add_urls("https://github.com/nfrechette/rtm/archive/refs/tags/$(version).tar.gz",
  7. "https://github.com/nfrechette/rtm.git")
  8. add_versions("v2.3.1", "a16fc698feca580533fa12c92fe7d1df4f341f807df7ec314274659fdfec11fb")
  9. add_versions("v2.3.0", "2b5f2c3761bb52ae89802a574e9dc9949aec3b183f7e100b9b66a65adcc6f5ab")
  10. add_versions("v2.1.5", "afb05cb00b59498756ca197028de291a1960e58d5f6fcad161d8240682481eae")
  11. on_install("linux", "macosx", "windows", function (package)
  12. os.cp("includes/rtm", package:installdir("include"))
  13. end)
  14. on_test(function (package)
  15. assert(package:has_cxxtypes("rtm::vector4d", {configs = {languages = "c++11"}, includes = "rtm/types.h"}))
  16. end)