2016-04-14 15:51:20 +00:00
|
|
|
project "App_BulletExampleBrowser"
|
|
|
|
|
|
|
|
language "C++"
|
|
|
|
|
|
|
|
kind "ConsoleApp"
|
|
|
|
|
|
|
|
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
|
|
|
|
2016-09-08 22:15:58 +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",
|
|
|
|
"../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/*",
|
2016-05-13 06:03:12 +00:00
|
|
|
"../TinyRenderer/geometry.cpp",
|
|
|
|
"../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",
|
|
|
|
"../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",
|
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",
|
2016-06-01 05:55:13 +00:00
|
|
|
"../SharedMemory/TinyRendererVisualShapeConverter.cpp",
|
|
|
|
"../SharedMemory/TinyRendererVisualShapeConverter.h",
|
2017-03-16 16:13:33 +00:00
|
|
|
"../SharedMemory/SharedMemoryCommands.h",
|
|
|
|
"../SharedMemory/SharedMemoryPublic.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/*",
|
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/*",
|
2015-05-03 18:45:30 +00:00
|
|
|
"../RollingFrictionDemo/*",
|
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",
|
|
|
|
"../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",
|
2015-05-02 04:34:27 +00:00
|
|
|
"../ThirdPartyLibs/stb_image/*",
|
2015-04-16 16:55:32 +00:00
|
|
|
"../ThirdPartyLibs/Wavefront/tiny_obj_loader.*",
|
|
|
|
"../ThirdPartyLibs/tinyxml/*",
|
2016-07-25 05:22:42 +00:00
|
|
|
"../ThirdPartyLibs/BussIK/*",
|
2015-04-16 16:55:32 +00:00
|
|
|
"../GyroscopicDemo/GyroscopicSetup.cpp",
|
|
|
|
"../GyroscopicDemo/GyroscopicSetup.h",
|
2016-05-13 06:03:12 +00:00
|
|
|
"../ThirdPartyLibs/tinyxml/tinystr.cpp",
|
|
|
|
"../ThirdPartyLibs/tinyxml/tinyxml.cpp",
|
|
|
|
"../ThirdPartyLibs/tinyxml/tinyxmlerror.cpp",
|
|
|
|
"../ThirdPartyLibs/tinyxml/tinyxmlparser.cpp",
|
|
|
|
}
|
|
|
|
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
|
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",
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|