forked from bartvdbraak/blender
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:
parent
489db9994d
commit
7e57823c47
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user