Update xmake.lua
This commit is contained in:
parent
c7818073a4
commit
c3dddb883d
15
xmake.lua
15
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue