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
parent
08990e70dd
commit
d131934c91
1 changed files with 24 additions and 0 deletions
@ -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…
Reference in new issue