forked from Gabrielcarvfer/NS3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwscript
181 lines (175 loc) · 5.9 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
def build(bld):
network = bld.create_ns3_module('network', ['core', 'stats'])
network.source = [
'model/address.cc',
'model/application.cc',
'model/buffer.cc',
'model/byte-tag-list.cc',
'model/channel.cc',
'model/channel-list.cc',
'model/chunk.cc',
'model/header.cc',
'model/nix-vector.cc',
'model/node.cc',
'model/node-list.cc',
'model/net-device.cc',
'model/packet.cc',
'model/packet-metadata.cc',
'model/packet-tag-list.cc',
'model/socket.cc',
'model/socket-factory.cc',
'model/tag.cc',
'model/tag-buffer.cc',
'model/trailer.cc',
'utils/address-utils.cc',
'utils/bit-deserializer.cc',
'utils/bit-serializer.cc',
'utils/crc32.cc',
'utils/data-rate.cc',
'utils/drop-tail-queue.cc',
'utils/dynamic-queue-limits.cc',
'utils/error-channel.cc',
'utils/error-model.cc',
'utils/ethernet-header.cc',
'utils/ethernet-trailer.cc',
'utils/flow-id-tag.cc',
'utils/inet-socket-address.cc',
'utils/inet6-socket-address.cc',
'utils/ipv4-address.cc',
'utils/ipv6-address.cc',
'utils/mac16-address.cc',
'utils/mac48-address.cc',
'utils/mac64-address.cc',
'utils/llc-snap-header.cc',
'utils/output-stream-wrapper.cc',
'utils/packetbb.cc',
'utils/packet-burst.cc',
'utils/packet-socket.cc',
'utils/packet-socket-address.cc',
'utils/packet-socket-factory.cc',
'utils/pcap-file.cc',
'utils/pcap-file-wrapper.cc',
'utils/queue.cc',
'utils/queue-item.cc',
'utils/queue-limits.cc',
'utils/queue-size.cc',
'utils/net-device-queue-interface.cc',
'utils/radiotap-header.cc',
'utils/simple-channel.cc',
'utils/simple-net-device.cc',
'utils/sll-header.cc',
'utils/packet-socket-client.cc',
'utils/packet-socket-server.cc',
'utils/packet-data-calculators.cc',
'utils/packet-probe.cc',
'utils/mac8-address.cc',
'helper/application-container.cc',
'helper/net-device-container.cc',
'helper/node-container.cc',
'helper/packet-socket-helper.cc',
'helper/trace-helper.cc',
'helper/delay-jitter-estimation.cc',
'helper/simple-net-device-helper.cc',
]
network_test = bld.create_ns3_module_test_library('network')
network_test.source = [
'test/bit-serializer-test.cc',
'test/buffer-test.cc',
'test/drop-tail-queue-test-suite.cc',
'test/error-model-test-suite.cc',
'test/ipv6-address-test-suite.cc',
'test/packetbb-test-suite.cc',
'test/packet-test-suite.cc',
'test/packet-metadata-test.cc',
'test/pcap-file-test-suite.cc',
'test/sequence-number-test-suite.cc',
'test/packet-socket-apps-test-suite.cc',
'test/lollipop-counter-test.cc',
'test/test-data-rate.cc',
]
# Tests encapsulating example programs should be listed here
if (bld.env['ENABLE_EXAMPLES']):
network_test.source.extend([
# 'test/network-examples-test-suite.cc',
])
headers = bld(features='ns3header')
headers.module = 'network'
headers.source = [
'model/address.h',
'model/application.h',
'model/buffer.h',
'model/byte-tag-list.h',
'model/channel.h',
'model/channel-list.h',
'model/chunk.h',
'model/header.h',
'model/net-device.h',
'model/nix-vector.h',
'model/node.h',
'model/node-list.h',
'model/packet.h',
'model/packet-metadata.h',
'model/packet-tag-list.h',
'model/socket.h',
'model/socket-factory.h',
'model/tag.h',
'model/tag-buffer.h',
'model/trailer.h',
'utils/address-utils.h',
'utils/bit-deserializer.h',
'utils/bit-serializer.h',
'utils/crc32.h',
'utils/data-rate.h',
'utils/drop-tail-queue.h',
'utils/dynamic-queue-limits.h',
'utils/error-channel.h',
'utils/error-model.h',
'utils/ethernet-header.h',
'utils/ethernet-trailer.h',
'utils/flow-id-tag.h',
'utils/inet-socket-address.h',
'utils/inet6-socket-address.h',
'utils/ipv4-address.h',
'utils/ipv6-address.h',
'utils/llc-snap-header.h',
'utils/mac16-address.h',
'utils/mac48-address.h',
'utils/mac64-address.h',
'utils/output-stream-wrapper.h',
'utils/packetbb.h',
'utils/packet-burst.h',
'utils/packet-socket.h',
'utils/packet-socket-address.h',
'utils/packet-socket-factory.h',
'utils/pcap-file.h',
'utils/pcap-file-wrapper.h',
'utils/generic-phy.h',
'utils/queue.h',
'utils/queue-item.h',
'utils/queue-limits.h',
'utils/queue-size.h',
'utils/net-device-queue-interface.h',
'utils/radiotap-header.h',
'utils/sequence-number.h',
'utils/simple-channel.h',
'utils/simple-net-device.h',
'utils/sll-header.h',
'utils/packet-socket-client.h',
'utils/packet-socket-server.h',
'utils/pcap-test.h',
'utils/packet-data-calculators.h',
'utils/packet-probe.h',
'utils/mac8-address.h',
'utils/lollipop-counter.h',
'helper/application-container.h',
'helper/net-device-container.h',
'helper/node-container.h',
'helper/packet-socket-helper.h',
'helper/trace-helper.h',
'helper/delay-jitter-estimation.h',
'helper/simple-net-device-helper.h',
]
if (bld.env['ENABLE_EXAMPLES']):
bld.recurse('examples')
bld.ns3_python_bindings()