# HG changeset patch # User Gustavo J. A. M. Carneiro # Date 1227528587 0 # Node ID a1e72a0595a6efb6465b553b5ff0580aec3df482 # Parent c798f3d5cb2eb4456d2d628c4118413d90496e05 Disable EmuNetDevice Python bindings if the netdevice is not compiled in (bug #413) diff -r c798f3d5cb2e -r a1e72a0595a6 bindings/python/ns3modulegen.py --- a/bindings/python/ns3modulegen.py Mon Nov 24 06:45:13 2008 +0100 +++ b/bindings/python/ns3modulegen.py Mon Nov 24 12:09:47 2008 +0000 @@ -131,6 +131,11 @@ for clsname in ['SystemThread', 'SystemMutex', 'SystemCondition', 'CriticalSection']: root_module.classes.remove(root_module['ns3::%s' % clsname]) + + if 'EmuNetDevice' not in enabled_features: + for clsname in ['EmuNetDevice', 'EmuHelper']: + root_module.classes.remove(root_module['ns3::%s' % clsname]) + if 'RealTime' not in enabled_features: for clsname in ['WallClockSynchronizer', 'RealtimeSimulatorImpl', 'RealtimeEventLock']: root_module.classes.remove(root_module['ns3::%s' % clsname]) diff -r c798f3d5cb2e -r a1e72a0595a6 src/devices/emu/wscript --- a/src/devices/emu/wscript Mon Nov 24 06:45:13 2008 +0100 +++ b/src/devices/emu/wscript Mon Nov 24 12:09:47 2008 +0000 @@ -6,7 +6,7 @@ e.name = 'linux/if_ether.h' e.define = 'HAVE_IF_ETHER_H' conf.env['ENABLE_EMU'] = e.run() - conf.report_optional_feature("Low Level Ethernet Defintions", "Emulated Net Device", + conf.report_optional_feature("EmuNetDevice", "Emulated Net Device", conf.env['ENABLE_EMU'], " include not detected")