Add code that, when waf is updated in a future version, makes sure python bindings are re-generated whenever the optional features set changes.
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Mon Apr 06 13:05:59 2009 +0100 (10 months ago)
changeset 4312a20c4300f959
parent 4311 abf229efd655
child 4313 33085beb900d
Add code that, when waf is updated in a future version, makes sure python bindings are re-generated whenever the optional features set changes.
bindings/python/wscript
     1.1 --- a/bindings/python/wscript	Mon Apr 06 11:12:42 2009 +0200
     1.2 +++ b/bindings/python/wscript	Mon Apr 06 13:05:59 2009 +0100
     1.3 @@ -429,8 +429,9 @@
     1.4              if was_enabled:
     1.5                  features.append(name)
     1.6  
     1.7 -        bindgen = bld.new_task_gen('command', source=source, target=target,
     1.8 -                                   command=argv, variables=dict(FEATURES=(','.join(features))))
     1.9 +        bindgen = bld.new_task_gen('command', source=source, target=target, command=argv)
    1.10 +        bindgen.env['FEATURES'] = ','.join(features)
    1.11 +        bindgen.dep_vars = ['FEATURES']
    1.12          bindgen.before = 'cxx'
    1.13          bindgen.after = 'gen_everything_h_task'
    1.14