forked from bartvdbraak/blender
* Almost all library settings are now available in the config.opts user option file. * All platform variables had to be updated to make this possible. Things are much clearer now, but I only was able to test the changes on Linux. I've tried to update all other platform variables, but things are most likely to be broken. Please contact me how to resolve the issues. Note: Before running scons, remove your existing config.opts file to get all new options.
70 lines
3.5 KiB
Python
Executable File
70 lines
3.5 KiB
Python
Executable File
kx_converter_env = Environment()
|
|
|
|
# Import the C flags set in the SConstruct file
|
|
Import ('cflags')
|
|
Import ('cxxflags')
|
|
Import ('defines')
|
|
Import ('user_options_dict')
|
|
kx_converter_env.Append (CCFLAGS = cflags)
|
|
kx_converter_env.Append (CXXFLAGS = cxxflags)
|
|
kx_converter_env.Append (CPPDEFINES = defines)
|
|
|
|
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/include',
|
|
'#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)
|