Detect the pthread.h header file and automatically disable components that cannot build without it.

This commit is contained in:
Gustavo J. A. M. Carneiro
2008-09-08 12:19:46 +01:00
parent 8b080ef574
commit e1f187d38a
4 changed files with 52 additions and 20 deletions

View File

@@ -126,6 +126,15 @@ def main():
except KeyError:
pass
if 'Threading' not in enabled_features:
for clsname in ['SystemThread', 'SystemMutex', 'SystemCondition', 'CriticalSection']:
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])
root_module.enums.remove(root_module['ns3::RealtimeSimulatorImpl::SynchronizationMode'])
root_module.generate(out, '_ns3')
out.close()