xmake: Build NewtonDynamics in debug only on Windows

This commit is contained in:
Jérôme Leclercq 2021-05-07 14:08:10 +02:00
parent ff107564ee
commit 1858e1f35c
1 changed files with 2 additions and 1 deletions

View File

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