From 308efe383bd07871bef94db27b6f7305c6f4a604 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Sun, 20 Mar 2011 14:18:56 +0000 Subject: [PATCH] Modular bindings: skip a binding module if the corresponding ns-3 module is not enabled --- src/wscript | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/wscript b/src/wscript index a0229b5ca..f851ac802 100644 --- a/src/wscript +++ b/src/wscript @@ -179,6 +179,11 @@ def ns3_python_bindings(bld): # this method is called from a module wscript, so remember bld.path is not bindings/python! module_abs_src_path = bld.path.abspath() module = os.path.basename(module_abs_src_path) + + if ("ns3-%s" % (module,)) not in env.NS3_ENABLED_MODULES: + #print "bindings for module %s which is not enabled, skip" % module + return + env.append_value('PYTHON_MODULES_BUILT', module) apidefs = env['PYTHON_BINDINGS_APIDEFS'].replace("-", "_")