2016-04-30 18:18:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
project ("pybullet")
|
|
|
|
language "C++"
|
|
|
|
kind "SharedLib"
|
2018-09-06 00:58:14 +00:00
|
|
|
|
|
|
|
if _OPTIONS["enable_grpc"] then
|
|
|
|
initGRPC()
|
|
|
|
|
|
|
|
files {
|
|
|
|
"../../examples/SharedMemory/PhysicsClientGRPC.cpp",
|
|
|
|
"../../examples/SharedMemory/PhysicsClientGRPC.h",
|
|
|
|
"../../examples/SharedMemory/PhysicsClientGRPC_C_API.cpp",
|
|
|
|
"../../examples/SharedMemory/PhysicsClientGRPC_C_API.h",
|
|
|
|
}
|
|
|
|
end
|
2016-09-27 15:33:53 +00:00
|
|
|
|
2016-04-30 18:18:54 +00:00
|
|
|
includedirs {"../../src", "../../examples",
|
|
|
|
"../../examples/ThirdPartyLibs"}
|
2019-08-08 04:57:05 +00:00
|
|
|
defines {"PHYSICS_IN_PROCESS_EXAMPLE_BROWSER"}
|
|
|
|
|
2019-02-01 05:31:26 +00:00
|
|
|
|
|
|
|
|
2016-04-30 18:18:54 +00:00
|
|
|
hasCL = findOpenCL("clew")
|
|
|
|
|
2019-01-25 18:14:54 +00:00
|
|
|
links{ "BulletExampleBrowserLib","gwen", "BulletFileLoader","BulletWorldImporter","OpenGL_Window","BulletSoftBody", "BulletInverseDynamicsUtils", "BulletInverseDynamics", "BulletDynamics","BulletCollision","LinearMath","BussIK", "Bullet3Common"}
|
2016-04-30 18:18:54 +00:00
|
|
|
initOpenGL()
|
|
|
|
initGlew()
|
|
|
|
|
|
|
|
includedirs {
|
|
|
|
".",
|
|
|
|
"../../src",
|
|
|
|
"../ThirdPartyLibs",
|
|
|
|
}
|
|
|
|
|
|
|
|
if os.is("MacOSX") then
|
2017-01-17 23:42:32 +00:00
|
|
|
-- targetextension {"so"}
|
2016-04-30 18:18:54 +00:00
|
|
|
links{"Cocoa.framework","Python"}
|
|
|
|
end
|
|
|
|
|
|
|
|
if (hasCL) then
|
|
|
|
links {
|
|
|
|
"Bullet3OpenCL_clew",
|
|
|
|
"Bullet3Dynamics",
|
|
|
|
"Bullet3Collision",
|
|
|
|
"Bullet3Geometry",
|
|
|
|
"Bullet3Common",
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
2016-11-04 20:15:10 +00:00
|
|
|
if not _OPTIONS["no-enet"] then
|
|
|
|
|
|
|
|
includedirs {"../../examples/ThirdPartyLibs/enet/include"}
|
|
|
|
|
|
|
|
if os.is("Windows") then
|
2017-01-17 23:42:32 +00:00
|
|
|
-- targetextension {"dylib"}
|
2016-11-04 20:15:10 +00:00
|
|
|
defines { "WIN32" }
|
|
|
|
links {"Ws2_32","Winmm"}
|
|
|
|
end
|
|
|
|
if os.is("Linux") then
|
|
|
|
end
|
|
|
|
if os.is("MacOSX") then
|
|
|
|
end
|
|
|
|
|
|
|
|
links {"enet"}
|
|
|
|
|
|
|
|
files {
|
|
|
|
"../../examples/SharedMemory/PhysicsClientUDP.cpp",
|
|
|
|
"../../examples/SharedMemory/PhysicsClientUDP.h",
|
|
|
|
"../../examples/SharedMemory/PhysicsClientUDP_C_API.cpp",
|
|
|
|
"../../examples/SharedMemory/PhysicsClientUDP_C_API.h",
|
|
|
|
}
|
|
|
|
defines {"BT_ENABLE_ENET"}
|
|
|
|
end
|
|
|
|
|
2017-02-21 00:46:25 +00:00
|
|
|
if not _OPTIONS["no-clsocket"] then
|
|
|
|
|
|
|
|
includedirs {"../../examples/ThirdPartyLibs/clsocket/src"}
|
|
|
|
|
|
|
|
if os.is("Windows") then
|
|
|
|
defines { "WIN32" }
|
|
|
|
links {"Ws2_32","Winmm"}
|
|
|
|
end
|
|
|
|
if os.is("Linux") then
|
|
|
|
defines {"_LINUX"}
|
|
|
|
end
|
|
|
|
if os.is("MacOSX") then
|
|
|
|
defines {"_DARWIN"}
|
|
|
|
end
|
|
|
|
|
|
|
|
links {"clsocket"}
|
|
|
|
|
|
|
|
files {
|
|
|
|
"../../examples/SharedMemory/PhysicsClientTCP.cpp",
|
|
|
|
"../../examples/SharedMemory/PhysicsClientTCP.h",
|
|
|
|
"../../examples/SharedMemory/PhysicsClientTCP_C_API.cpp",
|
|
|
|
"../../examples/SharedMemory/PhysicsClientTCP_C_API.h",
|
|
|
|
}
|
|
|
|
defines {"BT_ENABLE_CLSOCKET"}
|
|
|
|
end
|
|
|
|
|
2016-11-04 20:15:10 +00:00
|
|
|
|
2016-04-30 18:18:54 +00:00
|
|
|
files {
|
|
|
|
"pybullet.c",
|
2016-09-08 22:15:58 +00:00
|
|
|
"../../examples/SharedMemory/IKTrajectoryHelper.cpp",
|
|
|
|
"../../examples/SharedMemory/IKTrajectoryHelper.h",
|
2016-08-10 01:40:12 +00:00
|
|
|
"../../examples/ExampleBrowser/InProcessExampleBrowser.cpp",
|
2018-01-17 20:48:48 +00:00
|
|
|
"../../examples/SharedMemory/plugins/tinyRendererPlugin/tinyRendererPlugin.cpp",
|
|
|
|
"../../examples/SharedMemory/plugins/tinyRendererPlugin/tinyRendererPlugin.h",
|
|
|
|
"../../examples/SharedMemory/plugins/tinyRendererPlugin/TinyRendererVisualShapeConverter.cpp",
|
|
|
|
"../../examples/SharedMemory/plugins/tinyRendererPlugin/TinyRendererVisualShapeConverter.h",
|
2016-08-10 01:40:12 +00:00
|
|
|
"../../examples/OpenGLWindow/SimpleCamera.cpp",
|
|
|
|
"../../examples/OpenGLWindow/SimpleCamera.h",
|
|
|
|
"../../examples/TinyRenderer/geometry.cpp",
|
|
|
|
"../../examples/TinyRenderer/model.cpp",
|
|
|
|
"../../examples/TinyRenderer/tgaimage.cpp",
|
|
|
|
"../../examples/TinyRenderer/our_gl.cpp",
|
|
|
|
"../../examples/TinyRenderer/TinyRenderer.cpp",
|
|
|
|
"../../examples/SharedMemory/InProcessMemory.cpp",
|
2018-06-05 22:59:01 +00:00
|
|
|
"../../examples/SharedMemory/b3RobotSimulatorClientAPI_NoDirect.cpp",
|
|
|
|
"../../examples/SharedMemory/b3RobotSimulatorClientAPI_NoDirect.h",
|
2016-08-10 01:40:12 +00:00
|
|
|
"../../examples/SharedMemory/PhysicsClient.cpp",
|
|
|
|
"../../examples/SharedMemory/PhysicsClient.h",
|
|
|
|
"../../examples/SharedMemory/PhysicsServer.cpp",
|
|
|
|
"../../examples/SharedMemory/PhysicsServer.h",
|
|
|
|
"../../examples/SharedMemory/PhysicsServerExample.cpp",
|
2017-05-31 02:54:55 +00:00
|
|
|
"../../examples/SharedMemory/PhysicsServerExampleBullet2.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",
|
2016-08-10 01:40:12 +00:00
|
|
|
"../../examples/SharedMemory/SharedMemoryInProcessPhysicsC_API.cpp",
|
|
|
|
"../../examples/SharedMemory/PhysicsServerSharedMemory.cpp",
|
|
|
|
"../../examples/SharedMemory/PhysicsServerSharedMemory.h",
|
|
|
|
"../../examples/SharedMemory/PhysicsDirect.cpp",
|
|
|
|
"../../examples/SharedMemory/PhysicsDirect.h",
|
|
|
|
"../../examples/SharedMemory/PhysicsDirectC_API.cpp",
|
|
|
|
"../../examples/SharedMemory/PhysicsDirectC_API.h",
|
|
|
|
"../../examples/SharedMemory/PhysicsServerCommandProcessor.cpp",
|
|
|
|
"../../examples/SharedMemory/PhysicsServerCommandProcessor.h",
|
2017-09-23 02:17:57 +00:00
|
|
|
"../../examples/SharedMemory/b3PluginManager.cpp",
|
|
|
|
"../../examples/SharedMemory/b3PluginManager.h",
|
2016-08-10 01:40:12 +00:00
|
|
|
"../../examples/SharedMemory/PhysicsClientSharedMemory.cpp",
|
|
|
|
"../../examples/SharedMemory/PhysicsClientSharedMemory.h",
|
2016-11-04 20:15:10 +00:00
|
|
|
"../../examples/SharedMemory/PhysicsClientSharedMemory_C_API.cpp",
|
|
|
|
"../../examples/SharedMemory/PhysicsClientSharedMemory_C_API.h",
|
2016-08-10 01:40:12 +00:00
|
|
|
"../../examples/SharedMemory/PhysicsClientC_API.cpp",
|
|
|
|
"../../examples/SharedMemory/PhysicsClientC_API.h",
|
|
|
|
"../../examples/SharedMemory/Win32SharedMemory.cpp",
|
|
|
|
"../../examples/SharedMemory/Win32SharedMemory.h",
|
|
|
|
"../../examples/SharedMemory/PosixSharedMemory.cpp",
|
|
|
|
"../../examples/SharedMemory/PosixSharedMemory.h",
|
2017-03-16 16:13:33 +00:00
|
|
|
"../../examples/SharedMemory/SharedMemoryCommands.h",
|
|
|
|
"../../examples/SharedMemory/SharedMemoryPublic.h",
|
2016-08-10 01:40:12 +00:00
|
|
|
"../../examples/Utils/b3ResourcePath.cpp",
|
|
|
|
"../../examples/Utils/b3ResourcePath.h",
|
2017-02-17 18:47:55 +00:00
|
|
|
"../../examples/Utils/RobotLoggingUtil.cpp",
|
|
|
|
"../../examples/Utils/RobotLoggingUtil.h",
|
2018-04-12 07:09:44 +00:00
|
|
|
"../../examples/ThirdPartyLibs/tinyxml2/tinyxml2.cpp",
|
2016-08-10 01:40:12 +00:00
|
|
|
"../../examples/ThirdPartyLibs/Wavefront/tiny_obj_loader.cpp",
|
|
|
|
"../../examples/ThirdPartyLibs/Wavefront/tiny_obj_loader.h",
|
|
|
|
"../../examples/ThirdPartyLibs/stb_image/stb_image.cpp",
|
2018-09-11 06:18:34 +00:00
|
|
|
"../../examples/ThirdPartyLibs/stb_image/stb_image_write.cpp",
|
2016-08-10 01:40:12 +00:00
|
|
|
"../../examples/Importers/ImportColladaDemo/LoadMeshFromCollada.cpp",
|
|
|
|
"../../examples/Importers/ImportObjDemo/LoadMeshFromObj.cpp",
|
|
|
|
"../../examples/Importers/ImportObjDemo/Wavefront2GLInstanceGraphicsShape.cpp",
|
2016-12-31 22:43:15 +00:00
|
|
|
"../../examples/Importers/ImportMJCFDemo/BulletMJCFImporter.cpp",
|
2016-08-10 01:40:12 +00:00
|
|
|
"../../examples/Importers/ImportURDFDemo/BulletUrdfImporter.cpp",
|
|
|
|
"../../examples/Importers/ImportURDFDemo/MyMultiBodyCreator.cpp",
|
|
|
|
"../../examples/Importers/ImportURDFDemo/URDF2Bullet.cpp",
|
|
|
|
"../../examples/Importers/ImportURDFDemo/UrdfParser.cpp",
|
|
|
|
"../../examples/Importers/ImportURDFDemo/urdfStringSplit.cpp",
|
|
|
|
"../../examples/Importers/ImportMeshUtility/b3ImportMeshUtility.cpp",
|
|
|
|
"../../examples/MultiThreading/b3PosixThreadSupport.cpp",
|
|
|
|
"../../examples/MultiThreading/b3Win32ThreadSupport.cpp",
|
|
|
|
"../../examples/MultiThreading/b3ThreadSupportInterface.cpp",
|
2018-07-30 15:53:37 +00:00
|
|
|
"../../examples/SharedMemory/plugins/collisionFilterPlugin/collisionFilterPlugin.cpp",
|
2018-06-05 22:59:01 +00:00
|
|
|
"../../examples/SharedMemory/plugins/pdControlPlugin/pdControlPlugin.cpp",
|
|
|
|
"../../examples/SharedMemory/plugins/pdControlPlugin/pdControlPlugin.h",
|
2019-08-09 11:48:49 +00:00
|
|
|
}
|
2019-08-08 04:57:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if _OPTIONS["enable_stable_pd"] then
|
|
|
|
defines {"STATIC_LINK_SPD_PLUGIN"}
|
|
|
|
files {
|
2019-02-01 05:31:26 +00:00
|
|
|
"../../examples/SharedMemory/plugins/stablePDPlugin/SpAlg.cpp",
|
|
|
|
"../../examples/SharedMemory/plugins/stablePDPlugin/SpAlg.h",
|
|
|
|
"../../examples/SharedMemory/plugins/stablePDPlugin/Shape.cpp",
|
|
|
|
"../../examples/SharedMemory/plugins/stablePDPlugin/Shape.h",
|
|
|
|
"../../examples/SharedMemory/plugins/stablePDPlugin/RBDUtil.cpp",
|
|
|
|
"../../examples/SharedMemory/plugins/stablePDPlugin/RBDUtil.h",
|
|
|
|
"../../examples/SharedMemory/plugins/stablePDPlugin/RBDModel.cpp",
|
|
|
|
"../../examples/SharedMemory/plugins/stablePDPlugin/RBDModel.h",
|
|
|
|
"../../examples/SharedMemory/plugins/stablePDPlugin/MathUtil.cpp",
|
|
|
|
"../../examples/SharedMemory/plugins/stablePDPlugin/MathUtil.h",
|
|
|
|
"../../examples/SharedMemory/plugins/stablePDPlugin/KinTree.cpp",
|
|
|
|
"../../examples/SharedMemory/plugins/stablePDPlugin/KinTree.h",
|
|
|
|
"../../examples/SharedMemory/plugins/stablePDPlugin/BulletConversion.cpp",
|
|
|
|
"../../examples/SharedMemory/plugins/stablePDPlugin/BulletConversion.h",
|
2016-04-30 18:18:54 +00:00
|
|
|
}
|
2019-08-08 04:57:05 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
2019-01-25 18:14:54 +00:00
|
|
|
if _OPTIONS["enable_physx"] then
|
|
|
|
defines {"BT_ENABLE_PHYSX","PX_PHYSX_STATIC_LIB", "PX_FOUNDATION_DLL=0"}
|
|
|
|
|
|
|
|
configuration {"x64", "debug"}
|
|
|
|
defines {"_DEBUG"}
|
|
|
|
configuration {"x86", "debug"}
|
|
|
|
defines {"_DEBUG"}
|
|
|
|
configuration {"x64", "release"}
|
|
|
|
defines {"NDEBUG"}
|
|
|
|
configuration {"x86", "release"}
|
|
|
|
defines {"NDEBUG"}
|
|
|
|
configuration{}
|
|
|
|
|
|
|
|
includedirs {
|
|
|
|
".",
|
|
|
|
"../../src/PhysX/physx/include",
|
|
|
|
"../../src/PhysX/physx/include/characterkinematic",
|
|
|
|
"../../src/PhysX/physx/include/common",
|
|
|
|
"../../src/PhysX/physx/include/cooking",
|
|
|
|
"../../src/PhysX/physx/include/extensions",
|
|
|
|
"../../src/PhysX/physx/include/geometry",
|
|
|
|
"../../src/PhysX/physx/include/geomutils",
|
|
|
|
"../../src/PhysX/physx/include/vehicle",
|
|
|
|
"../../src/PhysX/pxshared/include",
|
|
|
|
}
|
|
|
|
links {
|
|
|
|
"PhysX",
|
|
|
|
}
|
2017-10-25 17:00:45 +00:00
|
|
|
|
2019-01-25 18:14:54 +00:00
|
|
|
files {
|
|
|
|
"../../examples/SharedMemory/plugins/eglPlugin/eglRendererPlugin.cpp",
|
|
|
|
"../../examples/SharedMemory/plugins/eglPlugin/eglRendererPlugin.h",
|
|
|
|
"../../examples/SharedMemory/plugins/eglPlugin/eglRendererVisualShapeConverter.cpp",
|
|
|
|
"../../examples/SharedMemory/plugins/eglPlugin/eglRendererVisualShapeConverter.h",
|
|
|
|
"../../examples/SharedMemory/physx/PhysXC_API.cpp",
|
|
|
|
"../../examples/SharedMemory/physx/PhysXServerCommandProcessor.cpp",
|
|
|
|
"../../examples/SharedMemory/physx/PhysXUrdfImporter.cpp",
|
|
|
|
"../../examples/SharedMemory/physx/URDF2PhysX.cpp",
|
|
|
|
"../../examples/SharedMemory/physx/PhysXC_API.h",
|
|
|
|
"../../examples/SharedMemory/physx/PhysXServerCommandProcessor.h",
|
|
|
|
"../../examples/SharedMemory/physx/PhysXUrdfImporter.h",
|
|
|
|
"../../examples/SharedMemory/physx/URDF2PhysX.h",
|
|
|
|
"../../examples/SharedMemory/physx/PhysXUserData.h",
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
2017-10-25 17:20:34 +00:00
|
|
|
if (_OPTIONS["enable_static_vr_plugin"]) then
|
2017-10-25 17:00:45 +00:00
|
|
|
files {"../../examples/SharedMemory/plugins/vrSyncPlugin/vrSyncPlugin.cpp"}
|
|
|
|
end
|
|
|
|
|
2016-08-10 01:40:12 +00:00
|
|
|
|
|
|
|
includedirs {
|
|
|
|
_OPTIONS["python_include_dir"],
|
|
|
|
}
|
|
|
|
libdirs {
|
|
|
|
_OPTIONS["python_lib_dir"]
|
|
|
|
}
|
|
|
|
|
2016-04-30 18:18:54 +00:00
|
|
|
if os.is("Linux") then
|
|
|
|
initX11()
|
|
|
|
end
|
|
|
|
|
|
|
|
|