Fix for bug #5758 and #17585: armatures with IK constraint did not
[blender.git] / intern / iksolver / SConscript
index 7b757868b9fe517d555de47c35df00f07df8d008..543ee46487ceb6c31a02e69d0477f930cfed15c9 100644 (file)
@@ -1,21 +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')
-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='#/lib/blender_IK', source=source_files)