fb4871c919
This is a bullet wrapper that allows Godot to use Bullet physics and benefit about all features. Also it support all specific Godot physics functionality like multi shape body, areas, RayShape, etc.. It improve the Joints, Trimesh shape, and add support to soft body even if Godot is not yet ready to it.
34 lines
773 B
Python
34 lines
773 B
Python
#!/usr/bin/env python
|
|
|
|
Import('env')
|
|
|
|
thirdparty_dir = "#thirdparty/bullet/"
|
|
thirdparty_lib = thirdparty_dir + "Win64/lib/"
|
|
|
|
bullet_libs = [
|
|
"Bullet2FileLoader",
|
|
"Bullet3Collision",
|
|
"Bullet3Common",
|
|
"Bullet3Dynamics",
|
|
"Bullet3Geometry",
|
|
"Bullet3OpenCL_clew",
|
|
"BulletCollision",
|
|
"BulletDynamics",
|
|
"BulletInverseDynamics",
|
|
"BulletSoftBody",
|
|
"LinearMath"
|
|
]
|
|
|
|
thirdparty_src = thirdparty_dir + "src/"
|
|
# include headers
|
|
env.Append(CPPPATH=[thirdparty_src])
|
|
|
|
# lib
|
|
env.Append(LIBPATH=[thirdparty_dir + "/Win64/lib/"])
|
|
|
|
bullet_libs = [file+'.lib' for file in bullet_libs]
|
|
# LIBS doesn't work in windows
|
|
env.Append(LINKFLAGS=bullet_libs)
|
|
|
|
env.add_source_files(env.modules_sources, "*.cpp")
|