2013-03-11 21:03:27 +00:00
|
|
|
|
2014-02-06 03:39:48 +00:00
|
|
|
solution "0_Bullet3Solution"
|
2013-03-11 21:03:27 +00:00
|
|
|
|
2014-08-22 21:41:21 +00:00
|
|
|
local osversion = os.getversion()
|
|
|
|
print(string.format(" %d.%d.%d (%s)",
|
|
|
|
osversion.majorversion, osversion.minorversion, osversion.revision,
|
|
|
|
osversion.description))
|
|
|
|
|
|
|
|
|
2013-03-11 21:03:27 +00:00
|
|
|
-- Multithreaded compiling
|
|
|
|
if _ACTION == "vs2010" or _ACTION=="vs2008" then
|
|
|
|
buildoptions { "/MP" }
|
2014-05-14 04:52:46 +00:00
|
|
|
end
|
|
|
|
|
2013-03-11 21:03:27 +00:00
|
|
|
act = ""
|
2014-05-14 04:52:46 +00:00
|
|
|
|
2013-03-11 21:03:27 +00:00
|
|
|
if _ACTION then
|
|
|
|
act = _ACTION
|
|
|
|
end
|
|
|
|
|
2014-08-19 05:19:34 +00:00
|
|
|
newoption
|
|
|
|
{
|
|
|
|
trigger = "force_dlopen_opengl",
|
|
|
|
description = "Dynamically load OpenGL (instead of static/dynamic linking)"
|
|
|
|
}
|
|
|
|
|
|
|
|
newoption
|
|
|
|
{
|
|
|
|
trigger = "force_dlopen_x11",
|
|
|
|
description = "Dynamically load OpenGL (instead of static/dynamic linking)"
|
|
|
|
}
|
|
|
|
|
2015-05-06 19:05:25 +00:00
|
|
|
newoption
|
|
|
|
{
|
|
|
|
trigger = "noopengl3",
|
|
|
|
description = "Don't compile any OpenGL3+ code"
|
|
|
|
}
|
2014-08-19 05:19:34 +00:00
|
|
|
|
2014-01-28 18:25:04 +00:00
|
|
|
newoption
|
|
|
|
{
|
|
|
|
trigger = "midi",
|
|
|
|
description = "Use Midi controller to control parameters"
|
|
|
|
}
|
2014-05-14 04:52:46 +00:00
|
|
|
|
2015-05-06 19:05:25 +00:00
|
|
|
-- --_OPTIONS["midi"] = "1";
|
2014-05-14 04:52:46 +00:00
|
|
|
|
2013-05-01 01:17:44 +00:00
|
|
|
newoption
|
|
|
|
{
|
2014-08-22 21:41:21 +00:00
|
|
|
trigger = "bullet2demos",
|
|
|
|
description = "Compile the Bullet 2 demos (Demo/Extra folder)"
|
2013-05-01 01:17:44 +00:00
|
|
|
}
|
2013-05-05 02:50:56 +00:00
|
|
|
|
|
|
|
newoption
|
|
|
|
{
|
|
|
|
trigger = "enet",
|
|
|
|
description = "Enable enet NAT punchthrough test"
|
|
|
|
}
|
2014-05-14 04:52:46 +00:00
|
|
|
|
2014-04-28 18:11:45 +00:00
|
|
|
newoption
|
|
|
|
{
|
2014-08-12 19:18:32 +00:00
|
|
|
trigger = "without-gtest",
|
|
|
|
description = "Disable unit tests using gtest"
|
2014-05-14 04:52:46 +00:00
|
|
|
}
|
|
|
|
|
2013-03-11 21:03:27 +00:00
|
|
|
configurations {"Release", "Debug"}
|
|
|
|
configuration "Release"
|
2013-07-30 19:37:16 +00:00
|
|
|
flags { "Optimize", "EnableSSE2","StaticRuntime", "NoMinimalRebuild", "FloatFast"}
|
2013-03-11 21:03:27 +00:00
|
|
|
configuration "Debug"
|
|
|
|
defines {"_DEBUG=1"}
|
|
|
|
flags { "Symbols", "StaticRuntime" , "NoMinimalRebuild", "NoEditAndContinue" ,"FloatFast"}
|
2014-05-14 04:52:46 +00:00
|
|
|
|
2013-03-14 00:38:16 +00:00
|
|
|
if os.is("Linux") then
|
|
|
|
if os.is64bit() then
|
|
|
|
platforms {"x64"}
|
|
|
|
else
|
|
|
|
platforms {"x32"}
|
|
|
|
end
|
|
|
|
else
|
|
|
|
platforms {"x32", "x64"}
|
|
|
|
end
|
2013-03-11 21:03:27 +00:00
|
|
|
|
|
|
|
configuration {"x32"}
|
|
|
|
targetsuffix ("_" .. act)
|
2014-05-14 04:52:46 +00:00
|
|
|
configuration "x64"
|
2013-03-11 21:03:27 +00:00
|
|
|
targetsuffix ("_" .. act .. "_64" )
|
|
|
|
configuration {"x64", "debug"}
|
|
|
|
targetsuffix ("_" .. act .. "_x64_debug")
|
|
|
|
configuration {"x64", "release"}
|
|
|
|
targetsuffix ("_" .. act .. "_x64_release" )
|
|
|
|
configuration {"x32", "debug"}
|
|
|
|
targetsuffix ("_" .. act .. "_debug" )
|
2014-05-14 04:52:46 +00:00
|
|
|
|
2013-03-11 21:03:27 +00:00
|
|
|
configuration{}
|
|
|
|
|
|
|
|
postfix=""
|
|
|
|
|
|
|
|
if _ACTION == "xcode4" then
|
2013-11-26 05:38:44 +00:00
|
|
|
xcodebuildsettings
|
|
|
|
{
|
|
|
|
'ARCHS = "$(ARCHS_STANDARD_32_BIT) $(ARCHS_STANDARD_64_BIT)"',
|
|
|
|
'VALID_ARCHS = "x86_64 i386"',
|
2015-04-17 00:35:34 +00:00
|
|
|
'SDKROOT = "macosx10.9"',
|
2013-11-26 05:38:44 +00:00
|
|
|
}
|
2013-03-11 21:03:27 +00:00
|
|
|
end
|
|
|
|
|
2014-07-31 20:38:31 +00:00
|
|
|
-- comment-out for now, URDF reader needs exceptions
|
|
|
|
-- flags { "NoRTTI", "NoExceptions"}
|
|
|
|
-- defines { "_HAS_EXCEPTIONS=0" }
|
2013-03-11 21:03:27 +00:00
|
|
|
targetdir "../bin"
|
|
|
|
location("./" .. act .. postfix)
|
|
|
|
|
2014-05-14 04:52:46 +00:00
|
|
|
|
2013-03-11 21:03:27 +00:00
|
|
|
projectRootDir = os.getcwd() .. "/../"
|
2014-05-14 04:52:46 +00:00
|
|
|
print("Project root directory: " .. projectRootDir);
|
2013-03-11 21:03:27 +00:00
|
|
|
|
|
|
|
dofile ("findOpenCL.lua")
|
|
|
|
dofile ("findDirectX11.lua")
|
|
|
|
dofile ("findOpenGLGlewGlut.lua")
|
2015-05-06 19:05:25 +00:00
|
|
|
|
|
|
|
if (not findOpenGL3()) then
|
|
|
|
defines {"NO_OPENGL3"}
|
|
|
|
end
|
2014-05-14 04:52:46 +00:00
|
|
|
|
2013-03-11 21:03:27 +00:00
|
|
|
language "C++"
|
2014-04-28 18:11:45 +00:00
|
|
|
|
2015-04-16 17:17:35 +00:00
|
|
|
include "../examples/ExampleBrowser"
|
|
|
|
include "../examples/OpenGLWindow"
|
|
|
|
|
|
|
|
include "../examples/ThirdPartyLibs/Gwen"
|
|
|
|
|
|
|
|
include "../examples/HelloWorld"
|
|
|
|
include "../examples/BasicDemo"
|
|
|
|
|
2015-05-06 19:05:25 +00:00
|
|
|
if _OPTIONS["enet"] then
|
|
|
|
include "../examples/ThirdPartyLibs/enet"
|
|
|
|
include "../test/enet/client"
|
|
|
|
include "../test/enet/server"
|
|
|
|
end
|
2015-04-16 17:17:35 +00:00
|
|
|
|
2014-08-12 19:18:32 +00:00
|
|
|
if not _OPTIONS["without-gtest"] then
|
2014-04-28 18:11:45 +00:00
|
|
|
include "../test/gtest-1.7.0"
|
|
|
|
-- include "../test/hello_gtest"
|
2014-11-02 20:53:36 +00:00
|
|
|
include "../test/collision"
|
2014-04-28 18:11:45 +00:00
|
|
|
include "../test/TestBullet3OpenCL"
|
2015-04-28 01:35:07 +00:00
|
|
|
include "../test/GwenOpenGLTest"
|
2014-04-28 18:11:45 +00:00
|
|
|
end
|
2014-07-03 23:42:50 +00:00
|
|
|
|
2015-04-16 17:17:35 +00:00
|
|
|
|
|
|
|
include "../src/BulletSoftBody"
|
|
|
|
include "../src/BulletDynamics"
|
|
|
|
include "../src/BulletCollision"
|
|
|
|
include "../src/LinearMath"
|
|
|
|
|
|
|
|
include "../src/Bullet3Common"
|
|
|
|
include "../src/Bullet3Geometry"
|
|
|
|
include "../src/Bullet3Collision"
|
|
|
|
include "../src/Bullet3Dynamics"
|
|
|
|
include "../src/Bullet3OpenCL"
|
|
|
|
include "../src/Bullet3Serialize/Bullet2FileLoader"
|
|
|
|
|
|
|
|
|
2015-04-17 00:35:34 +00:00
|
|
|
|