|
|
|
@ -1,15 +1,15 @@ |
|
|
|
|
package("imgui-sfml") |
|
|
|
|
|
|
|
|
|
set_homepage("https://github.com/eliasdaler/imgui-sfml") |
|
|
|
|
set_description("Dear ImGui binding for use with SFML") |
|
|
|
|
|
|
|
|
|
add_urls("https://github.com/eliasdaler/imgui-sfml/archive/refs/tags/$(version).tar.gz", |
|
|
|
|
"https://github.com/eliasdaler/imgui-sfml.git") |
|
|
|
|
|
|
|
|
|
add_versions("v2.6", "b1195ca1210dd46c8049cfc8cae7f31cd34f1591da7de1c56297b277ac9c5cc0") |
|
|
|
|
add_versions("v2.5", "3775c9303f656297f2392e91ffae2021e874ee319b4139c60076d6f757ede109") |
|
|
|
|
|
|
|
|
|
add_deps("cmake") |
|
|
|
|
add_deps("imgui 1.80") |
|
|
|
|
add_deps("imgui") |
|
|
|
|
add_deps("opengl", {optional = true}) |
|
|
|
|
|
|
|
|
|
if is_plat("windows", "mingw") then |
|
|
|
@ -32,7 +32,7 @@ package("imgui-sfml") |
|
|
|
|
on_install("macosx", "linux", "windows", "mingw", function (package) |
|
|
|
|
io.writefile("xmake.lua", [[ |
|
|
|
|
add_rules("mode.release", "mode.debug") |
|
|
|
|
add_requires("imgui 1.80") |
|
|
|
|
add_requires("imgui") |
|
|
|
|
if is_plat("linux") and is_kind("shared") then |
|
|
|
|
add_requires("sfml", {configs = {shared = true}}) |
|
|
|
|
else |
|
|
|
|