mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-14 13:50:04 +00:00
1d0f038aad
(for now, start the example browser in 'physics server', then compile using premake --python option, then run python in the bin folder (so it finds pybullet.so) and run the test.py script in examples/pybullet folder. The robotics shared memory C API is very suitable for this.
49 lines
996 B
Lua
49 lines
996 B
Lua
|
|
|
|
project ("pybullet")
|
|
|
|
language "C++"
|
|
kind "SharedLib"
|
|
targetsuffix ("")
|
|
targetprefix ("")
|
|
targetextension (".so")
|
|
includedirs {"../../src", "../../examples",
|
|
"../../examples/ThirdPartyLibs"}
|
|
defines {"PHYSICS_IN_PROCESS_EXAMPLE_BROWSER"}
|
|
hasCL = findOpenCL("clew")
|
|
|
|
links{"BulletExampleBrowserLib","gwen", "OpenGL_Window","BulletSoftBody", "BulletInverseDynamicsUtils", "BulletInverseDynamics", "BulletDynamics","BulletCollision","LinearMath","Bullet3Common"}
|
|
initOpenGL()
|
|
initGlew()
|
|
|
|
includedirs {
|
|
".",
|
|
"../../src",
|
|
"../ThirdPartyLibs",
|
|
}
|
|
|
|
|
|
if os.is("MacOSX") then
|
|
links{"Cocoa.framework","Python"}
|
|
end
|
|
|
|
if (hasCL) then
|
|
links {
|
|
"Bullet3OpenCL_clew",
|
|
"Bullet3Dynamics",
|
|
"Bullet3Collision",
|
|
"Bullet3Geometry",
|
|
"Bullet3Common",
|
|
}
|
|
end
|
|
|
|
files {
|
|
"pybullet.c",
|
|
"../../examples/ExampleBrowser/ExampleEntries.cpp",
|
|
}
|
|
if os.is("Linux") then
|
|
initX11()
|
|
end
|
|
|
|
|