Skip to content

Commit 856eb31

Browse files
authored
Update URLs and remove shared library config
1 parent efca77c commit 856eb31

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

packages/e/eui-neo/xmake.lua

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ package("eui-neo")
33
set_description("Cross-platform, high-performance, low-overhead C++17 GPUI framework")
44
set_license("Apache-2.0")
55

6-
set_urls("https://github.com/lilyco-42/EUI-NEO.git")
6+
add_urls("https://github.com/sudoevolve/EUI-NEO/archive/refs/tags/$(version).tar.gz",
7+
"https://github.com/sudoevolve/EUI-NEO.git")
78

8-
add_versions("v0.5.5", "df2399495a139a21290bf8a9288f5efba2c52bde")
9+
add_versions("v0.5.5", "cf0da91d7544fe406b704922137fd4d55ed080b3e647501e0ca5303abb00eb98")
910

1011
add_configs("window_backend", {description = "Window backend", default = "glfw", values = {"glfw", "sdl2"}})
1112
add_configs("render_backend", {description = "Render backend", default = "opengl", values = {"auto", "opengl", "vulkan"}})
12-
add_configs("shared", {description = "Build eui_neo as a shared library", default = false, type = "boolean"})
1313
add_configs("markdown", {description = "Enable MD4C Markdown parsing support", default = true, type = "boolean"})
1414
add_configs("vulkan_low_latency", {description = "Prefer low-latency Vulkan presentation", default = false, type = "boolean"})
1515

@@ -22,6 +22,9 @@ package("eui-neo")
2222
if package:config("window_backend") == "sdl2" then
2323
package:add("deps", "sdl2")
2424
end
25+
if package:config("render_backend") == "opengl" then
26+
package:add("deps", "glad")
27+
end
2528
if package:config("render_backend") == "vulkan" then
2629
package:add("deps", "vulkan")
2730
end
@@ -31,10 +34,10 @@ package("eui-neo")
3134
end)
3235

3336
on_install(function(package)
37+
os.cp(path.join(package:scriptdir(), "port", "xmake.lua"), "xmake.lua")
3438
local configs = {}
3539
configs.window_backend = package:config("window_backend")
3640
configs.render_backend = package:config("render_backend")
37-
configs.shared = package:config("shared")
3841
configs.markdown = package:config("markdown")
3942
configs.vulkan_low_latency = package:config("vulkan_low_latency")
4043
configs.apps = false

0 commit comments

Comments
 (0)