From 2506e21b08e271426b9b1959b36537ea4835b2ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Tue, 24 Oct 2017 12:10:09 +0200 Subject: [PATCH] [scons] add with_all option --- SConstruct | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/SConstruct b/SConstruct index 4bb9e380..8acc4085 100644 --- a/SConstruct +++ b/SConstruct @@ -140,6 +140,8 @@ vars.AddVariables( # with_xattr not supported PackageVariable('with_xml', 'enable xml support', 'no'), BoolVariable('with_zlib', 'enable deflate/gzip compression', 'no'), + + BoolVariable('with_all', 'enable all with_* features', 'no'), ) env = Environment( @@ -159,6 +161,15 @@ if env['CC'] == 'gcc': ## we need x-open 6 and bsd 4.3 features env.Append(CCFLAGS = Split('-Wall -O2 -g -W -pedantic -Wunused -Wshadow -std=gnu99')) +if env['with_all']: + for feature in vars.keys(): + # only enable 'with_*' flags + if not feature.startswith('with_'): continue + # don't overwrite manual arguments + if feature in vars.args: continue + # now activate + env[feature] = True + # cache configure checks if 1: autoconf = Configure(env, custom_tests = {