* make BulletSoftBody own small lib to make sure bullet libs don't grow too large...
[blender-staging.git] / intern / iksolver / SConscript
index 0121024110e7e8b1cb024fe4a9e4780d34a2ca70..543ee46487ceb6c31a02e69d0477f930cfed15c9 100644 (file)
@@ -1,22 +1,9 @@
-iksolver_env = Environment()
+#!/usr/bin/python
+Import ('env')
 
-# Import the C flags set in the SConstruct file
-Import ('cflags')
-Import ('cxxflags')
-Import ('defines')
-Import ('user_options_dict')
-iksolver_env.Append (CCFLAGS = cflags)
-iksolver_env.Append (CXXFLAGS = cxxflags)
-iksolver_env.Append (CPPDEFINES = defines)
+sources = env.Glob('intern/*.cpp')
 
-source_files = ['intern/IK_QChain.cpp',
-                'intern/IK_QJacobianSolver.cpp',
-                'intern/IK_QSegment.cpp',
-                'intern/IK_Solver.cpp',
-                'intern/MT_ExpMap.cpp']
+incs = 'intern ../moto/include ../memutil'
 
-iksolver_env.Append (CPPPATH = ['intern',
-                                '../moto/include',
-                                '../memutil'])
+env.BlenderLib ('bf_IK', sources, Split(incs), [], libtype=['intern','player'], priority=[20,100] )
 
-iksolver_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_IK', source=source_files)