diff --git a/build/scripts/module/physics.lua b/build/scripts/module/physics.lua new file mode 100644 index 000000000..edc301b66 --- /dev/null +++ b/build/scripts/module/physics.lua @@ -0,0 +1,39 @@ +if (not _OPTIONS["united"]) then + project "NazaraPhysics" +end + +files +{ + "../include/Nazara/Physics/**.hpp", + "../include/Nazara/Physics/**.inl", + "../src/Nazara/Physics/**.hpp", + "../src/Nazara/Physics/**.cpp" +} + +if (os.is("windows")) then + excludes { "../src/Nazara/Physics/Posix/*.hpp", "../src/Nazara/Physics/Posix/*.cpp" } +else + excludes { "../src/Nazara/Physics/Win32/*.hpp", "../src/Nazara/Physics/Win32/*.cpp" } +end + +if (_OPTIONS["united"]) then + excludes "../src/Nazara/Physics/Debug/Leaks.cpp" +else + configuration "DebugStatic" + links "NazaraCore-s-d" + + configuration "ReleaseStatic" + links "NazaraCore-s" + + configuration "DebugDLL" + links "NazaraCore-d" + + configuration "ReleaseDLL" + links "NazaraCore" +end + +configuration "Debug*" + links "newton_d" + +configuration "Release*" + links "newton"