From: Christian Dywan Date: Sat, 6 Jun 2009 04:37:55 +0000 (+0200) Subject: Store 'addons' and 'docs' configure options persistently X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=923841e079b2f17784ce541f8669a81cdef301f9;p=midori Store 'addons' and 'docs' configure options persistently --- diff --git a/wscript b/wscript index 72520364..6b0e9522 100644 --- a/wscript +++ b/wscript @@ -191,6 +191,11 @@ def configure (conf): hildon = 'no ' conf.define ('HAVE_HILDON', [0,1][hildon == 'yes']) + # Store options in env, since 'Options' is not persistent + if 'CC' in os.environ: conf.env['CC'] = os.environ['CC'] + conf.env['addons'] = option_enabled ('addons') + conf.env['docs'] = option_enabled ('docs') + conf.check (header_name='unistd.h') conf.define ('HAVE_OSX', int(sys.platform == 'darwin')) @@ -297,12 +302,12 @@ def set_options (opt): def build (bld): bld.add_subdirs ('katze midori icons') - if option_enabled ('addons'): + if bld.env['addons']: bld.add_subdirs ('extensions') bld.add_group () - if option_enabled ('docs'): + if bld.env['docs']: bld.install_files ('${DOCDIR}/' + APPNAME + '/', \ 'AUTHORS ChangeLog COPYING EXPAT README TRANSLATE')