diff --git a/packages/r/rmlui/xmake.lua b/packages/r/rmlui/xmake.lua index e97178f78..0478de5c4 100644 --- a/packages/r/rmlui/xmake.lua +++ b/packages/r/rmlui/xmake.lua @@ -11,6 +11,8 @@ package("rmlui") add_configs("freetype", {description = "Building with the default FreeType font engine.", default = true, type = "boolean"}) add_configs("lua", {description = "Build Lua bindings.", default = false, type = "boolean"}) add_configs("rtti", {description = "Build with rtti and exceptions enabled.", default = true, type = "boolean"}) + add_configs("svg", {description = "Build with SVG plugin enabled.", default = false, type = "boolean"}) + add_configs("lottie", {description = "Build with Lottie plugin enabled.", default = false, type = "boolean"}) add_deps("cmake") if is_plat("windows") then @@ -28,6 +30,12 @@ package("rmlui") if package:config("lua") then package:add("deps", "lua") end + if package:config("svg") then + package:add("deps", "lunasvg") + end + if package:config("lottie") then + package:add("deps", "rlottie") + end end) on_install("windows", "macosx", "linux", function (package) @@ -36,6 +44,8 @@ package("rmlui") table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF")) table.insert(configs, "-DNO_FONT_INTERFACE_DEFAULT=" .. (package:config("freetype") and "OFF" or "ON")) table.insert(configs, "-DBUILD_LUA_BINDINGS=" .. (package:config("lua") and "ON" or "OFF")) + table.insert(configs, "-DENABLE_SVG_PLUGIN=" .. (package:config("svg") and "ON" or "OFF")) + table.insert(configs, "-DENABLE_LOTTIE_PLUGIN=" .. (package:config("lottie") and "ON" or "OFF")) table.insert(configs, "-DDISABLE_RTTI_AND_EXCEPTIONS=" .. (package:config("rtti") and "OFF" or "ON")) if package:config("freetype") then import("package.tools.cmake").install(package, configs, {packagedeps = {"zlib"}})