rename and negate DISABLE_PYTHON --> WITH_PYTHON
[blender.git] / source / gameengine / VideoTexture / SConscript
1 #!/usr/bin/python
2 import sys
3
4 Import ('env')
5
6 sources = env.Glob('*.cpp')
7
8 incs = '. #source/gameengine/Ketsji #source/gameengine/Expressions'
9 incs += ' #source/gameengine/GameLogic #source/gameengine/SceneGraph #source/gameengine/Rasterizer'
10 incs += ' #source/gameengine/Rasterizer/RAS_OpenGLRasterizer'
11 incs += ' #source/gameengine/BlenderRoutines'
12 incs += ' #source/blender/editors/include #source/blender/blenlib #source/blender/blenkernel'
13 incs += ' #source/blender/makesdna #source/blender/imbuf #source/blender/python #source/blender/python/generic'
14 incs += ' #source/blender/gpu #source/kernel/gen_system #intern/string #intern/moto/include'
15 incs += ' #intern/guardedalloc #extern/glew/include'
16
17 defs = [] 
18 if env['OURPLATFORM'] in ('win32-vc', 'win64-vc','win32-mingw'):
19     if env['BF_DEBUG']:
20         defs.append('_DEBUG')
21
22 if env['WITH_BF_PYTHON']:
23     incs += ' ' + env['BF_PYTHON_INC']
24     defs.append('WITH_PYTHON')
25
26 if env['WITH_BF_FFMPEG']:
27     defs.append('WITH_FFMPEG')
28     incs += ' ' + env['BF_FFMPEG_INC'] + ' ' + env['BF_PTHREADS_INC']
29
30 env.BlenderLib ( 'bf_videotex', sources, Split(incs), defs, libtype=['core','player'], priority=[340,205], cxx_compileflags=env['BGE_CXXFLAGS'])