From 1858e1f35c83e08816ac4a4ad4082f5aad8e5a6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Leclercq?= Date: Fri, 7 May 2021 14:08:10 +0200 Subject: [PATCH] xmake: Build NewtonDynamics in debug only on Windows --- xmake.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xmake.lua b/xmake.lua index 0dc96b7f1..9e9f44ea0 100644 --- a/xmake.lua +++ b/xmake.lua @@ -87,7 +87,7 @@ local modules = { add_repositories("local-repo xmake-repo") add_requires("chipmunk2d", "freetype", "libsndfile", "libsdl") -add_requires("newtondynamics", { debug = is_mode("debug") }) +add_requires("newtondynamics", { debug = is_plat("windows") and is_mode("debug") }) -- Newton doesn't like compiling in Debug on Linux set_project("NazaraEngine") @@ -127,6 +127,7 @@ includes("thirdparty/xmake.lua") for name, module in pairs(modules) do target("Nazara" .. name) + set_kind("shared") set_group("Modules")