mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-14 13:50:04 +00:00
709a55d5ab
requires shared library build: cmake .. -DBUILD_SHARED_LIBS=on then create a symbolic link from libpybullet.so to pybullet.so
50 lines
1.0 KiB
Lua
50 lines
1.0 KiB
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",
|
|
"/usr/include/python2.7",
|
|
}
|
|
|
|
|
|
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
|
|
|
|
|