Fix for bug #5758 and #17585: armatures with IK constraint did not
[blender.git] / intern / iksolver / SConscript
index 7a8b60b3c0ef86faf9b7f5a4c411f9528493767e..543ee46487ceb6c31a02e69d0477f930cfed15c9 100644 (file)
@@ -1,16 +1,9 @@
-Import ('user_options_dict')
-Import ('library_env')
+#!/usr/bin/python
+Import ('env')
 
-iksolver_env = library_env.Copy ()
+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)