Fix build of Python bindings on systems with no support for TabBridge
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Mon, 23 Feb 2009 16:07:46 +0000
changeset 4208 ef9ae8962bbb
parent 4207 11043ba9a122
child 4209 42c89b271a69
child 4236 6ef5bba17bf9
Fix build of Python bindings on systems with no support for TabBridge
bindings/python/ns3modulegen.py
--- a/bindings/python/ns3modulegen.py	Mon Feb 23 06:56:52 2009 -0800
+++ b/bindings/python/ns3modulegen.py	Mon Feb 23 16:07:46 2009 +0000
@@ -142,6 +142,10 @@
             root_module.classes.remove(root_module['ns3::%s' % clsname])
         root_module.enums.remove(root_module['ns3::RealtimeSimulatorImpl::SynchronizationMode'])
 
+    if 'TapBridge' not in enabled_features:
+        for clsname in ['TapBridge', 'TapBridgeHelper']:
+            root_module.classes.remove(root_module['ns3::%s' % clsname])
+
     root_module.generate(out, '_ns3')
 
     out.close()