Skip to content

Commit

Permalink
Update xmake.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
SirLynix authored Feb 8, 2025
1 parent 72dcdf7 commit 173e07b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/o/openscenegraph/xmake.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
package("openscenegraph")

set_homepage("https://www.openscenegraph.com/")
set_description("The OpenSceneGraph is an open source high performance 3D graphics toolkit.")

Expand All @@ -24,6 +23,8 @@ package("openscenegraph")
for config, dep in pairs(configdeps) do
add_configs(config, {description = "Enable the " .. config .. " plugin.", default = false, type = "boolean"})
end
-- deprecated config
add_configs("libsdl", {description = "Enable the libsdl2 plugin (deprecated, use libsdl2 config instead).", default = nil, type = "boolean"})

set_policy("platform.longpaths", true)

Expand All @@ -43,6 +44,10 @@ package("openscenegraph")
add_syslinks("pthread")
end
on_load("windows", "linux", "macosx", function (package)
if package:config("libsdl") ~= nil then
wprint("package(openscenegraph): config libsdl has been renamed has been renamed to libsdl2 following the release of SDL3, please use libsdl2 config instead.${clear}")
package:config_set("libsdl2", package:config("libsdl"))
end
for config, dep in pairs(configdeps) do
if package:config(config) then
package:add("deps", config)
Expand Down

0 comments on commit 173e07b

Please sign in to comment.