8751
|
1 |
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
|
|
2 |
|
|
3 |
def build(bld):
|
|
4 |
module = bld.create_ns3_module('dsr', ['internet', 'wifi', 'mesh', 'applications'])
|
|
5 |
module.includes = '.'
|
|
6 |
module.source = [
|
|
7 |
'model/dsr-routing.cc',
|
|
8 |
'model/dsr-options.cc',
|
|
9 |
'model/dsr-fs-header.cc',
|
|
10 |
'model/dsr-option-header.cc',
|
|
11 |
'model/dsr-maintain-buff.cc',
|
|
12 |
'model/dsr-rsendbuff.cc',
|
|
13 |
'model/dsr-rcache.cc',
|
|
14 |
'model/dsr-rreq-table.cc',
|
|
15 |
'model/dsr-gratuitous-reply-table.cc',
|
8752
|
16 |
'model/dsr-errorbuff.cc',
|
|
17 |
'model/dsr-network-queue.cc',
|
8751
|
18 |
'helper/dsr-helper.cc',
|
|
19 |
'helper/dsr-main-helper.cc',
|
|
20 |
]
|
|
21 |
|
|
22 |
module_test = bld.create_ns3_module_test_library('dsr')
|
|
23 |
module_test.source = [
|
|
24 |
'test/dsr-test-suite.cc',
|
|
25 |
]
|
|
26 |
|
|
27 |
headers = bld.new_task_gen(features=['ns3header'])
|
|
28 |
headers.module = 'dsr'
|
|
29 |
headers.source = [
|
|
30 |
'model/dsr-routing.h',
|
|
31 |
'model/dsr-options.h',
|
|
32 |
'model/dsr-fs-header.h',
|
|
33 |
'model/dsr-option-header.h',
|
|
34 |
'model/dsr-maintain-buff.h',
|
|
35 |
'model/dsr-rsendbuff.h',
|
|
36 |
'model/dsr-rcache.h',
|
|
37 |
'model/dsr-rreq-table.h',
|
|
38 |
'model/dsr-gratuitous-reply-table.h',
|
8752
|
39 |
'model/dsr-errorbuff.h',
|
|
40 |
'model/dsr-network-queue.h',
|
8751
|
41 |
'helper/dsr-helper.h',
|
|
42 |
'helper/dsr-main-helper.h',
|
|
43 |
]
|
|
44 |
|
|
45 |
if (bld.env['ENABLE_EXAMPLES']):
|
|
46 |
bld.add_subdirs('examples')
|
|
47 |
|
|
48 |
bld.ns3_python_bindings()
|