#!/usr/bin/python
Import ('user_options_dict')
Import ('library_env')

kx_converter_env = library_env.Copy ()

source_files = ['KX_IpoConvert.cpp',
                'KX_ConvertSensors.cpp',
                'KX_ConvertProperties.cpp',
                'KX_ConvertControllers.cpp',
                'KX_ConvertActuators.cpp',
                'KX_BlenderSceneConverter.cpp',
                'KX_BlenderScalarInterpolator.cpp',
                'BlenderWorldInfo.cpp',
                'BL_SkinMeshObject.cpp',
                'BL_SkinDeformer.cpp',
                'BL_MeshDeformer.cpp',
                'BL_DeformableGameObject.cpp',
                'BL_BlenderDataConversion.cpp',
                'BL_ArmatureObject.cpp',
                'BL_ActionActuator.cpp'
                ]

kx_converter_env.Append (CPPPATH = ['.',
                                    '#source/kernel/gen_system',
                                    '#intern/string',
                                    '#intern/guardedalloc',
                                    '#source/gameengine/Rasterizer/RAS_OpenGLRasterizer',
                                    '#intern/bmfont',
                                    '#intern/SoundSystem',
                                    '#intern/SoundSystem/include',
                                    '#intern/SoundSystem/openal',
                                    '#intern/SoundSystem/dummy',
                                    '#intern/SoundSystem/intern',
                                    '#source/gameengine/Converter',
                                    '#source/gameengine/BlenderRoutines',
                                    '#source/blender/imbuf',
                                    '#intern/moto/include',
                                    '#source/gameengine/Ketsji',
                                    '#source/gameengine/Ketsji/KXNetwork',
                                    '#source/blender/blenlib',
                                    '#source/blender/blenkernel',
                                    '#source/blender',
                                    '#source/blender/include',
                                    '#source/blender/makesdna',
                                    '#source/gameengine/Rasterizer',
                                    '#source/gameengine/GameLogic',
                                    '#source/gameengine/Expressions',
                                    '#source/gameengine/Network',
                                    '#source/gameengine/SceneGraph',
                                    '#source/gameengine/Physics/common',
                                    '#source/gameengine/Physics/BlOde',
                                    '#source/gameengine/Physics/Dummy',
                                    '#source/gameengine/Physics/Sumo',
                                    '#source/gameengine/Physics/Sumo/Fuzzics/include',
                                    '#source/gameengine/Network/LoopBackNetwork',
                                    '#source/blender/misc',
                                    '#source/blender/blenloader'
                                    ])

kx_converter_env.Append (CPPPATH = user_options_dict['PYTHON_INCLUDE'])
kx_converter_env.Append (CPPPATH = user_options_dict['SOLID_INCLUDE'])

kx_converter_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/KX_converter', source=source_files)
