2016-04-14 15:51:20 +00:00
|
|
|
project "App_BulletExampleBrowser"
|
|
|
|
|
|
|
|
language "C++"
|
|
|
|
|
|
|
|
kind "ConsoleApp"
|
2018-02-10 02:46:26 +00:00
|
|
|
|
|
|
|
if os.is("Linux") then
|
|
|
|
buildoptions{"-fPIC"}
|
2018-09-06 00:58:14 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
if _OPTIONS["enable_grpc"] then
|
|
|
|
initGRPC()
|
|
|
|
defines{"ENABLE_STATIC_GRPC_PLUGIN"}
|
|
|
|
files {
|
|
|
|
"../../examples/SharedMemory/PhysicsClientGRPC.cpp",
|
|
|
|
"../../examples/SharedMemory/PhysicsClientGRPC.h",
|
|
|
|
"../../examples/SharedMemory/PhysicsClientGRPC_C_API.cpp",
|
|
|
|
"../../examples/SharedMemory/PhysicsClientGRPC_C_API.h",
|
|
|
|
"../../examples/SharedMemory/plugins/grpcPlugin/grpcPlugin.cpp",
|
|
|
|
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
2016-04-14 15:51:20 +00:00
|
|
|
hasCL = findOpenCL("clew")
|
|
|
|
|
2016-05-13 06:03:12 +00:00
|
|
|
if (hasCL) then
|
|
|
|
initOpenCL("clew")
|
|
|
|
end
|
2016-04-14 15:51:20 +00:00
|
|
|
|
2019-01-28 15:35:57 +00:00
|
|
|
links{"BulletExampleBrowserLib","gwen", "OpenGL_Window","BulletSoftBody", "BulletInverseDynamicsUtils", "BulletInverseDynamics", "BulletDynamics","BulletCollision","LinearMath","BussIK", "Bullet3Common"}
|
2016-04-14 15:51:20 +00:00
|
|
|
initOpenGL()
|
|
|
|
initGlew()
|
|
|
|
|
|
|
|
includedirs {
|
|
|
|
".",
|
|
|
|
"../../src",
|
2018-05-24 05:48:45 +00:00
|
|
|
"../../examples/SharedMemory",
|
2016-04-14 15:51:20 +00:00
|
|
|
"../ThirdPartyLibs",
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if os.is("MacOSX") then
|
|
|
|
links{"Cocoa.framework"}
|
|
|
|
end
|
|
|
|
|
|
|
|
if (hasCL) then
|
|
|
|
links {
|
|
|
|
"Bullet3OpenCL_clew",
|
|
|
|
"Bullet3Dynamics",
|
|
|
|
"Bullet3Collision",
|
|
|
|
"Bullet3Geometry",
|
|
|
|
"Bullet3Common",
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
2017-04-27 04:31:01 +00:00
|
|
|
if _OPTIONS["audio"] then
|
|
|
|
files {"../TinyAudio/*.cpp"}
|
|
|
|
defines {"B3_ENABLE_TINY_AUDIO"}
|
|
|
|
|
|
|
|
if os.is("Windows") then
|
|
|
|
links {"winmm","Wsock32","dsound"}
|
|
|
|
defines {"WIN32","__WINDOWS_MM__","__WINDOWS_DS__"}
|
|
|
|
end
|
|
|
|
|
|
|
|
if os.is("Linux") then initX11()
|
|
|
|
defines {"__OS_LINUX__","__LINUX_ALSA__"}
|
|
|
|
links {"asound","pthread"}
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
if os.is("MacOSX") then
|
|
|
|
links{"Cocoa.framework"}
|
|
|
|
links{"CoreAudio.framework", "coreMIDI.framework", "Cocoa.framework"}
|
2017-04-27 19:07:31 +00:00
|
|
|
defines {"__OS_MACOSX__","__MACOSX_CORE__"}
|
2017-04-27 04:31:01 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2016-05-13 06:03:12 +00:00
|
|
|
if _OPTIONS["lua"] then
|
2016-04-14 15:51:20 +00:00
|
|
|
includedirs{"../ThirdPartyLibs/lua-5.2.3/src"}
|
|
|
|
links {"lua-5.2.3"}
|
|
|
|
defines {"ENABLE_LUA"}
|
|
|
|
files {"../LuaDemo/LuaPhysicsSetup.cpp"}
|
|
|
|
end
|
|
|
|
|
2016-04-28 19:28:04 +00:00
|
|
|
defines {"INCLUDE_CLOTH_DEMOS"}
|
|
|
|
|
2016-04-14 15:51:20 +00:00
|
|
|
files {
|
2016-07-25 05:22:42 +00:00
|
|
|
|
2016-04-14 15:51:20 +00:00
|
|
|
"main.cpp",
|
|
|
|
"ExampleEntries.cpp",
|
2016-07-25 05:22:42 +00:00
|
|
|
"../InverseKinematics/*",
|
2019-03-15 04:04:51 +00:00
|
|
|
"../BulletRobotics/FixJointBoxes.cpp",
|
|
|
|
"../BulletRobotics/BoxStack.cpp",
|
|
|
|
"../BulletRobotics/JointLimit.cpp",
|
|
|
|
"../TinyRenderer/geometry.cpp",
|
2016-05-13 06:03:12 +00:00
|
|
|
"../TinyRenderer/model.cpp",
|
|
|
|
"../TinyRenderer/tgaimage.cpp",
|
|
|
|
"../TinyRenderer/our_gl.cpp",
|
|
|
|
"../TinyRenderer/TinyRenderer.cpp",
|
2016-09-08 22:15:58 +00:00
|
|
|
"../SharedMemory/IKTrajectoryHelper.cpp",
|
|
|
|
"../SharedMemory/IKTrajectoryHelper.h",
|
2015-07-23 18:51:25 +00:00
|
|
|
"../SharedMemory/PhysicsClientC_API.cpp",
|
2015-07-27 20:28:47 +00:00
|
|
|
"../SharedMemory/PhysicsClientC_API.h",
|
2015-07-14 22:30:17 +00:00
|
|
|
"../SharedMemory/PhysicsServerExample.cpp",
|
2017-05-31 02:54:55 +00:00
|
|
|
"../SharedMemory/PhysicsServerExampleBullet2.cpp",
|
2015-07-14 22:30:17 +00:00
|
|
|
"../SharedMemory/PhysicsClientExample.cpp",
|
2015-05-28 23:05:24 +00:00
|
|
|
"../SharedMemory/PhysicsServer.cpp",
|
2015-11-23 04:50:32 +00:00
|
|
|
"../SharedMemory/PhysicsServerSharedMemory.cpp",
|
2015-09-25 05:50:34 +00:00
|
|
|
"../SharedMemory/PhysicsClientSharedMemory.cpp",
|
2016-11-04 20:15:10 +00:00
|
|
|
"../SharedMemory/PhysicsClientSharedMemory_C_API.cpp",
|
|
|
|
"../SharedMemory/PhysicsClientSharedMemory_C_API.h",
|
|
|
|
"../SharedMemory/PhysicsClientSharedMemory2.cpp",
|
|
|
|
"../SharedMemory/PhysicsClientSharedMemory2.h",
|
|
|
|
"../SharedMemory/PhysicsClientSharedMemory2_C_API.cpp",
|
|
|
|
"../SharedMemory/PhysicsClientSharedMemory2_C_API.h",
|
|
|
|
"../SharedMemory/SharedMemoryCommandProcessor.cpp",
|
|
|
|
"../SharedMemory/SharedMemoryCommandProcessor.h",
|
2016-03-07 22:56:16 +00:00
|
|
|
"../SharedMemory/SharedMemoryInProcessPhysicsC_API.cpp",
|
2019-06-14 21:34:56 +00:00
|
|
|
"../SharedMemory/GraphicsClientExample.cpp",
|
|
|
|
"../SharedMemory/GraphicsClientExample.h",
|
|
|
|
"../SharedMemory/GraphicsServerExample.cpp",
|
|
|
|
"../SharedMemory/GraphicsServerExample.h",
|
|
|
|
"../SharedMemory/GraphicsSharedMemoryBlock.h",
|
|
|
|
"../SharedMemory/GraphicsSharedMemoryCommands.h",
|
|
|
|
"../SharedMemory/GraphicsSharedMemoryPublic.h",
|
|
|
|
"../SharedMemory/RemoteGUIHelper.cpp",
|
|
|
|
"../SharedMemory/RemoteGUIHelper.h",
|
2015-05-28 23:05:24 +00:00
|
|
|
"../SharedMemory/PhysicsClient.cpp",
|
|
|
|
"../SharedMemory/PosixSharedMemory.cpp",
|
2015-06-04 22:37:18 +00:00
|
|
|
"../SharedMemory/Win32SharedMemory.cpp",
|
2016-03-10 22:36:46 +00:00
|
|
|
"../SharedMemory/InProcessMemory.cpp",
|
2015-11-23 04:50:32 +00:00
|
|
|
"../SharedMemory/PhysicsDirect.cpp",
|
|
|
|
"../SharedMemory/PhysicsDirect.h",
|
|
|
|
"../SharedMemory/PhysicsDirectC_API.cpp",
|
|
|
|
"../SharedMemory/PhysicsDirectC_API.h",
|
|
|
|
"../SharedMemory/PhysicsLoopBack.cpp",
|
|
|
|
"../SharedMemory/PhysicsLoopBack.h",
|
2015-11-23 16:00:42 +00:00
|
|
|
"../SharedMemory/PhysicsLoopBackC_API.cpp",
|
|
|
|
"../SharedMemory/PhysicsLoopBackC_API.h",
|
2015-11-23 04:50:32 +00:00
|
|
|
"../SharedMemory/PhysicsServerCommandProcessor.cpp",
|
|
|
|
"../SharedMemory/PhysicsServerCommandProcessor.h",
|
2017-09-23 02:17:57 +00:00
|
|
|
"../SharedMemory/b3PluginManager.cpp",
|
2018-07-27 13:48:24 +00:00
|
|
|
"../SharedMemory/plugins/collisionFilterPlugin/collisionFilterPlugin.cpp",
|
2018-01-17 20:48:48 +00:00
|
|
|
"../SharedMemory/plugins/tinyRendererPlugin/TinyRendererVisualShapeConverter.cpp",
|
|
|
|
"../SharedMemory/plugins/tinyRendererPlugin/tinyRendererPlugin.cpp",
|
2018-06-05 22:59:01 +00:00
|
|
|
"../SharedMemory/plugins/pdControlPlugin/pdControlPlugin.cpp",
|
|
|
|
"../SharedMemory/plugins/pdControlPlugin/pdControlPlugin.h",
|
2017-03-16 16:13:33 +00:00
|
|
|
"../SharedMemory/SharedMemoryCommands.h",
|
|
|
|
"../SharedMemory/SharedMemoryPublic.h",
|
2018-06-05 01:41:41 +00:00
|
|
|
"../SharedMemory/b3RobotSimulatorClientAPI_NoGUI.cpp",
|
|
|
|
"../SharedMemory/b3RobotSimulatorClientAPI_NoGUI.h",
|
|
|
|
"../SharedMemory/b3RobotSimulatorClientAPI_NoDirect.cpp",
|
|
|
|
"../SharedMemory/b3RobotSimulatorClientAPI_NoDirect.h",
|
2015-08-21 22:18:18 +00:00
|
|
|
"../MultiThreading/MultiThreadingExample.cpp",
|
|
|
|
"../MultiThreading/b3PosixThreadSupport.cpp",
|
|
|
|
"../MultiThreading/b3Win32ThreadSupport.cpp",
|
|
|
|
"../MultiThreading/b3ThreadSupportInterface.cpp",
|
2015-11-13 18:37:43 +00:00
|
|
|
"../InverseDynamics/InverseDynamicsExample.cpp",
|
|
|
|
"../InverseDynamics/InverseDynamicsExample.h",
|
2017-05-13 20:50:35 +00:00
|
|
|
"../RobotSimulator/b3RobotSimulatorClientAPI.cpp",
|
|
|
|
"../RobotSimulator/b3RobotSimulatorClientAPI.h",
|
2015-04-16 16:55:32 +00:00
|
|
|
"../BasicDemo/BasicExample.*",
|
2015-08-06 02:03:27 +00:00
|
|
|
"../Tutorial/*",
|
2016-07-11 19:50:32 +00:00
|
|
|
"../ExtendedTutorials/*",
|
2017-02-17 18:47:55 +00:00
|
|
|
"../Utils/RobotLoggingUtil.cpp",
|
|
|
|
"../Utils/RobotLoggingUtil.h",
|
2016-07-04 17:17:50 +00:00
|
|
|
"../Evolution/NN3DWalkers.cpp",
|
|
|
|
"../Evolution/NN3DWalkers.h",
|
2015-10-17 20:44:00 +00:00
|
|
|
"../Collision/*",
|
2016-07-11 07:26:40 +00:00
|
|
|
"../RoboticsLearning/*",
|
2015-10-17 20:44:00 +00:00
|
|
|
"../Collision/Internal/*",
|
2015-04-16 16:55:32 +00:00
|
|
|
"../Benchmarks/*",
|
2016-09-27 07:01:45 +00:00
|
|
|
"../MultiThreadedDemo/*",
|
2019-04-16 04:55:29 +00:00
|
|
|
"../Heightfield/HeightfieldExample.*",
|
2016-11-07 20:08:02 +00:00
|
|
|
"../CommonInterfaces/*.h",
|
2015-04-16 16:55:32 +00:00
|
|
|
"../ForkLift/ForkLiftDemo.*",
|
|
|
|
"../Importers/**",
|
2015-04-30 21:03:50 +00:00
|
|
|
"../../Extras/Serialize/BulletWorldImporter/*",
|
|
|
|
"../../Extras/Serialize/BulletFileLoader/*",
|
2015-04-16 16:55:32 +00:00
|
|
|
"../Planar2D/Planar2D.*",
|
|
|
|
"../RenderingExamples/*",
|
2015-04-28 01:35:07 +00:00
|
|
|
"../VoronoiFracture/*",
|
|
|
|
"../SoftDemo/*",
|
2019-08-02 22:02:15 +00:00
|
|
|
"../DeformableDemo/*",
|
2015-05-03 18:45:30 +00:00
|
|
|
"../RollingFrictionDemo/*",
|
2019-01-23 05:08:37 +00:00
|
|
|
"../rbdl/*",
|
2015-05-03 17:59:35 +00:00
|
|
|
"../FractureDemo/*",
|
|
|
|
"../DynamicControlDemo/*",
|
2015-04-23 22:41:17 +00:00
|
|
|
"../Constraints/*",
|
2015-04-29 01:12:49 +00:00
|
|
|
"../Vehicles/*",
|
2015-04-30 22:31:44 +00:00
|
|
|
"../Raycast/*",
|
2015-04-23 22:41:17 +00:00
|
|
|
"../MultiBody/MultiDofDemo.cpp",
|
2018-08-09 23:30:20 +00:00
|
|
|
"../MultiBody/SerialChains.cpp",
|
2015-04-23 22:41:17 +00:00
|
|
|
"../MultiBody/TestJointTorqueSetup.cpp",
|
2016-01-07 02:08:49 +00:00
|
|
|
"../MultiBody/Pendulum.cpp",
|
2016-02-23 02:40:00 +00:00
|
|
|
"../MultiBody/MultiBodySoftContact.cpp",
|
2015-07-07 06:00:46 +00:00
|
|
|
"../MultiBody/MultiBodyConstraintFeedback.cpp",
|
2015-07-17 06:58:36 +00:00
|
|
|
"../MultiBody/InvertedPendulumPDControl.cpp",
|
2016-02-23 02:40:00 +00:00
|
|
|
"../RigidBody/RigidBodySoftContact.cpp",
|
2018-09-11 06:18:34 +00:00
|
|
|
"../ThirdPartyLibs/stb_image/stb_image.cpp",
|
2015-04-16 16:55:32 +00:00
|
|
|
"../ThirdPartyLibs/Wavefront/tiny_obj_loader.*",
|
2016-07-25 05:22:42 +00:00
|
|
|
"../ThirdPartyLibs/BussIK/*",
|
2015-04-16 16:55:32 +00:00
|
|
|
"../GyroscopicDemo/GyroscopicSetup.cpp",
|
|
|
|
"../GyroscopicDemo/GyroscopicSetup.h",
|
2018-04-12 07:09:44 +00:00
|
|
|
"../ThirdPartyLibs/tinyxml2/tinyxml2.cpp",
|
|
|
|
"../ThirdPartyLibs/tinyxml2/tinyxml2.h",
|
2016-05-13 06:03:12 +00:00
|
|
|
}
|
2019-08-11 20:59:24 +00:00
|
|
|
|
|
|
|
if _OPTIONS["enable_stable_pd"] then
|
|
|
|
defines {"STATIC_LINK_SPD_PLUGIN"}
|
|
|
|
files {
|
|
|
|
"../SharedMemory/plugins/stablePDPlugin/SpAlg.cpp",
|
|
|
|
"../SharedMemory/plugins/stablePDPlugin/SpAlg.h",
|
|
|
|
"../SharedMemory/plugins/stablePDPlugin/Shape.cpp",
|
|
|
|
"../SharedMemory/plugins/stablePDPlugin/Shape.h",
|
|
|
|
"../SharedMemory/plugins/stablePDPlugin/RBDUtil.cpp",
|
|
|
|
"../SharedMemory/plugins/stablePDPlugin/RBDUtil.h",
|
|
|
|
"../SharedMemory/plugins/stablePDPlugin/RBDModel.cpp",
|
|
|
|
"../SharedMemory/plugins/stablePDPlugin/RBDModel.h",
|
|
|
|
"../SharedMemory/plugins/stablePDPlugin/MathUtil.cpp",
|
|
|
|
"../SharedMemory/plugins/stablePDPlugin/MathUtil.h",
|
|
|
|
"../SharedMemory/plugins/stablePDPlugin/KinTree.cpp",
|
|
|
|
"../SharedMemory/plugins/stablePDPlugin/KinTree.h",
|
|
|
|
"../SharedMemory/plugins/stablePDPlugin/BulletConversion.cpp",
|
|
|
|
"../SharedMemory/plugins/stablePDPlugin/BulletConversion.h",
|
|
|
|
}
|
|
|
|
end
|
2016-05-13 06:03:12 +00:00
|
|
|
if (hasCL and findOpenGL3()) then
|
2015-05-01 07:18:49 +00:00
|
|
|
files {
|
|
|
|
"../OpenCL/broadphase/*",
|
2015-05-02 04:34:27 +00:00
|
|
|
"../OpenCL/CommonOpenCL/*",
|
|
|
|
"../OpenCL/rigidbody/GpuConvexScene.cpp",
|
|
|
|
"../OpenCL/rigidbody/GpuRigidBodyDemo.cpp",
|
2015-05-01 07:18:49 +00:00
|
|
|
}
|
|
|
|
end
|
2017-10-25 17:00:45 +00:00
|
|
|
|
|
|
|
if (_OPTIONS["enable_static_vr_plugin"]) then
|
|
|
|
files {"../../examples/SharedMemory/plugins/vrSyncPlugin/vrSyncPlugin.cpp"}
|
|
|
|
end
|
|
|
|
|
2016-05-13 06:03:12 +00:00
|
|
|
if os.is("Linux") then
|
|
|
|
initX11()
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
project "BulletExampleBrowserLib"
|
|
|
|
|
|
|
|
hasCL = findOpenCL("clew")
|
|
|
|
|
|
|
|
if (hasCL) then
|
|
|
|
|
|
|
|
-- project ("App_Bullet3_OpenCL_Demos_" .. vendor)
|
|
|
|
|
|
|
|
initOpenCL("clew")
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
language "C++"
|
|
|
|
|
|
|
|
kind "StaticLib"
|
|
|
|
|
|
|
|
includedirs {
|
|
|
|
".",
|
|
|
|
"../../src",
|
|
|
|
"../ThirdPartyLibs",
|
|
|
|
}
|
2018-02-10 02:46:26 +00:00
|
|
|
|
|
|
|
if os.is("Linux") then
|
|
|
|
buildoptions{"-fPIC"}
|
|
|
|
end
|
2016-05-13 06:03:12 +00:00
|
|
|
|
|
|
|
if _OPTIONS["lua"] then
|
|
|
|
includedirs{"../ThirdPartyLibs/lua-5.2.3/src"}
|
|
|
|
links {"lua-5.2.3"}
|
|
|
|
defines {"ENABLE_LUA"}
|
|
|
|
files {"../LuaDemo/LuaPhysicsSetup.cpp"}
|
|
|
|
end
|
|
|
|
|
2017-04-27 04:31:01 +00:00
|
|
|
|
|
|
|
|
2016-05-13 06:03:12 +00:00
|
|
|
|
|
|
|
initOpenGL()
|
|
|
|
initGlew()
|
|
|
|
|
|
|
|
defines {"INCLUDE_CLOTH_DEMOS"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
files {
|
|
|
|
"OpenGLExampleBrowser.cpp",
|
|
|
|
"OpenGLGuiHelper.cpp",
|
|
|
|
"OpenGLExampleBrowser.cpp",
|
|
|
|
"../Utils/b3Clock.cpp",
|
2017-02-17 18:47:55 +00:00
|
|
|
"../Utils/b3Clock.h",
|
2017-01-30 04:59:47 +00:00
|
|
|
"../Utils/ChromeTraceUtil.cpp",
|
|
|
|
"../Utils/ChromeTraceUtil.h",
|
2016-05-13 06:03:12 +00:00
|
|
|
"*.h",
|
|
|
|
"GwenGUISupport/*.cpp",
|
|
|
|
"GwenGUISupport/*.h",
|
|
|
|
"CollisionShape2TriangleMesh.cpp",
|
|
|
|
"CollisionShape2TriangleMesh.h",
|
|
|
|
"../Utils/b3ResourcePath.*",
|
|
|
|
"GL_ShapeDrawer.cpp",
|
|
|
|
"InProcessExampleBrowser.cpp",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-04-16 16:55:32 +00:00
|
|
|
|
|
|
|
if os.is("Linux") then
|
|
|
|
initX11()
|
|
|
|
end
|
|
|
|
|
2015-05-03 17:59:35 +00:00
|
|
|
|
2016-03-16 01:29:32 +00:00
|
|
|
|