Skip to content

Commit

Permalink
[clay] Add renderer configuration options and update test cases (#6074)
Browse files Browse the repository at this point in the history
* Add renderer configuration options and update test cases

* improve test

* fix copy path
  • Loading branch information
Arteiimis authored Dec 29, 2024
1 parent eb0f2d5 commit 00854d7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/c/clay/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@ package("clay")

add_versions("v0.12", "b36f19352635edeb6d770fe77fab267982d9f206beb541849578de9f0aaff825")

add_configs("renderer", {description = "Enable renderer", default = true, type = "boolean"})

on_install(function (package)
os.cp("clay.h", package:installdir("include"))
os.cp("renderers", package:installdir("include"))
end)

on_test(function (package)
assert(package:has_cxxincludes("clay.h", {configs = {languages = "c++20"}}))
end)
if package:config("renderer") then
assert(os.isfile(package:installdir("include", "renderers", "raylib", "clay_renderer_raylib.c")))
end
end)

0 comments on commit 00854d7

Please sign in to comment.