Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2010-01-18 23:01:58 +0300
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2010-01-18 23:01:58 +0300
commit399387342077db859c26a0633243c8f7850f46aa (patch)
treeec27c0a53efa7eb71d827dfd0a8733f2e79234b4 /tools
parent9802fdf4c29662db67f712882ddbfc780a695531 (diff)
parent161ae41c6d3d63f4b444f83bd6e64f6cbb214983 (diff)
Merged changes in the trunk up to revision 26083.
Diffstat (limited to 'tools')
-rw-r--r--tools/Blender.py8
-rw-r--r--tools/btools.py5
2 files changed, 11 insertions, 2 deletions
diff --git a/tools/Blender.py b/tools/Blender.py
index 4dad70bbef5..c51c1367f33 100644
--- a/tools/Blender.py
+++ b/tools/Blender.py
@@ -268,6 +268,12 @@ def buildinfo(lenv, build_type):
##### ACTION STUFF #############
+def my_print_cmd_line(self, s, target, source, env):
+ sys.stdout.write(' ' * 70 + '\r')
+ sys.stdout.flush()
+ sys.stdout.write(s + "\r")
+ sys.stdout.flush()
+
def my_compile_print(target, source, env):
a = '%s' % (source[0])
d, f = os.path.split(a)
@@ -330,6 +336,8 @@ def set_quiet_output(env):
env['BUILDERS']['StaticLibrary'] = static_lib
env['BUILDERS']['Library'] = static_lib
env['BUILDERS']['Program'] = program
+ if env['BF_LINE_OVERWRITE']:
+ SCons.Action._ActionAction.print_cmd_line = my_print_cmd_line
class CompZipFile(zipfile.ZipFile):
diff --git a/tools/btools.py b/tools/btools.py
index b3a97f96417..7dde9a14f6c 100644
--- a/tools/btools.py
+++ b/tools/btools.py
@@ -66,7 +66,7 @@ def validate_arguments(args, bc):
'WITH_BF_OPENMP',
'WITH_GHOST_COCOA',
'USE_QTKIT',
- 'BF_FANCY', 'BF_QUIET',
+ 'BF_FANCY', 'BF_QUIET', 'BF_LINE_OVERWRITE',
'BF_X264_CONFIG',
'BF_XVIDCORE_CONFIG',
'WITH_BF_LCMS', 'BF_LCMS_LIB',
@@ -97,7 +97,7 @@ def validate_arguments(args, bc):
arg_list = ['BF_DEBUG', 'BF_QUIET', 'BF_CROSS', 'BF_UPDATE',
'BF_INSTALLDIR', 'BF_TOOLSET', 'BF_BINNAME',
- 'BF_BUILDDIR', 'BF_FANCY', 'BF_QUICK', 'BF_PROFILE',
+ 'BF_BUILDDIR', 'BF_FANCY', 'BF_QUICK', 'BF_PROFILE', 'BF_LINE_OVERWRITE',
'BF_BSC', 'BF_CONFIG',
'BF_PRIORITYLIST', 'BF_BUILDINFO','CC', 'CXX', 'BF_QUICKDEBUG',
'BF_LISTDEBUG', 'LCGDIR', 'BF_X264_CONFIG', 'BF_XVIDCORE_CONFIG',
@@ -403,6 +403,7 @@ def read_opts(cfg, args):
(BoolVariable('WITHOUT_BF_PYTHON_INSTALL', 'dont install Python modules if true', False)),
(BoolVariable('BF_FANCY', 'Enable fancy output if true', True)),
(BoolVariable('BF_QUIET', 'Enable silent output if true', True)),
+ (BoolVariable('BF_LINE_OVERWRITE', 'Enable overwriting of compile line in BF_QUIET mode if true', False)),
(BoolVariable('WITH_BF_BINRELOC', 'Enable relocatable binary (linux only)', False)),
(BoolVariable('WITH_BF_LZO', 'Enable fast LZO pointcache compression', True)),