XMake: Don't install libxext/wayland if platform is disabled
This commit is contained in:
@@ -310,7 +310,6 @@ end
|
|||||||
|
|
||||||
if has_config("physics3d") then
|
if has_config("physics3d") then
|
||||||
add_requires("joltphysics >=4", { configs = { debug = is_mode("debug") }})
|
add_requires("joltphysics >=4", { configs = { debug = is_mode("debug") }})
|
||||||
add_requires("ordered_map")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if has_config("network") then
|
if has_config("network") then
|
||||||
@@ -330,6 +329,9 @@ end
|
|||||||
|
|
||||||
if has_config("platform") then
|
if has_config("platform") then
|
||||||
add_requires("libsdl >=2.26.0")
|
add_requires("libsdl >=2.26.0")
|
||||||
|
if is_plat("linux") then
|
||||||
|
add_requires("libxext", "wayland", { configs = { asan = false } })
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if has_config("renderer") then
|
if has_config("renderer") then
|
||||||
@@ -383,10 +385,6 @@ if is_plat("linux", "android") then
|
|||||||
add_requires("libuuid")
|
add_requires("libuuid")
|
||||||
end
|
end
|
||||||
|
|
||||||
if is_plat("linux") then
|
|
||||||
add_requires("libxext", "wayland", { configs = { asan = false } })
|
|
||||||
end
|
|
||||||
|
|
||||||
----------------------- Global config -----------------------
|
----------------------- Global config -----------------------
|
||||||
|
|
||||||
add_rules("mode.coverage", "mode.debug", "mode.releasedbg", "mode.release")
|
add_rules("mode.coverage", "mode.debug", "mode.releasedbg", "mode.release")
|
||||||
|
|||||||
Reference in New Issue
Block a user