Add package raylib-cpp (#4133)

* add package raylib-cpp

* Update xmake.lua

* add platform list for raylib-cpp

---------

Co-authored-by: star9029 <hengxings783@gmail.com>
pull/4139/head
方而静 12 months ago committed by GitHub
parent 08990e70dd
commit d131934c91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 24
      packages/r/raylib-cpp/xmake.lua

@ -0,0 +1,24 @@
package("raylib-cpp")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/RobLoach/raylib-cpp")
set_description("C++ Object Oriented Wrapper for raylib")
set_license("zlib")
add_urls("https://github.com/RobLoach/raylib-cpp/archive/refs/tags/$(version).tar.gz",
"https://github.com/RobLoach/raylib-cpp.git")
add_versions("v5.0.1", "6d10469019700fd5993db9a18bdd0ed025105b1bf7dd8916e353eef8bfac6355")
add_deps("raylib 5.x")
on_install("windows", "linux", "macosx", "mingw", function (package)
os.cp("include/*.hpp", package:installdir("include/raylib-cpp"))
end)
on_test(function (package)
assert(package:check_cxxsnippets({test = [[
void test() {
raylib::Color color(255, 0, 0, 255);
}
]]}, {configs = {languages = "c++17"}, includes = "raylib-cpp/raylib-cpp.hpp"}))
end)
Loading…
Cancel
Save