Auto-update rtm to v2.3.0 (#3468)

* Update rtm to v2.3.0

* set languages c++11

---------

Co-authored-by: star9029 <hengxings783@gmail.com>
pull/3472/head
ruki 9 months ago committed by GitHub
parent c12dfa127b
commit 06798cc909
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 7
      packages/r/rtm/xmake.lua

@ -1,16 +1,19 @@
package("rtm")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/nfrechette/rtm")
set_description("Realtime Math")
set_license("MIT")
add_urls("https://github.com/nfrechette/rtm/archive/refs/tags/$(version).tar.gz",
"https://github.com/nfrechette/rtm.git")
add_versions("v2.3.0", "2b5f2c3761bb52ae89802a574e9dc9949aec3b183f7e100b9b66a65adcc6f5ab")
add_versions("v2.1.5", "afb05cb00b59498756ca197028de291a1960e58d5f6fcad161d8240682481eae")
on_install("linux", "macosx", "windows", function (package)
os.cp("includes", path.join(package:installdir(), "include"))
os.cp("includes/rtm", package:installdir("include"))
end)
on_test(function (package)
assert(package:has_cxxtypes("rtm::vector4d", {includes = "rtm/types.h"}))
assert(package:has_cxxtypes("rtm::vector4d", {configs = {languages = "c++11"}, includes = "rtm/types.h"}))
end)

Loading…
Cancel
Save