From 1fba4eaddb60092999729fd7ce7bfb5fc9ee136e Mon Sep 17 00:00:00 2001 From: Lynix Date: Sun, 26 May 2013 23:07:24 +0200 Subject: [PATCH] Added build file Former-commit-id: cdf061966451f28f5785692232340aeadf6192f4 --- build/scripts/module/physics.lua | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 build/scripts/module/physics.lua 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"