From 9cf0988230aa44193d5fc8f477fb853d7ec933eb Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Mon, 23 Feb 2009 16:07:46 +0000 Subject: [PATCH] Fix build of Python bindings on systems with no support for TabBridge --- bindings/python/ns3modulegen.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bindings/python/ns3modulegen.py b/bindings/python/ns3modulegen.py index e3dd6790b..12363b1e4 100755 --- a/bindings/python/ns3modulegen.py +++ b/bindings/python/ns3modulegen.py @@ -142,6 +142,10 @@ def main(): 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()