diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2014-09-06 04:39:13 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2014-09-06 04:39:13 -0400 |
commit | 392356e35d30f573ae34f4416dcd23c8692a1789 (patch) | |
tree | d03c043cef4206a113ded1f6ab1fb2e581e9e361 | |
parent | 8be5d72d01d7eedd9af9cfaa2da23433dd0d22a7 (diff) | |
download | gpsd-392356e35d30f573ae34f4416dcd23c8692a1789.tar.gz |
'minimal' option is half-implemented; it does the right thing in scons, but...
...indirect effects break the build. This will be fixed.
-rw-r--r-- | SConstruct | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -166,7 +166,7 @@ boolopts = ( ("chrpath", False, "use chrpath to edit library load paths"), ("manbuild", True, "build help in man and HTML formats"), ("leapfetch", True, "fetch up-to-date data on leap seconds."), - ("minimal", False, "default all optional features to off"), + ("minimal", False, "turn off every option not set on the command line"), # Test control ("slow", False, "run tests with realistic (slow) delays"), ) @@ -236,6 +236,12 @@ env = Environment(tools=["default", "tar", "textfile"], options=opts, ENV=envs) opts.Save('.scons-option-cache', env) env.SConsignFile(".sconsign.dblite") +# Minimal build turns off every option not set on the command line, +if env['minimal']: + for (name, default, help) in boolopts: + if default == True and not ARGUMENTS.get(name): + env[name] = False + for (name, default, help) in pathopts: env[name] = env.subst(env[name]) |