Update xmake.lua

This commit is contained in:
Jérôme Leclercq 2023-02-03 14:38:42 +01:00 committed by GitHub
parent c7818073a4
commit c3dddb883d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 7 deletions

View File

@ -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