2007-08-09 15:56:28 -07:00
|
|
|
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
|
|
|
|
|
|
|
|
|
|
def build(bld):
|
2011-04-26 15:18:32 -07:00
|
|
|
obj = bld.create_ns3_module('csma', ['network', 'applications'])
|
2007-08-09 15:56:28 -07:00
|
|
|
obj.source = [
|
2011-03-03 19:54:57 +00:00
|
|
|
'model/backoff.cc',
|
|
|
|
|
'model/csma-net-device.cc',
|
|
|
|
|
'model/csma-channel.cc',
|
|
|
|
|
'helper/csma-helper.cc',
|
2007-08-09 15:56:28 -07:00
|
|
|
]
|
2011-09-08 16:13:40 +01:00
|
|
|
headers = bld.new_task_gen(features=['ns3header'])
|
2007-12-26 13:40:39 +00:00
|
|
|
headers.module = 'csma'
|
2007-08-09 15:56:28 -07:00
|
|
|
headers.source = [
|
2011-03-03 19:54:57 +00:00
|
|
|
'model/backoff.h',
|
|
|
|
|
'model/csma-net-device.h',
|
|
|
|
|
'model/csma-channel.h',
|
|
|
|
|
'helper/csma-helper.h',
|
2007-08-09 15:56:28 -07:00
|
|
|
]
|
2011-03-03 19:54:57 +00:00
|
|
|
|
|
|
|
|
if bld.env['ENABLE_EXAMPLES']:
|
|
|
|
|
bld.add_subdirs('examples')
|
2011-03-12 18:34:30 +00:00
|
|
|
|
|
|
|
|
bld.ns3_python_bindings()
|