Modular bindings: skip a binding module if the corresponding ns-3 module is not enabled

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2011-03-20 14:18:56 +00:00
1 parent 3498fbedc7
commit 2c2d39a11c
1 file changed
+5
+5
View File
@@ -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("-", "_")