From c3dddb883d52fe4a63e05be9b00d2f0398612f30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Leclercq?= Date: Fri, 3 Feb 2023 14:38:42 +0100 Subject: [PATCH] Update xmake.lua --- xmake.lua | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/xmake.lua b/xmake.lua index 0916a2dc1..0e6b97261 100644 --- a/xmake.lua +++ b/xmake.lua @@ -265,13 +265,6 @@ elseif is_mode("releasedbg", "release") then add_vectorexts("sse", "sse2", "sse3", "ssse3") end -if not is_plat("wasm") then - set_kind("shared") -else - set_kind("static") - add_defines("NAZARA_STATIC") -end - add_includedirs("include") add_sysincludedirs("thirdparty/include") @@ -374,6 +367,14 @@ for name, module in pairs(modules) do target("Nazara" .. name, function () set_group("Modules") + -- for now only shared compilation is supported (except on platforms like wasm) + if not is_plat("wasm") then + set_kind("shared") + else + set_kind("static") + add_defines("NAZARA_STATIC", { public = true }) + end + add_rpathdirs("$ORIGIN") if module.Deps then