Add code that, when waf is updated in a future version, makes sure python bindings are re-generated whenever the optional features set changes.

This commit is contained in:
Gustavo J. A. M. Carneiro
2009-04-06 13:05:59 +01:00
parent df508b44f6
commit 199680e76e

View File

@@ -429,8 +429,9 @@ def build(bld):
if was_enabled:
features.append(name)
bindgen = bld.new_task_gen('command', source=source, target=target,
command=argv, variables=dict(FEATURES=(','.join(features))))
bindgen = bld.new_task_gen('command', source=source, target=target, command=argv)
bindgen.env['FEATURES'] = ','.join(features)
bindgen.dep_vars = ['FEATURES']
bindgen.before = 'cxx'
bindgen.after = 'gen_everything_h_task'