author | Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
Wed, 03 Jun 2009 13:17:04 +0200 | |
changeset 4493 | 291853a14915 |
parent 4472 | e20a31541404 |
child 4561 | cf6e27dd3a08 |
child 5050 | 5c2002bda934 |
permissions | -rw-r--r-- |
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
1 |
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
2 |
|
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
3 |
def build(bld): |
1217
2f7791ae388d
WAF: add new bld.create_ns3_module() and bld.create_ns3_program() methods to make declaration of modules and programs simpler, and allowing us to change how ns-3 is built in a centralized way, without needing to change every module wscript file.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
1188
diff
changeset
|
4 |
node = bld.create_ns3_module('node', ['core', 'common', 'simulator']) |
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
5 |
node.source = [ |
1158
12d68dff3353
new address types
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
953
diff
changeset
|
6 |
'address.cc', |
1494
c2985e1cd091
rename Euixx to Macxx
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1217
diff
changeset
|
7 |
'mac48-address.cc', |
c2985e1cd091
rename Euixx to Macxx
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1217
diff
changeset
|
8 |
'mac64-address.cc', |
1171
335886fe4ddd
InetAddress -> InetSocketAddress
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1167
diff
changeset
|
9 |
'inet-socket-address.cc', |
1188
34386185bc1f
a packet socket
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1171
diff
changeset
|
10 |
'packet-socket-address.cc', |
729
b5e744285e92
rename i-node to node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
621
diff
changeset
|
11 |
'node.cc', |
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
12 |
'ipv4-address.cc', |
4373
e493e80274bd
implementation and plumbing of Ipv4InterfaceAddress class
Tom Henderson <tomh@tomh.org>
parents:
4064
diff
changeset
|
13 |
'ipv4-interface-address.cc', |
2722
f59635c9c679
address generator, address collision checker
Craig Dowell <craigdo@ee.washington.edu>
parents:
2713
diff
changeset
|
14 |
'ipv4-address-generator.cc', |
3216
b36bb98d766e
bug 207: ipv4-header.h needed in src/node module.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3134
diff
changeset
|
15 |
'ipv4-header.cc', |
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
16 |
'net-device.cc', |
1167 | 17 |
'address-utils.cc', |
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
18 |
'llc-snap-header.cc', |
976
e82bac1816ce
ethernet Header and Trailer classes
Emmanuelle Laprise <emmanuelle.laprise@bluekazoo.ca>
parents:
953
diff
changeset
|
19 |
'ethernet-header.cc', |
e82bac1816ce
ethernet Header and Trailer classes
Emmanuelle Laprise <emmanuelle.laprise@bluekazoo.ca>
parents:
953
diff
changeset
|
20 |
'ethernet-trailer.cc', |
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
21 |
'ipv4-route.cc', |
4472
e20a31541404
src/ and utils/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents:
4373
diff
changeset
|
22 |
'ipv4-routing-protocol.cc', |
e20a31541404
src/ and utils/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents:
4373
diff
changeset
|
23 |
'ipv4-list-routing.cc', |
e20a31541404
src/ and utils/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents:
4373
diff
changeset
|
24 |
'ipv4-static-routing.cc', |
e20a31541404
src/ and utils/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents:
4373
diff
changeset
|
25 |
'ipv4-routing-table-entry.cc', |
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
26 |
'queue.cc', |
760
975a88259e2e
Re-sync WAF build with the latest SConstruct changes.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
729
diff
changeset
|
27 |
'drop-tail-queue.cc', |
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
28 |
'channel.cc', |
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
29 |
'node-list.cc', |
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
30 |
'socket.cc', |
760
975a88259e2e
Re-sync WAF build with the latest SConstruct changes.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
729
diff
changeset
|
31 |
'socket-factory.cc', |
1188
34386185bc1f
a packet socket
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1171
diff
changeset
|
32 |
'packet-socket-factory.cc', |
34386185bc1f
a packet socket
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1171
diff
changeset
|
33 |
'packet-socket.cc', |
3130
881cc06cd651
rename UdpSocket to UdpSocketImpl
Tom Henderson <tomh@tomh.org>
parents:
3127
diff
changeset
|
34 |
'udp-socket.cc', |
3125
d2d8a36cfd23
s/ns3::Udp/ns3::UdpSocketFactory
Tom Henderson <tomh@tomh.org>
parents:
3123
diff
changeset
|
35 |
'udp-socket-factory.cc', |
3134
1890d6ee27a1
Add abstract base class TcpSocket
Tom Henderson <tomh@tomh.org>
parents:
3132
diff
changeset
|
36 |
'tcp-socket.cc', |
3132
b0b0abb911cd
move Tcp to TcpSocketFactory
Tom Henderson <tomh@tomh.org>
parents:
3130
diff
changeset
|
37 |
'tcp-socket-factory.cc', |
760
975a88259e2e
Re-sync WAF build with the latest SConstruct changes.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
729
diff
changeset
|
38 |
'ipv4.cc', |
601 | 39 |
'application.cc', |
2673
a70e0c7aaf56
SimpleChannel/SimpleNetDevice. Use them where needed.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2609
diff
changeset
|
40 |
'simple-channel.cc', |
a70e0c7aaf56
SimpleChannel/SimpleNetDevice. Use them where needed.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2609
diff
changeset
|
41 |
'simple-net-device.cc', |
3852 | 42 |
'inet6-socket-address.cc', |
43 |
'ipv6-address.cc', |
|
44 |
'ipv6-header.cc', |
|
3820 | 45 |
'ipv4-raw-socket-factory.cc', |
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
46 |
] |
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
47 |
|
4064
10222f483860
Upgrade to new WAF, work in progress
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3950
diff
changeset
|
48 |
headers = bld.new_task_gen('ns3header') |
2609
931d59bb1303
Add a 'module' attribute to the ns3header object specifying which module each set of headers belongs to.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
2603
diff
changeset
|
49 |
headers.module = 'node' |
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
50 |
headers.source = [ |
1158
12d68dff3353
new address types
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
953
diff
changeset
|
51 |
'address.h', |
1494
c2985e1cd091
rename Euixx to Macxx
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1217
diff
changeset
|
52 |
'mac48-address.h', |
c2985e1cd091
rename Euixx to Macxx
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1217
diff
changeset
|
53 |
'mac64-address.h', |
1171
335886fe4ddd
InetAddress -> InetSocketAddress
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1167
diff
changeset
|
54 |
'inet-socket-address.h', |
1188
34386185bc1f
a packet socket
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1171
diff
changeset
|
55 |
'packet-socket-address.h', |
729
b5e744285e92
rename i-node to node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
621
diff
changeset
|
56 |
'node.h', |
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
57 |
'ipv4-address.h', |
4472
e20a31541404
src/ and utils/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents:
4373
diff
changeset
|
58 |
'ipv4-interface-address.h', |
2722
f59635c9c679
address generator, address collision checker
Craig Dowell <craigdo@ee.washington.edu>
parents:
2713
diff
changeset
|
59 |
'ipv4-address-generator.h', |
3216
b36bb98d766e
bug 207: ipv4-header.h needed in src/node module.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3134
diff
changeset
|
60 |
'ipv4-header.h', |
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
61 |
'net-device.h', |
1167 | 62 |
'address-utils.h', |
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
63 |
'ipv4-route.h', |
4472
e20a31541404
src/ and utils/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents:
4373
diff
changeset
|
64 |
'ipv4-routing-protocol.h', |
e20a31541404
src/ and utils/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents:
4373
diff
changeset
|
65 |
'ipv4-list-routing.h', |
e20a31541404
src/ and utils/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents:
4373
diff
changeset
|
66 |
'ipv4-static-routing.h', |
e20a31541404
src/ and utils/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents:
4373
diff
changeset
|
67 |
'ipv4-routing-table-entry.h', |
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
68 |
'queue.h', |
760
975a88259e2e
Re-sync WAF build with the latest SConstruct changes.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
729
diff
changeset
|
69 |
'drop-tail-queue.h', |
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
70 |
'llc-snap-header.h', |
976
e82bac1816ce
ethernet Header and Trailer classes
Emmanuelle Laprise <emmanuelle.laprise@bluekazoo.ca>
parents:
953
diff
changeset
|
71 |
'ethernet-header.h', |
e82bac1816ce
ethernet Header and Trailer classes
Emmanuelle Laprise <emmanuelle.laprise@bluekazoo.ca>
parents:
953
diff
changeset
|
72 |
'ethernet-trailer.h', |
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
73 |
'channel.h', |
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
74 |
'node-list.h', |
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
75 |
'socket.h', |
760
975a88259e2e
Re-sync WAF build with the latest SConstruct changes.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
729
diff
changeset
|
76 |
'socket-factory.h', |
1188
34386185bc1f
a packet socket
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1171
diff
changeset
|
77 |
'packet-socket-factory.h', |
3130
881cc06cd651
rename UdpSocket to UdpSocketImpl
Tom Henderson <tomh@tomh.org>
parents:
3127
diff
changeset
|
78 |
'udp-socket.h', |
3125
d2d8a36cfd23
s/ns3::Udp/ns3::UdpSocketFactory
Tom Henderson <tomh@tomh.org>
parents:
3123
diff
changeset
|
79 |
'udp-socket-factory.h', |
3134
1890d6ee27a1
Add abstract base class TcpSocket
Tom Henderson <tomh@tomh.org>
parents:
3132
diff
changeset
|
80 |
'tcp-socket.h', |
3132
b0b0abb911cd
move Tcp to TcpSocketFactory
Tom Henderson <tomh@tomh.org>
parents:
3130
diff
changeset
|
81 |
'tcp-socket-factory.h', |
760
975a88259e2e
Re-sync WAF build with the latest SConstruct changes.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
729
diff
changeset
|
82 |
'ipv4.h', |
601 | 83 |
'application.h', |
2673
a70e0c7aaf56
SimpleChannel/SimpleNetDevice. Use them where needed.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2609
diff
changeset
|
84 |
'simple-channel.h', |
a70e0c7aaf56
SimpleChannel/SimpleNetDevice. Use them where needed.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2609
diff
changeset
|
85 |
'simple-net-device.h', |
3852 | 86 |
'inet6-socket-address.h', |
87 |
'ipv6-address.h', |
|
88 |
'ipv6-header.h', |
|
3820 | 89 |
'ipv4-raw-socket-factory.h', |
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
90 |
] |