option to build the BGE without python, uses existing python check (cmake and scons)
when python is disabled videotextures are not built.
This commit is contained in:
@@ -58,8 +58,14 @@ incs = ['.',
|
||||
# 'unix/GPU_System.cpp']
|
||||
# gp_common_env.Append ( CPPPATH = ['unix'])
|
||||
|
||||
incs += Split(env['BF_PYTHON_INC'])
|
||||
defs = []
|
||||
|
||||
if env['WITH_BF_PYTHON']:
|
||||
incs += ' ' + env['BF_PYTHON_INC']
|
||||
else:
|
||||
defs.append('DISABLE_PYTHON')
|
||||
|
||||
incs += Split(env['BF_PNG_INC'])
|
||||
incs += Split(env['BF_ZLIB_INC'])
|
||||
|
||||
env.BlenderLib (libname='gp_common', sources=source_files, includes=incs, defines = [], libtype=['player'], priority=[5], cxx_compileflags=env['BGE_CXXFLAGS'])
|
||||
env.BlenderLib (libname='gp_common', sources=source_files, includes=incs, defines = defs, libtype=['player'], priority=[5], cxx_compileflags=env['BGE_CXXFLAGS'])
|
||||
|
||||
Reference in New Issue
Block a user