XMake: handle wayland and libuuid on Linux

This commit is contained in:
SirLynix
2022-07-28 13:03:49 +02:00
parent 9197bf964d
commit 3f7b504164
3 changed files with 8 additions and 4 deletions

View File

@@ -15,7 +15,9 @@ local modules = {
if is_plat("windows", "mingw") then
add_syslinks("ole32")
elseif is_plat("linux") then
add_syslinks("dl", "pthread", "uuid")
add_packages("wayland", { links = {} }) -- we only need wayland headers
add_packages("libuuid")
add_syslinks("dl", "pthread")
end
end,
Packages = { "entt" },
@@ -156,7 +158,9 @@ add_repositories("nazara-engine-repo https://github.com/NazaraEngine/xmake-repo"
add_requires("nazarautils")
add_requires("nzsl", { debug = is_mode("debug"), configs = { with_symbols = not is_mode("release"), shared = true } })
if is_plat("macosx") then
if is_plat("linux") then
add_requires("libuuid", "wayland")
elseif is_plat("macosx") then
add_requires("libx11")
end