This is a massive upgrade removing almost all pre-waf 1.6 script code. In addition, this does away with custom pkgconfig.py script for making .pc files and replaces it with waf's builtin mechanism. Massive thanks to Alex Afanasyev for ideas and bugfixing, to Alina Quereilhac for bugfixing and testing, and to Tom Henderson for thorough testing.
22 lines
600 B
Python
22 lines
600 B
Python
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
|
|
|
|
def build(bld):
|
|
obj = bld.create_ns3_module('bridge', ['network'])
|
|
obj.source = [
|
|
'model/bridge-net-device.cc',
|
|
'model/bridge-channel.cc',
|
|
'helper/bridge-helper.cc',
|
|
]
|
|
headers = bld(features='ns3header')
|
|
headers.module = 'bridge'
|
|
headers.source = [
|
|
'model/bridge-net-device.h',
|
|
'model/bridge-channel.h',
|
|
'helper/bridge-helper.h',
|
|
]
|
|
|
|
if bld.env['ENABLE_EXAMPLES']:
|
|
bld.recurse('examples')
|
|
|
|
bld.ns3_python_bindings()
|