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:
@@ -48,7 +48,6 @@ SET(INC
|
||||
../../../intern/moto/include
|
||||
../../../intern/guardedalloc
|
||||
../../../extern/glew/include
|
||||
${PYTHON_INC}
|
||||
)
|
||||
|
||||
IF(WITH_FFMPEG)
|
||||
@@ -57,5 +56,11 @@ IF(WITH_FFMPEG)
|
||||
ADD_DEFINITIONS(-D__STDC_CONSTANT_MACROS)
|
||||
ENDIF(WITH_FFMPEG)
|
||||
|
||||
IF(WITH_PYTHON)
|
||||
SET(INC ${INC} ${PYTHON_INC})
|
||||
ELSE(WITH_PYTHON)
|
||||
ADD_DEFINITIONS(-DDISABLE_PYTHON)
|
||||
ENDIF(WITH_PYTHON)
|
||||
|
||||
BLENDERLIB(bf_videotex "${SRC}" "${INC}")
|
||||
#env.BlenderLib ( 'bf_videotex', sources, Split(incs), [], libtype=['game','player'], priority=[25, 72], compileflags = cflags )
|
||||
|
||||
@@ -19,7 +19,10 @@ if env['OURPLATFORM'] in ('win32-vc', 'win64-vc','win32-mingw'):
|
||||
if env['BF_DEBUG']:
|
||||
defs.append('_DEBUG')
|
||||
|
||||
incs += ' ' + env['BF_PYTHON_INC']
|
||||
if env['WITH_BF_PYTHON']:
|
||||
incs += ' ' + env['BF_PYTHON_INC']
|
||||
else:
|
||||
defs.append('DISABLE_PYTHON')
|
||||
|
||||
if env['WITH_BF_FFMPEG']:
|
||||
defs.append('WITH_FFMPEG')
|
||||
|
||||
Reference in New Issue
Block a user