|
@@ -49,6 +49,7 @@ package("imgui")
|
|
|
add_configs("sdl2_renderer", {description = "Enable the sdl2 renderer backend", default = false, type = "boolean"})
|
|
|
add_configs("vulkan", {description = "Enable the vulkan backend", default = false, type = "boolean"})
|
|
|
add_configs("win32", {description = "Enable the win32 backend", default = false, type = "boolean"})
|
|
|
+ add_configs("wgpu", {description = "Enable the wgpu backend", default = false, type = "boolean"})
|
|
|
add_configs("freetype", {description = "Use FreeType to build and rasterize the font atlas", default = false, type = "boolean"})
|
|
|
add_configs("user_config", {description = "Use user config (disables test!)", default = nil, type = "string"})
|
|
|
add_configs("wchar32", {description = "Use 32-bit for ImWchar (default is 16-bit)", default = false, type = "boolean"})
|
|
@@ -101,6 +102,9 @@ package("imgui")
|
|
|
if package:config("vulkan") then
|
|
|
package:add("deps", "vulkansdk")
|
|
|
end
|
|
|
+ if package:config("wgpu") then
|
|
|
+ package:add("deps", "wgpu-native")
|
|
|
+ end
|
|
|
if package:config("freetype") then
|
|
|
package:add("deps", "freetype")
|
|
|
end
|
|
@@ -123,6 +127,7 @@ package("imgui")
|
|
|
sdl2_renderer = package:config("sdl2_renderer"),
|
|
|
vulkan = package:config("vulkan"),
|
|
|
win32 = package:config("win32"),
|
|
|
+ wgpu = package:config("wgpu"),
|
|
|
freetype = package:config("freetype"),
|
|
|
user_config = package:config("user_config"),
|
|
|
wchar32 = package:config("wchar32")
|