build generic modules in their own lib, compiling without the game engine would fail because bpy_internal_import.c wasnt being included.

(scons only)
This commit is contained in:
Campbell Barton 2009-06-18 04:36:45 +00:00
parent 489db9994d
commit 7e57823c47
2 changed files with 3 additions and 25 deletions

@ -16,6 +16,6 @@ if env['OURPLATFORM'] in ('win32-mingw', 'win32-vc') and env['BF_DEBUG']:
env.BlenderLib( libname = 'bf_python', sources = Split(sources), includes = Split(incs), defines = defs, libtype = ['core'], priority = [140])
# generic XXX todo, BGE currently uses these externally
# sources = env.Glob('generic/*.c')
# env.BlenderLib( libname = 'bf_gen_python', sources = Split(sources), includes = Split(incs), defines = defs, libtype = ['core'], priority = [140])
# generic
sources = env.Glob('generic/*.c')
env.BlenderLib( libname = 'bf_gen_python', sources = Split(sources), includes = Split(incs), defines = defs, libtype = ['core'], priority = [361]) # ketsji is 360

@ -6,28 +6,6 @@ Import ('env')
sources = env.Glob('*.cpp')
defs = ''
# Mathutils C files.
if env['BF_PYTHON_VERSION'].startswith('3'):
# TODO - py3 support
sources.extend([\
'#source/blender/python/generic/Mathutils.c',\
'#source/blender/python/generic/Geometry.c',\
'#source/blender/python/generic/euler.c',\
'#source/blender/python/generic/matrix.c',\
'#source/blender/python/generic/quat.c',\
'#source/blender/python/generic/vector.c',\
])
sources.extend([\
'#source/blender/python/generic/BGL.c'
])
sources.extend([\
'#source/blender/python/generic/bpy_internal_import.c'
])
incs = '. #source/blender/python/generic' # Only for Mathutils! and bpy_internal_import.h, be very careful
incs += ' #source/kernel/gen_system #intern/string #intern/guardedalloc'