./waf --apiscan=all: now only scans modules that have bld.ns3_python_bindings() in their wscript

This commit is contained in:
Gustavo J. A. M. Carneiro
2011-03-22 15:56:41 +00:00
parent e072bb3014
commit 2a16dbfa9b
2 changed files with 9 additions and 5 deletions

View File

@@ -671,7 +671,10 @@ def build(bld):
continue
if mod.name.endswith('-test'):
continue
scan_modules.append(mod.name.split('ns3-')[1])
bindings_enabled = (mod.name in env.MODULAR_BINDINGS_MODULES)
#print mod.name, bindings_enabled
if bindings_enabled:
scan_modules.append(mod.name.split('ns3-')[1])
else:
scan_modules = Options.options.apiscan.split(',')
print "Modules to scan: ", scan_modules