def get_bullet_library(self, use_cmake):
    if use_cmake:
        configure_commands = ['cmake', '.']
        configure_args = ['-DBUILD_DEMOS=OFF', '-DBUILD_EXTRAS=OFF', '-DUSE_GLUT=OFF']
        generated_libs = [os.path.join('src', 'BulletDynamics', 'libBulletDynamics.a'), os.path.join('src', 'BulletCollision', 'libBulletCollision.a'), os.path.join('src', 'LinearMath', 'libLinearMath.a')]
    else:
        configure_commands = ['sh', './configure']
        configure_args = ['--disable-shared', '--host=i686-pc-linux-gnu', '--disable-demos', '--disable-dependency-tracking']
        generated_libs = [os.path.join('src', '.libs', 'libBulletDynamics.a'), os.path.join('src', '.libs', 'libBulletCollision.a'), os.path.join('src', '.libs', 'libLinearMath.a')]
    return self.get_library(os.path.join('third_party', 'bullet'), generated_libs, configure=configure_commands, configure_args=configure_args, cache_name_extra=configure_commands[0])
def get_bullet_library(self, use_cmake):
    if use_cmake:
        configure_commands = ['cmake', '.']
        configure_args = ['-DBUILD_DEMOS=OFF', '-DBUILD_EXTRAS=OFF', '-DUSE_GLUT=OFF']
        generated_libs = [os.path.join('src', 'BulletDynamics', 'libBulletDynamics.a'), os.path.join('src', 'BulletCollision', 'libBulletCollision.a'), os.path.join('src', 'LinearMath', 'libLinearMath.a')]
    else:
        configure_commands = ['sh', './configure']
        configure_args = ['--disable-shared', '--host=i686-pc-linux-gnu', '--disable-demos', '--disable-dependency-tracking']
        generated_libs = [os.path.join('src', '.libs', 'libBulletDynamics.a'), os.path.join('src', '.libs', 'libBulletCollision.a'), os.path.join('src', '.libs', 'libLinearMath.a')]
    return self.get_library(os.path.join('third_party', 'bullet'), generated_libs, configure=configure_commands, configure_args=configure_args, cache_name_extra=configure_commands[0])