Module: Ruby::Bullet::Static

Defined in:
lib/ruby-bullet.rb

Class Method Summary collapse

Class Method Details

.get_deps_inc_pathObject



14
15
16
# File 'lib/ruby-bullet.rb', line 14

def self.get_deps_inc_path
  "#{get_top_path()}/deps/include/"
end

.get_deps_lib_pathObject



10
11
12
# File 'lib/ruby-bullet.rb', line 10

def self.get_deps_lib_path
  "#{get_top_path}/deps/lib"
end

.get_inc_flagsObject



18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/ruby-bullet.rb', line 18

def self.get_inc_flags
  " -I#{get_top_path}/deps/include/bullet/ " +     
    " -I#{get_top_path}/deps/include/bullet/LinearMath/ " + 
    " -I#{get_top_path}/deps/include/bullet/BulletCollision/CollisionDispatch/ " + 
    " -I#{get_top_path}/deps/include/bullet/BulletCollision/BroadphaseCollision/ " + 
    " -I#{get_top_path}/deps/include/bullet/BulletCollision/NarrowPhaseCollision/ " +
    " -I#{get_top_path}/deps/include/bullet/BulletCollision/CollisionShapes/ " + 
    " -I#{get_top_path}/deps/include/bullet/BulletCollision/Gimpact/ " + 
    " -I#{get_top_path}/deps/include/bullet/BulletDynamics/ConstraintSolver/ " + 
    " -I#{get_top_path}/deps/include/bullet/BulletDynamics/Dynamics/ " +
    " -I#{get_top_path}/deps/include/bullet/BulletDynamics/Vehicle/ " + 
    " -I#{get_top_path}/deps/include/bullet/BulletDynamics/Character/ " + 
    " -I#{get_top_path}/deps/include/bullet/BulletSoftBody/ "
end

.get_lib_flagsObject



33
34
35
# File 'lib/ruby-bullet.rb', line 33

def self.get_lib_flags
  "-L#{get_top_path}/deps/lib -lBulletDynamics -lBulletCollision -lBulletSoftBody -lLinearMath"
end

.get_top_pathObject



6
7
8
# File 'lib/ruby-bullet.rb', line 6

def self.get_top_path
  File.dirname(File.dirname(File.expand_path(__FILE__)))
end