author | Tom Henderson <tomh@tomh.org> |
Wed, 22 Dec 2010 16:35:11 -0800 | |
changeset 6721 | e85ecc17279a |
parent 6655 | a9867a83055e |
child 6777 | ba6d0ca3e28a |
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): |
5369
86beb5869f67
split examples, add examples, tweak test.py to minimize builds
Craig Dowell <craigdo@ee.washington.edu>
parents:
5269
diff
changeset
|
4 |
env = bld.env_of_name('default') |
86beb5869f67
split examples, add examples, tweak test.py to minimize builds
Craig Dowell <craigdo@ee.washington.edu>
parents:
5269
diff
changeset
|
5 |
if not env['ENABLE_EXAMPLES']: |
86beb5869f67
split examples, add examples, tweak test.py to minimize builds
Craig Dowell <craigdo@ee.washington.edu>
parents:
5269
diff
changeset
|
6 |
return; |
86beb5869f67
split examples, add examples, tweak test.py to minimize builds
Craig Dowell <craigdo@ee.washington.edu>
parents:
5269
diff
changeset
|
7 |
|
6655
a9867a83055e
update some module dependencies for samples
Tom Henderson <tomh@tomh.org>
parents:
6366
diff
changeset
|
8 |
obj = bld.create_ns3_program('main-attribute-value', ['core', 'node']) |
2623
bdd52bd78977
Add sample file for attribute values
Tom Henderson <tomh@tomh.org>
parents:
2575
diff
changeset
|
9 |
obj.source = 'main-attribute-value.cc' |
bdd52bd78977
Add sample file for attribute values
Tom Henderson <tomh@tomh.org>
parents:
2575
diff
changeset
|
10 |
|
6655
a9867a83055e
update some module dependencies for samples
Tom Henderson <tomh@tomh.org>
parents:
6366
diff
changeset
|
11 |
obj = bld.create_ns3_program('main-callback', ['core']) |
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:
1132
diff
changeset
|
12 |
obj.source = 'main-callback.cc' |
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:
1132
diff
changeset
|
13 |
|
6721
e85ecc17279a
small modifications to the samples showing event scheduling
Tom Henderson <tomh@tomh.org>
parents:
6655
diff
changeset
|
14 |
obj = bld.create_ns3_program('sample-simulator', ['core']) |
e85ecc17279a
small modifications to the samples showing event scheduling
Tom Henderson <tomh@tomh.org>
parents:
6655
diff
changeset
|
15 |
obj.source = 'sample-simulator.cc' |
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:
1132
diff
changeset
|
16 |
|
6655
a9867a83055e
update some module dependencies for samples
Tom Henderson <tomh@tomh.org>
parents:
6366
diff
changeset
|
17 |
obj = bld.create_ns3_program('main-ptr', ['core'] ) |
4501
54c51be9c6eb
main-ptr sample program was left out of build
Tom Henderson <tomh@tomh.org>
parents:
4317
diff
changeset
|
18 |
obj.source = 'main-ptr.cc' |
54c51be9c6eb
main-ptr sample program was left out of build
Tom Henderson <tomh@tomh.org>
parents:
4317
diff
changeset
|
19 |
|
6655
a9867a83055e
update some module dependencies for samples
Tom Henderson <tomh@tomh.org>
parents:
6366
diff
changeset
|
20 |
obj = bld.create_ns3_program('main-random-variable', ['core', 'contrib']) |
4317
0a250f44e0ed
bug 475: GammaVariable and ErlangVariable
Timo Bingmann <timo.bingmann@student.kit.edu>
parents:
4125
diff
changeset
|
21 |
obj.source = 'main-random-variable.cc' |
0a250f44e0ed
bug 475: GammaVariable and ErlangVariable
Timo Bingmann <timo.bingmann@student.kit.edu>
parents:
4125
diff
changeset
|
22 |
|
1258 | 23 |
obj = bld.create_ns3_program('main-packet-header', ['common', 'simulator']) |
24 |
obj.source = 'main-packet-header.cc' |
|
25 |
||
26 |
obj = bld.create_ns3_program('main-packet-tag', ['common', 'simulator']) |
|
27 |
obj.source = 'main-packet-tag.cc' |
|
537
e8a4183dfe00
Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff
changeset
|
28 |
|
4125
b5e1f3870314
samples/main-test-sync also depends on the realtime optional feature
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
4091
diff
changeset
|
29 |
if bld.env['ENABLE_THREADING'] and bld.env["ENABLE_REAL_TIME"]: |
4091
8e5d0354c509
Fix build for systems without posix threads library
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3815
diff
changeset
|
30 |
obj = bld.create_ns3_program('main-test-sync') |
8e5d0354c509
Fix build for systems without posix threads library
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3815
diff
changeset
|
31 |
obj.source = 'main-test-sync.cc' |
3796
75c6a3d424d9
make simulator schedule calls explicitly relative throughout. fixes multithread problem in realtime simulator
Craig Dowell <craigdo@ee.washington.edu>
parents:
3260
diff
changeset
|
32 |
|
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:
1132
diff
changeset
|
33 |
obj = bld.create_ns3_program('main-simple', |
3260
8c0ab08144e6
bug 186: internet-node directory must be renamed to internet-stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2665
diff
changeset
|
34 |
['node', 'internet-stack', 'onoff']) |
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:
1132
diff
changeset
|
35 |
obj.source = 'main-simple.cc' |
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:
1132
diff
changeset
|
36 |
|
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:
1132
diff
changeset
|
37 |
obj = bld.create_ns3_program('main-grid-topology', |
3260
8c0ab08144e6
bug 186: internet-node directory must be renamed to internet-stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2665
diff
changeset
|
38 |
['core', 'simulator', 'mobility', 'internet-stack']) |
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:
1132
diff
changeset
|
39 |
obj.source = 'main-grid-topology.cc' |
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:
1132
diff
changeset
|
40 |
|
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:
1132
diff
changeset
|
41 |
obj = bld.create_ns3_program('main-random-topology', |
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:
1132
diff
changeset
|
42 |
['core', 'simulator', 'mobility']) |
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:
1132
diff
changeset
|
43 |
obj.source = 'main-random-topology.cc' |
1947 | 44 |
|
1645
7411d6e0f82a
Update random mobility sample to new API
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
1496
diff
changeset
|
45 |
obj = bld.create_ns3_program('main-random-walk', |
7411d6e0f82a
Update random mobility sample to new API
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
1496
diff
changeset
|
46 |
['core', 'simulator', 'mobility']) |
7411d6e0f82a
Update random mobility sample to new API
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
1496
diff
changeset
|
47 |
obj.source = 'main-random-walk.cc' |
1882
061f7f7f9992
start of work towards port of wifi code
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1258
diff
changeset
|
48 |
|
2066
4477ee7d0798
test propagation losses
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2052
diff
changeset
|
49 |
obj = bld.create_ns3_program('main-propagation-loss', |
4477ee7d0798
test propagation losses
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2052
diff
changeset
|
50 |
['core', 'simulator', 'mobility', 'wifi']) |
4477ee7d0798
test propagation losses
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2052
diff
changeset
|
51 |
obj.source = 'main-propagation-loss.cc' |
1947 | 52 |
|
5876
29b330c3a070
Add simple random variable sample
Tom Henderson <tomh@tomh.org>
parents:
5715
diff
changeset
|
53 |
obj = bld.create_ns3_program('sample-random-variable', |
29b330c3a070
Add simple random variable sample
Tom Henderson <tomh@tomh.org>
parents:
5715
diff
changeset
|
54 |
['core', 'simulator']) |
29b330c3a070
Add simple random variable sample
Tom Henderson <tomh@tomh.org>
parents:
5715
diff
changeset
|
55 |
obj.source = 'sample-random-variable.cc' |
29b330c3a070
Add simple random variable sample
Tom Henderson <tomh@tomh.org>
parents:
5715
diff
changeset
|
56 |