scons: Accept verbose=yes instead of quiet=no.
'verbose' is affirmative, and much more common name for this sort of option.
This commit is contained in:
@@ -79,7 +79,7 @@ def AddOptions(opts):
|
|||||||
from SCons.Options.EnumOption import EnumOption
|
from SCons.Options.EnumOption import EnumOption
|
||||||
opts.Add(EnumOption('build', 'build type', 'debug',
|
opts.Add(EnumOption('build', 'build type', 'debug',
|
||||||
allowed_values=('debug', 'checked', 'profile', 'release')))
|
allowed_values=('debug', 'checked', 'profile', 'release')))
|
||||||
opts.Add(BoolOption('quiet', 'quiet command lines', 'yes'))
|
opts.Add(BoolOption('verbose', 'verbose output', 'no'))
|
||||||
opts.Add(EnumOption('machine', 'use machine-specific assembly code', default_machine,
|
opts.Add(EnumOption('machine', 'use machine-specific assembly code', default_machine,
|
||||||
allowed_values=('generic', 'ppc', 'x86', 'x86_64')))
|
allowed_values=('generic', 'ppc', 'x86', 'x86_64')))
|
||||||
opts.Add(EnumOption('platform', 'target platform', host_platform,
|
opts.Add(EnumOption('platform', 'target platform', host_platform,
|
||||||
@@ -90,4 +90,5 @@ def AddOptions(opts):
|
|||||||
opts.Add(BoolOption('llvm', 'use LLVM', default_llvm))
|
opts.Add(BoolOption('llvm', 'use LLVM', default_llvm))
|
||||||
opts.Add(BoolOption('debug', 'DEPRECATED: debug build', 'yes'))
|
opts.Add(BoolOption('debug', 'DEPRECATED: debug build', 'yes'))
|
||||||
opts.Add(BoolOption('profile', 'DEPRECATED: profile build', 'no'))
|
opts.Add(BoolOption('profile', 'DEPRECATED: profile build', 'no'))
|
||||||
|
opts.Add(BoolOption('quiet', 'DEPRECATED: quiet command lines', 'yes'))
|
||||||
opts.Add(EnumOption('MSVS_VERSION', 'MS Visual C++ version', None, allowed_values=('7.1', '8.0', '9.0')))
|
opts.Add(EnumOption('MSVS_VERSION', 'MS Visual C++ version', None, allowed_values=('7.1', '8.0', '9.0')))
|
||||||
|
@@ -157,7 +157,8 @@ def createCodeGenerateMethod(env):
|
|||||||
def generate(env):
|
def generate(env):
|
||||||
"""Common environment generation code"""
|
"""Common environment generation code"""
|
||||||
|
|
||||||
if env.get('quiet', True):
|
verbose = env.get('verbose', False) or not env.get('quiet', True)
|
||||||
|
if not verbose:
|
||||||
quietCommandLines(env)
|
quietCommandLines(env)
|
||||||
|
|
||||||
# Custom builders and methods
|
# Custom builders and methods
|
||||||
|
Reference in New Issue
Block a user