From 199680e76e1497b2323debbe4017c4f9d1d45203 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Mon, 6 Apr 2009 13:05:59 +0100 Subject: [PATCH] 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bindings/python/wscript b/bindings/python/wscript index 89cdccfec..691a90baa 100644 --- a/bindings/python/wscript +++ b/bindings/python/wscript @@ -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'