|
|
|
@ -24,8 +24,9 @@ package("imgui") |
|
|
|
|
add_versions("v1.75", "1023227fae4cf9c8032f56afcaea8902e9bfaad6d9094d6e48fb8f3903c7b866") |
|
|
|
|
|
|
|
|
|
add_configs("user_config", {description = "Use user config (disables test!)", default = nil, type = "string"}) |
|
|
|
|
add_configs("glfw_opengl3", {description = "Use glfw+opengl3 as backend", default = false, type = "boolean"}) |
|
|
|
|
add_configs("glfw_vulkan", {description = "Use glfw+vulkan as backend", default = false, type = "boolean"}) |
|
|
|
|
add_configs("glfw_opengl3", {description = "Enable glfw+opengl3 backend", default = false, type = "boolean"}) |
|
|
|
|
add_configs("glfw_vulkan", {description = "Enable glfw+vulkan backend", default = false, type = "boolean"}) |
|
|
|
|
add_configs("sdl2", {description = "Enable sdl2 backend", default = false, type = "boolean"}) |
|
|
|
|
add_configs("wchar32", {description = "Use 32-bit for ImWchar (default is 16-bit)", default = false, type = "boolean"}) |
|
|
|
|
add_configs("freetype", {description = "Use FreeType to build and rasterize the font atlas", default = false, type = "boolean"}) |
|
|
|
|
|
|
|
|
@ -45,9 +46,13 @@ package("imgui") |
|
|
|
|
package:add("defines", "IMGUI_IMPL_OPENGL_LOADER_GLAD") |
|
|
|
|
end |
|
|
|
|
package:add("deps", "glfw") |
|
|
|
|
elseif package:config("glfw_vulkan") then |
|
|
|
|
end |
|
|
|
|
if package:config("glfw_vulkan") then |
|
|
|
|
package:add("deps", "glfw") |
|
|
|
|
end |
|
|
|
|
if package:config("sdl2") then |
|
|
|
|
package:add("deps", "libsdl >=2.0.17") |
|
|
|
|
end |
|
|
|
|
if package:version_str():find("-docking", 1, true) then |
|
|
|
|
package:set("urls", {"https://github.com/ocornut/imgui.git"}) |
|
|
|
|
end |
|
|
|
@ -59,6 +64,7 @@ package("imgui") |
|
|
|
|
freetype = package:config("freetype"), |
|
|
|
|
glfw_opengl3 = package:config("glfw_opengl3"), |
|
|
|
|
glfw_vulkan = package:config("glfw_vulkan"), |
|
|
|
|
sdl2 = package:config("sdl2"), |
|
|
|
|
user_config = package:config("user_config"), |
|
|
|
|
use_glad = package:version():lt("1.84") -- this flag will be used if glfw_opengl3 is enabled |
|
|
|
|
} |
|
|
|
|