2013-12-19 20:40:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function createDemos( demos, incdirs, linknames)
|
|
|
|
for _, name in ipairs(demos) do
|
|
|
|
|
|
|
|
project ( "App_" .. name )
|
|
|
|
|
|
|
|
kind "ConsoleApp"
|
|
|
|
targetdir ".."
|
2014-05-15 22:39:26 +00:00
|
|
|
|
|
|
|
configuration {}
|
2013-12-19 20:40:59 +00:00
|
|
|
|
|
|
|
includedirs {incdirs}
|
2014-05-15 22:39:26 +00:00
|
|
|
links {
|
|
|
|
linknames
|
|
|
|
}
|
|
|
|
|
2013-12-19 20:40:59 +00:00
|
|
|
configuration { "Windows" }
|
|
|
|
defines { "GLEW_STATIC"}
|
2014-05-16 05:55:54 +00:00
|
|
|
links { "opengl32","glu32","winmm"}
|
|
|
|
includedirs{ "Glut" }
|
|
|
|
libdirs {"Glut"}
|
|
|
|
files { "../build3/bullet.rc" }
|
2013-12-19 20:40:59 +00:00
|
|
|
|
|
|
|
configuration {"Windows", "x32"}
|
|
|
|
links {"glew32s","glut32"}
|
|
|
|
configuration {"Windows", "x64"}
|
|
|
|
links {"glew64s", "glut64"}
|
2014-05-16 05:55:54 +00:00
|
|
|
|
|
|
|
|
2013-12-19 20:40:59 +00:00
|
|
|
configuration {"MacOSX"}
|
|
|
|
--print "hello"
|
|
|
|
linkoptions { "-framework Carbon -framework OpenGL -framework AGL -framework Glut" }
|
|
|
|
|
|
|
|
configuration {"not Windows", "not MacOSX"}
|
2014-08-26 18:28:44 +00:00
|
|
|
links {"GL","GLU","glut","pthread"}
|
2013-12-19 20:40:59 +00:00
|
|
|
configuration{}
|
|
|
|
|
|
|
|
|
|
|
|
files {
|
|
|
|
"./" .. name .. "/*.cpp" ,
|
|
|
|
"./" .. name .. "/*.h"
|
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
-- "CharacterDemo", fixme: it includes BspDemo files
|
|
|
|
|
|
|
|
local localdemos = {
|
|
|
|
"BasicDemo",
|
|
|
|
"Box2dDemo",
|
|
|
|
"BspDemo",
|
|
|
|
"CcdPhysicsDemo",
|
|
|
|
"CollisionDemo",
|
|
|
|
"CollisionInterfaceDemo",
|
|
|
|
"ConcaveConvexcastDemo",
|
|
|
|
"ConcaveDemo",
|
|
|
|
"ConcaveRaycastDemo",
|
|
|
|
"ConstraintDemo",
|
|
|
|
"ContinuousConvexCollision",
|
|
|
|
"ConvexHullDistance",
|
|
|
|
"DynamicControlDemo",
|
|
|
|
"EPAPenDepthDemo",
|
|
|
|
"ForkLiftDemo",
|
|
|
|
"FeatherstoneMultiBodyDemo",
|
|
|
|
"FractureDemo",
|
|
|
|
"GenericJointDemo",
|
|
|
|
"GimpactTestDemo",
|
|
|
|
"GjkConvexCastDemo",
|
|
|
|
"GyroscopicDemo",
|
|
|
|
"InternalEdgeDemo",
|
|
|
|
"MovingConcaveDemo",
|
|
|
|
"MultiMaterialDemo",
|
|
|
|
"RagdollDemo",
|
|
|
|
"Raytracer",
|
|
|
|
"RaytestDemo",
|
|
|
|
"RollingFrictionDemo",
|
|
|
|
"SimplexDemo",
|
|
|
|
"SliderConstraintDemo",
|
|
|
|
"TerrainDemo",
|
|
|
|
"UserCollisionAlgorithm",
|
|
|
|
"VehicleDemo",
|
|
|
|
"VoronoiFractureDemo"
|
|
|
|
}
|
|
|
|
|
|
|
|
-- the following demos require custom include or link settings
|
|
|
|
|
|
|
|
createDemos({"HelloWorld"},{"../src"},{"BulletDynamics","BulletCollision","LinearMath"})
|
|
|
|
|
|
|
|
createDemos(localdemos,{"../src","OpenGL"},{"OpenGLSupport","BulletDynamics", "BulletCollision", "LinearMath"})
|
|
|
|
|
|
|
|
createDemos({"ConvexDecompositionDemo"},{"../Extras/HACD","../Extras/ConvexDecomposition","../src","OpenGL"},{"OpenGLSupport","BulletDynamics", "BulletCollision", "LinearMath","HACD","ConvexDecomposition"})
|
|
|
|
|
|
|
|
createDemos({"SoftDemo"},{"../src","OpenGL"}, {"OpenGLSupport","BulletSoftBody", "BulletDynamics", "BulletCollision", "LinearMath"})
|
|
|
|
|
|
|
|
createDemos({"SerializeDemo"},{"../Extras/Serialize/BulletFileLoader","../Extras/Serialize/BulletWorldImporter","../src","OpenGL"},{"OpenGLSupport","BulletWorldImporter", "BulletFileLoader", "BulletSoftBody", "BulletDynamics", "BulletCollision", "LinearMath"})
|
|
|
|
|
|
|
|
createDemos({"BulletXmlImportDemo"},{"../Extras/Serialize/BulletFileLoader","../Extras/Serialize/BulletXmlWorldImporter", "../Extras/Serialize/BulletWorldImporter","../src","OpenGL"},{"OpenGLSupport","BulletXmlWorldImporter","BulletWorldImporter", "BulletFileLoader", "BulletSoftBody", "BulletDynamics", "BulletCollision", "LinearMath"})
|
|
|
|
|
|
|
|
|
|
|
|
include "OpenGL"
|
|
|
|
|
|
|
|
|