From 273f56ace03e1556df17b8a6e7e4343bf73726e5 Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Sat, 30 Jun 2012 22:44:36 +0000 Subject: [PATCH] Scons: * WITH_BF_COMPOSITOR option, to disable tile compositor compilation. * Removed unused SCons file. --- build_files/scons/tools/btools.py | 3 +++ source/SConscript | 2 +- source/blender/SConscript | 6 ++++-- source/blender/nodes/SConscript | 7 ++++--- source/creator/SConscript | 3 --- 5 files changed, 12 insertions(+), 9 deletions(-) delete mode 100644 source/creator/SConscript diff --git a/build_files/scons/tools/btools.py b/build_files/scons/tools/btools.py index d3a334b3c96..af484ed382e 100644 --- a/build_files/scons/tools/btools.py +++ b/build_files/scons/tools/btools.py @@ -108,6 +108,7 @@ def validate_arguments(args, bc): 'WITH_BF_STATICFFMPEG', 'BF_FFMPEG_LIB_STATIC', 'WITH_BF_OGG', 'BF_OGG', 'BF_OGG_LIB', 'WITH_BF_FRAMESERVER', + 'WITH_BF_COMPOSITOR', 'WITH_BF_JPEG', 'BF_JPEG', 'BF_JPEG_INC', 'BF_JPEG_LIB', 'BF_JPEG_LIBPATH', 'WITH_BF_OPENJPEG', 'BF_OPENJPEG', 'BF_OPENJPEG_INC', 'BF_OPENJPEG_LIB', 'BF_OPENJPEG_LIBPATH', 'WITH_BF_REDCODE', 'BF_REDCODE', 'BF_REDCODE_INC', 'BF_REDCODE_LIB', 'BF_REDCODE_LIBPATH', @@ -531,6 +532,8 @@ def read_opts(env, cfg, args): (BoolVariable('WITH_BF_CARVE', 'Enable carve library for mesh boolean operations', True)), (BoolVariable('WITH_BF_LIBMV', 'Enable libmv structure from motion library', True)), + + (BoolVariable('WITH_BF_COMPOSITOR', 'Enable the tile based nodal compositor', True)), ('BF_X264_CONFIG', 'configuration flags for x264', ''), ('BF_XVIDCORE_CONFIG', 'configuration flags for xvidcore', ''), diff --git a/source/SConscript b/source/SConscript index cfb204cd52a..fdd126b28c6 100644 --- a/source/SConscript +++ b/source/SConscript @@ -1,7 +1,7 @@ #!/usr/bin/python Import ('env') -SConscript(['blender/SConscript', 'creator/SConscript']) +SConscript(['blender/SConscript']) if env['WITH_BF_GAMEENGINE']: SConscript (['gameengine/SConscript']) diff --git a/source/blender/SConscript b/source/blender/SConscript index c2ca6eb5ae5..e1f81f9aaba 100644 --- a/source/blender/SConscript +++ b/source/blender/SConscript @@ -8,11 +8,9 @@ SConscript(['avi/SConscript', 'blenlib/SConscript', 'blenloader/SConscript', 'gpu/SConscript', - 'opencl/SConscript', 'editors/SConscript', 'imbuf/SConscript', 'makesdna/SConscript', - 'compositor/SConscript', 'render/SConscript', 'nodes/SConscript', 'modifiers/SConscript', @@ -39,3 +37,7 @@ if env['WITH_BF_QUICKTIME']: if env['WITH_BF_COLLADA']: SConscript (['collada/SConscript']) + +if env['WITH_BF_COMPOSITOR']: + SConscript (['compositor/SConscript', + 'opencl/SConscript']) diff --git a/source/blender/nodes/SConscript b/source/blender/nodes/SConscript index d9fabc10a63..bf70b5a6ed5 100644 --- a/source/blender/nodes/SConscript +++ b/source/blender/nodes/SConscript @@ -13,7 +13,6 @@ incs += ' ../imbuf ../avi ' incs += ' ../blenloader' incs += ' ../blenfont ../blenkernel ../renderconverter ' incs += ' ../gpu #/extern/glew/include ' -incs += ' ../compositor ' incs += ' ' + env['BF_OPENGL_INC'] incs += ' ' + env['BF_ZLIB_INC'] @@ -36,8 +35,10 @@ if env['OURPLATFORM'] == 'linux': if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc', 'win64-mingw'): incs += ' ' + env['BF_PTHREADS_INC'] - -defs.append("WITH_COMPOSITOR") + +if env['WITH_BF_COMPOSITOR']: + incs += ' ../compositor ' + defs.append("WITH_COMPOSITOR") env.BlenderLib ( libname = 'bf_nodes', sources = sources, includes = Split(incs), defines = defs, libtype=['core','player'], priority = [190,105] ) env.BlenderLib ( libname = 'bf_cmpnodes', sources = cmpsources, includes = Split(incs), defines = defs, libtype=['core','player'], priority = [175,101] ) diff --git a/source/creator/SConscript b/source/creator/SConscript deleted file mode 100644 index 80428ba7bb6..00000000000 --- a/source/creator/SConscript +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/python - -# dummy, code has been moved to Blender.creator()