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-03-07 16:59:09 -08:00
|
|
|
obj = bld.create_ns3_module('csma', ['network', 'point-to-point', 'applications', 'netanim'])
|
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',
|
|
|
|
|
'helper/csma-star-helper.cc',
|
2007-08-09 15:56:28 -07:00
|
|
|
]
|
2008-12-29 13:28:54 +00:00
|
|
|
headers = bld.new_task_gen('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',
|
|
|
|
|
'helper/csma-star-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')
|