forked from Gabrielcarvfer/NS3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwscript
74 lines (68 loc) · 2.36 KB
/
wscript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
def build(bld):
module = bld.create_ns3_module('uan', ['network', 'energy', 'mobility'])
module.source = [
'model/uan-channel.cc',
'model/uan-phy-gen.cc',
'model/uan-mac.cc',
'model/uan-transducer.cc',
'model/uan-transducer-hd.cc',
'model/uan-net-device.cc',
'model/uan-tx-mode.cc',
'model/uan-prop-model.cc',
'model/uan-prop-model-ideal.cc',
'model/uan-mac-aloha.cc',
'model/uan-header-common.cc',
'model/uan-noise-model-default.cc',
'model/uan-mac-cw.cc',
'model/uan-prop-model-thorp.cc',
'model/uan-phy-dual.cc',
'model/uan-header-rc.cc',
'model/uan-mac-rc.cc',
'model/uan-mac-rc-gw.cc',
'model/uan-phy.cc',
'model/uan-noise-model.cc',
'model/acoustic-modem-energy-model.cc',
'helper/uan-helper.cc',
'helper/acoustic-modem-energy-model-helper.cc',
]
module_test = bld.create_ns3_module_test_library('uan')
module_test.source = [
'test/uan-test.cc',
'test/uan-energy-model-test.cc',
]
# Tests encapsulating example programs should be listed here
if (bld.env['ENABLE_EXAMPLES']):
module_test.source.extend([
# 'test/uan-examples-test-suite.cc',
])
headers = bld(features='ns3header')
headers.module = 'uan'
headers.source = [
'model/uan-channel.h',
'model/uan-phy.h',
'model/uan-mac.h',
'model/uan-net-device.h',
'model/uan-prop-model.h',
'model/uan-tx-mode.h',
'model/uan-transducer.h',
'model/uan-phy-gen.h',
'model/uan-transducer-hd.h',
'model/uan-prop-model-ideal.h',
'model/uan-mac-aloha.h',
'model/uan-header-common.h',
'model/uan-noise-model.h',
'model/uan-noise-model-default.h',
'model/uan-mac-cw.h',
'model/uan-prop-model-thorp.h',
'model/uan-phy-dual.h',
'model/uan-header-rc.h',
'model/uan-mac-rc.h',
'model/acoustic-modem-energy-model.h',
'helper/uan-helper.h',
'helper/acoustic-modem-energy-model-helper.h',
'model/uan-mac-rc-gw.h',
]
if (bld.env['ENABLE_EXAMPLES']):
bld.recurse('examples')
bld.ns3_python_bindings()