mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-14 05:40:05 +00:00
27227e5e4a
add example description for all examples (with word-wrap) add the VoronoiFractureDemo, note that the collision are disabled after breaking constraints. add optional GwenOpenGLTest, to make it easier to see Gwen user interface features.
151 lines
3.3 KiB
Lua
151 lines
3.3 KiB
Lua
|
|
solution "0_Bullet3Solution"
|
|
|
|
local osversion = os.getversion()
|
|
print(string.format(" %d.%d.%d (%s)",
|
|
osversion.majorversion, osversion.minorversion, osversion.revision,
|
|
osversion.description))
|
|
|
|
|
|
-- Multithreaded compiling
|
|
if _ACTION == "vs2010" or _ACTION=="vs2008" then
|
|
buildoptions { "/MP" }
|
|
end
|
|
|
|
act = ""
|
|
|
|
if _ACTION then
|
|
act = _ACTION
|
|
end
|
|
|
|
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)"
|
|
}
|
|
|
|
|
|
newoption
|
|
{
|
|
trigger = "midi",
|
|
description = "Use Midi controller to control parameters"
|
|
}
|
|
|
|
-- _OPTIONS["midi"] = "1";
|
|
|
|
newoption
|
|
{
|
|
trigger = "bullet2demos",
|
|
description = "Compile the Bullet 2 demos (Demo/Extra folder)"
|
|
}
|
|
|
|
newoption
|
|
{
|
|
trigger = "enet",
|
|
description = "Enable enet NAT punchthrough test"
|
|
}
|
|
|
|
newoption
|
|
{
|
|
trigger = "without-gtest",
|
|
description = "Disable unit tests using gtest"
|
|
}
|
|
|
|
configurations {"Release", "Debug"}
|
|
configuration "Release"
|
|
flags { "Optimize", "EnableSSE2","StaticRuntime", "NoMinimalRebuild", "FloatFast"}
|
|
configuration "Debug"
|
|
defines {"_DEBUG=1"}
|
|
flags { "Symbols", "StaticRuntime" , "NoMinimalRebuild", "NoEditAndContinue" ,"FloatFast"}
|
|
|
|
if os.is("Linux") then
|
|
if os.is64bit() then
|
|
platforms {"x64"}
|
|
else
|
|
platforms {"x32"}
|
|
end
|
|
else
|
|
platforms {"x32", "x64"}
|
|
end
|
|
|
|
configuration {"x32"}
|
|
targetsuffix ("_" .. act)
|
|
configuration "x64"
|
|
targetsuffix ("_" .. act .. "_64" )
|
|
configuration {"x64", "debug"}
|
|
targetsuffix ("_" .. act .. "_x64_debug")
|
|
configuration {"x64", "release"}
|
|
targetsuffix ("_" .. act .. "_x64_release" )
|
|
configuration {"x32", "debug"}
|
|
targetsuffix ("_" .. act .. "_debug" )
|
|
|
|
configuration{}
|
|
|
|
postfix=""
|
|
|
|
if _ACTION == "xcode4" then
|
|
xcodebuildsettings
|
|
{
|
|
'ARCHS = "$(ARCHS_STANDARD_32_BIT) $(ARCHS_STANDARD_64_BIT)"',
|
|
'VALID_ARCHS = "x86_64 i386"',
|
|
'SDKROOT = "macosx10.9"',
|
|
}
|
|
end
|
|
|
|
-- comment-out for now, URDF reader needs exceptions
|
|
-- flags { "NoRTTI", "NoExceptions"}
|
|
-- defines { "_HAS_EXCEPTIONS=0" }
|
|
targetdir "../bin"
|
|
location("./" .. act .. postfix)
|
|
|
|
|
|
projectRootDir = os.getcwd() .. "/../"
|
|
print("Project root directory: " .. projectRootDir);
|
|
|
|
dofile ("findOpenCL.lua")
|
|
dofile ("findDirectX11.lua")
|
|
dofile ("findOpenGLGlewGlut.lua")
|
|
|
|
language "C++"
|
|
|
|
include "../examples/ExampleBrowser"
|
|
include "../examples/OpenGLWindow"
|
|
|
|
include "../examples/ThirdPartyLibs/Gwen"
|
|
|
|
include "../examples/HelloWorld"
|
|
include "../examples/BasicDemo"
|
|
include "../examples/MultiBody"
|
|
|
|
|
|
|
|
if not _OPTIONS["without-gtest"] then
|
|
include "../test/gtest-1.7.0"
|
|
-- include "../test/hello_gtest"
|
|
include "../test/collision"
|
|
include "../test/TestBullet3OpenCL"
|
|
include "../test/GwenOpenGLTest"
|
|
end
|
|
|
|
|
|
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"
|
|
|
|
|
|
|