2015-04-16 16:55:32 +00:00
|
|
|
|
|
|
|
project "App_ExampleBrowser"
|
|
|
|
|
2015-05-01 07:18:49 +00:00
|
|
|
hasCL = findOpenCL("clew")
|
|
|
|
|
|
|
|
if (hasCL) then
|
|
|
|
|
|
|
|
-- project ("App_Bullet3_OpenCL_Demos_" .. vendor)
|
|
|
|
|
|
|
|
initOpenCL("clew")
|
|
|
|
|
|
|
|
end
|
|
|
|
|
2015-04-16 16:55:32 +00:00
|
|
|
language "C++"
|
|
|
|
|
|
|
|
kind "ConsoleApp"
|
|
|
|
|
|
|
|
includedirs {
|
|
|
|
".",
|
|
|
|
"../../src",
|
|
|
|
"../ThirdPartyLibs",
|
|
|
|
}
|
|
|
|
|
2015-05-13 16:17:59 +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
|
|
|
|
|
2015-04-16 16:55:32 +00:00
|
|
|
|
2015-04-28 01:35:07 +00:00
|
|
|
links{"gwen", "OpenGL_Window","BulletSoftBody", "BulletDynamics","BulletCollision","LinearMath","Bullet3Common"}
|
2015-04-16 16:55:32 +00:00
|
|
|
initOpenGL()
|
|
|
|
initGlew()
|
|
|
|
|
2015-05-01 07:18:49 +00:00
|
|
|
if (hasCL) then
|
|
|
|
links {
|
|
|
|
"Bullet3OpenCL_clew",
|
|
|
|
"Bullet3Dynamics",
|
|
|
|
"Bullet3Collision",
|
|
|
|
"Bullet3Geometry",
|
|
|
|
"Bullet3Common",
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
2015-04-28 01:35:07 +00:00
|
|
|
defines {"INCLUDE_CLOTH_DEMOS"}
|
|
|
|
|
2015-05-01 07:18:49 +00:00
|
|
|
|
|
|
|
|
2015-04-16 16:55:32 +00:00
|
|
|
files {
|
|
|
|
"**.cpp",
|
|
|
|
"**.h",
|
2015-05-28 23:05:24 +00:00
|
|
|
"../SharedMemory/PhysicsServer.cpp",
|
|
|
|
"../SharedMemory/PhysicsClient.cpp",
|
|
|
|
"../SharedMemory/PosixSharedMemory.cpp",
|
2015-06-04 22:37:18 +00:00
|
|
|
"../SharedMemory/Win32SharedMemory.cpp",
|
2015-04-16 16:55:32 +00:00
|
|
|
"../BasicDemo/BasicExample.*",
|
|
|
|
"../Benchmarks/*",
|
|
|
|
"../CommonInterfaces/*",
|
|
|
|
"../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",
|
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/*",
|
|
|
|
"../Utils/b3Clock.*",
|
|
|
|
"../GyroscopicDemo/GyroscopicSetup.cpp",
|
|
|
|
"../GyroscopicDemo/GyroscopicSetup.h",
|
|
|
|
"../ThirdPartyLibs/urdf/urdfdom/urdf_parser/src/pose.cpp",
|
|
|
|
"../ThirdPartyLibs/urdf/urdfdom/urdf_parser/src/model.cpp",
|
|
|
|
"../ThirdPartyLibs/urdf/urdfdom/urdf_parser/src/link.cpp",
|
|
|
|
"../ThirdPartyLibs/urdf/urdfdom/urdf_parser/src/joint.cpp",
|
|
|
|
"../ThirdPartyLibs/urdf/urdfdom/urdf_parser/include/urdf_parser/urdf_parser.h",
|
|
|
|
"../ThirdPartyLibs/urdf/urdfdom_headers/urdf_exception/include/urdf_exception/exception.h",
|
|
|
|
"../ThirdPartyLibs/urdf/urdfdom_headers/urdf_model/include/urdf_model/pose.h",
|
|
|
|
"../ThirdPartyLibs/urdf/urdfdom_headers/urdf_model/include/urdf_model/model.h",
|
|
|
|
"../ThirdPartyLibs/urdf/urdfdom_headers/urdf_model/include/urdf_model/link.h",
|
|
|
|
"../ThirdPartyLibs/urdf/urdfdom_headers/urdf_model/include/urdf_model/joint.h",
|
|
|
|
"../ThirdPartyLibs/tinyxml/tinystr.cpp",
|
|
|
|
"../ThirdPartyLibs/tinyxml/tinyxml.cpp",
|
|
|
|
"../ThirdPartyLibs/tinyxml/tinyxmlerror.cpp",
|
|
|
|
"../ThirdPartyLibs/tinyxml/tinyxmlparser.cpp",
|
|
|
|
"../ThirdPartyLibs/urdf/boost_replacement/lexical_cast.h",
|
|
|
|
"../ThirdPartyLibs/urdf/boost_replacement/shared_ptr.h",
|
|
|
|
"../ThirdPartyLibs/urdf/boost_replacement/printf_console.cpp",
|
|
|
|
"../ThirdPartyLibs/urdf/boost_replacement/printf_console.h",
|
|
|
|
"../ThirdPartyLibs/urdf/boost_replacement/string_split.cpp",
|
|
|
|
"../ThirdPartyLibs/urdf/boost_replacement/string_split.h",
|
|
|
|
|
|
|
|
}
|
2015-05-01 07:18:49 +00:00
|
|
|
|
2015-05-06 17:35:14 +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
|
2015-04-16 16:55:32 +00:00
|
|
|
|
|
|
|
if os.is("Linux") then
|
|
|
|
initX11()
|
|
|
|
end
|
|
|
|
|
|
|
|
if os.is("MacOSX") then
|
|
|
|
links{"Cocoa.framework"}
|
|
|
|
end
|
2015-05-01 07:18:49 +00:00
|
|
|
|
2015-05-03 17:59:35 +00:00
|
|
|
|