XMake: Don't install libxext/wayland if platform is disabled

This commit is contained in:
SirLynix 2024-02-25 14:49:33 +01:00
parent f572ae06a1
commit 7f5f7668ec
1 changed files with 3 additions and 5 deletions

View File

@ -310,7 +310,6 @@ end
if has_config("physics3d") then
add_requires("joltphysics >=4", { configs = { debug = is_mode("debug") }})
add_requires("ordered_map")
end
if has_config("network") then
@ -330,6 +329,9 @@ end
if has_config("platform") then
add_requires("libsdl >=2.26.0")
if is_plat("linux") then
add_requires("libxext", "wayland", { configs = { asan = false } })
end
end
if has_config("renderer") then
@ -383,10 +385,6 @@ if is_plat("linux", "android") then
add_requires("libuuid")
end
if is_plat("linux") then
add_requires("libxext", "wayland", { configs = { asan = false } })
end
----------------------- Global config -----------------------
add_rules("mode.coverage", "mode.debug", "mode.releasedbg", "mode.release")