examples/wscript
author Florian Westphal <fw@strlen.de>
Wed, 03 Sep 2008 23:24:59 +0200
changeset 3595 693faf7f4e9b
parent 3581 048d80fcffde
child 3616 660d3a0c40cd
permissions -rw-r--r--
nsc: Fix build problem if gtk config store is disabled gtk config store pulled in libdl.so for us, so things fail to link of the config store isn't enabled. This makes nsc pull in libdl itself when its enabled.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
600
fd944dbf33c6 WAF: simplify wscripts using the new chained uselib_local dependencies feature of WAF SVN; now build all samples and examples; add --disable-rpath configure option; add WAF build instructions.
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; -*-
fd944dbf33c6 WAF: simplify wscripts using the new chained uselib_local dependencies feature of WAF SVN; now build all samples and examples; add --disable-rpath configure option; add WAF build instructions.
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff changeset
     2
fd944dbf33c6 WAF: simplify wscripts using the new chained uselib_local dependencies feature of WAF SVN; now build all samples and examples; add --disable-rpath configure option; add WAF build instructions.
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff changeset
     3
def build(bld):
3331
7305032b6100 add updated tutorial examples
Craig Dowell <craigdo@ee.washington.edu>
parents: 3302
diff changeset
     4
    obj = bld.create_ns3_program('hello-simulator')
7305032b6100 add updated tutorial examples
Craig Dowell <craigdo@ee.washington.edu>
parents: 3302
diff changeset
     5
    obj.source = 'hello-simulator.cc'
7305032b6100 add updated tutorial examples
Craig Dowell <craigdo@ee.washington.edu>
parents: 3302
diff changeset
     6
        
2896
cb77c96e6149 revive mixed-wireless example from Simutools tutorial
Tom Henderson <tomh@tomh.org>
parents: 2819
diff changeset
     7
    obj = bld.create_ns3_program('mixed-wireless',
3260
8c0ab08144e6 bug 186: internet-node directory must be renamed to internet-stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2896
diff changeset
     8
        ['core', 'simulator', 'mobility', 'wifi', 'point-to-point', 'internet-stack'])
2896
cb77c96e6149 revive mixed-wireless example from Simutools tutorial
Tom Henderson <tomh@tomh.org>
parents: 2819
diff changeset
     9
    obj.source = 'mixed-wireless.cc'
cb77c96e6149 revive mixed-wireless example from Simutools tutorial
Tom Henderson <tomh@tomh.org>
parents: 2819
diff changeset
    10
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: 1198
diff changeset
    11
    obj = bld.create_ns3_program('simple-global-routing',
3260
8c0ab08144e6 bug 186: internet-node directory must be renamed to internet-stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2896
diff changeset
    12
        ['point-to-point', 'internet-stack', 'global-routing'])
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: 1198
diff changeset
    13
    obj.source = 'simple-global-routing.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: 1198
diff changeset
    14
1776
0d5be0c3d229 Add support for non-unit-cost metrics for Ipv4Interfaces (for use in routing); add example script simple-alternate-routing.cc
Tom Henderson <tomh@tomh.org>
parents: 1747
diff changeset
    15
    obj = bld.create_ns3_program('simple-alternate-routing',
3260
8c0ab08144e6 bug 186: internet-node directory must be renamed to internet-stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2896
diff changeset
    16
        ['point-to-point', 'internet-stack', 'global-routing'])
1776
0d5be0c3d229 Add support for non-unit-cost metrics for Ipv4Interfaces (for use in routing); add example script simple-alternate-routing.cc
Tom Henderson <tomh@tomh.org>
parents: 1747
diff changeset
    17
    obj.source = 'simple-alternate-routing.cc'
0d5be0c3d229 Add support for non-unit-cost metrics for Ipv4Interfaces (for use in routing); add example script simple-alternate-routing.cc
Tom Henderson <tomh@tomh.org>
parents: 1747
diff changeset
    18
1820
736919bd4874 Add src/common/error-model implementation and example script, and add to NetDevices
Tom Henderson <tomh@tomh.org>
parents: 1781
diff changeset
    19
    obj = bld.create_ns3_program('simple-error-model',
3260
8c0ab08144e6 bug 186: internet-node directory must be renamed to internet-stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2896
diff changeset
    20
        ['point-to-point', 'internet-stack'])
1820
736919bd4874 Add src/common/error-model implementation and example script, and add to NetDevices
Tom Henderson <tomh@tomh.org>
parents: 1781
diff changeset
    21
    obj.source = 'simple-error-model.cc'
736919bd4874 Add src/common/error-model implementation and example script, and add to NetDevices
Tom Henderson <tomh@tomh.org>
parents: 1781
diff changeset
    22
1272
67a2ba1143e0 rename to csma
Craig Dowell <craigdo@ee.washington.edu>
parents: 1217
diff changeset
    23
    obj = bld.create_ns3_program('csma-one-subnet',
3260
8c0ab08144e6 bug 186: internet-node directory must be renamed to internet-stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2896
diff changeset
    24
        ['csma', 'internet-stack'])
1272
67a2ba1143e0 rename to csma
Craig Dowell <craigdo@ee.washington.edu>
parents: 1217
diff changeset
    25
    obj.source = 'csma-one-subnet.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: 1198
diff changeset
    26
3440
4cedf996375d Start of a BridgeNetDevice example, using csma (basically an Ethernet Switch).
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3336
diff changeset
    27
    obj = bld.create_ns3_program('csma-bridge',
4cedf996375d Start of a BridgeNetDevice example, using csma (basically an Ethernet Switch).
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3336
diff changeset
    28
        ['bridge', 'csma', 'internet-stack'])
4cedf996375d Start of a BridgeNetDevice example, using csma (basically an Ethernet Switch).
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3336
diff changeset
    29
    obj.source = 'csma-bridge.cc'
4cedf996375d Start of a BridgeNetDevice example, using csma (basically an Ethernet Switch).
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3336
diff changeset
    30
1496
0ad4c18b475c start of udp echo applications
Craig Dowell <craigdo@ee.washington.edu>
parents: 1449
diff changeset
    31
    obj = bld.create_ns3_program('udp-echo',
3260
8c0ab08144e6 bug 186: internet-node directory must be renamed to internet-stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2896
diff changeset
    32
        ['csma', 'internet-stack'])
1496
0ad4c18b475c start of udp echo applications
Craig Dowell <craigdo@ee.washington.edu>
parents: 1449
diff changeset
    33
    obj.source = 'udp-echo.cc'
0ad4c18b475c start of udp echo applications
Craig Dowell <craigdo@ee.washington.edu>
parents: 1449
diff changeset
    34
3560
5aa65b1ea001 add realtime simulator and associated tests
Craig Dowell <craigdo@ee.washington.edu>
parents: 3523
diff changeset
    35
    obj = bld.create_ns3_program('realtime-udp-echo',
5aa65b1ea001 add realtime simulator and associated tests
Craig Dowell <craigdo@ee.washington.edu>
parents: 3523
diff changeset
    36
        ['csma', 'internet-stack'])
5aa65b1ea001 add realtime simulator and associated tests
Craig Dowell <craigdo@ee.washington.edu>
parents: 3523
diff changeset
    37
    obj.source = 'realtime-udp-echo.cc'
5aa65b1ea001 add realtime simulator and associated tests
Craig Dowell <craigdo@ee.washington.edu>
parents: 3523
diff changeset
    38
1318
89b78e2d521e Fix for bug69: set local address correctly upon UDP connect; apply correct UDP connect() semantics (that sendto cannot override addresses on a connected socket); if destination is IPv4 limited broadcast address, convert to subnet-directed broadcast and send out on each interface; provide example csma-broadcast.cc script
Tom Henderson <tomh@tomh.org>
parents: 1305
diff changeset
    39
    obj = bld.create_ns3_program('csma-broadcast',
3260
8c0ab08144e6 bug 186: internet-node directory must be renamed to internet-stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2896
diff changeset
    40
        ['csma', 'internet-stack'])
1318
89b78e2d521e Fix for bug69: set local address correctly upon UDP connect; apply correct UDP connect() semantics (that sendto cannot override addresses on a connected socket); if destination is IPv4 limited broadcast address, convert to subnet-directed broadcast and send out on each interface; provide example csma-broadcast.cc script
Tom Henderson <tomh@tomh.org>
parents: 1305
diff changeset
    41
    obj.source = 'csma-broadcast.cc'
89b78e2d521e Fix for bug69: set local address correctly upon UDP connect; apply correct UDP connect() semantics (that sendto cannot override addresses on a connected socket); if destination is IPv4 limited broadcast address, convert to subnet-directed broadcast and send out on each interface; provide example csma-broadcast.cc script
Tom Henderson <tomh@tomh.org>
parents: 1305
diff changeset
    42
1272
67a2ba1143e0 rename to csma
Craig Dowell <craigdo@ee.washington.edu>
parents: 1217
diff changeset
    43
    obj = bld.create_ns3_program('csma-packet-socket',
3260
8c0ab08144e6 bug 186: internet-node directory must be renamed to internet-stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2896
diff changeset
    44
        ['csma', 'internet-stack'])
1272
67a2ba1143e0 rename to csma
Craig Dowell <craigdo@ee.washington.edu>
parents: 1217
diff changeset
    45
    obj.source = 'csma-packet-socket.cc'
1278
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents: 1272
diff changeset
    46
1428
a8f3d01d4a2c untested multicast support
Craig Dowell <craigdo@ee.washington.edu>
parents: 1272
diff changeset
    47
    obj = bld.create_ns3_program('csma-multicast',
3260
8c0ab08144e6 bug 186: internet-node directory must be renamed to internet-stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2896
diff changeset
    48
        ['csma', 'internet-stack'])
1428
a8f3d01d4a2c untested multicast support
Craig Dowell <craigdo@ee.washington.edu>
parents: 1272
diff changeset
    49
    obj.source = 'csma-multicast.cc'
a8f3d01d4a2c untested multicast support
Craig Dowell <craigdo@ee.washington.edu>
parents: 1272
diff changeset
    50
1278
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents: 1272
diff changeset
    51
    obj = bld.create_ns3_program( 'mixed-global-routing',
3260
8c0ab08144e6 bug 186: internet-node directory must be renamed to internet-stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2896
diff changeset
    52
        ['point-to-point', 'internet-stack', 'global-routing' , 'csma-cd'])
1278
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents: 1272
diff changeset
    53
    obj.source = 'mixed-global-routing.cc'
1738
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 1730 1305
diff changeset
    54
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 1730 1305
diff changeset
    55
    obj = bld.create_ns3_program('simple-point-to-point-olsr',
3260
8c0ab08144e6 bug 186: internet-node directory must be renamed to internet-stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2896
diff changeset
    56
        ['point-to-point', 'internet-stack', 'olsr'])
1740
3d3168e8fef6 Update OLSR code to NS-3 API changes.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 1738
diff changeset
    57
    obj.source = 'simple-point-to-point-olsr.cc'
2224
6f97d21a99c2 Added in ns-3-tcp (second try)
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 1820
diff changeset
    58
6f97d21a99c2 Added in ns-3-tcp (second try)
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 1820
diff changeset
    59
    obj = bld.create_ns3_program('tcp-large-transfer',
3260
8c0ab08144e6 bug 186: internet-node directory must be renamed to internet-stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2896
diff changeset
    60
        ['point-to-point', 'internet-stack'])
2224
6f97d21a99c2 Added in ns-3-tcp (second try)
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 1820
diff changeset
    61
    obj.source = 'tcp-large-transfer.cc'
6f97d21a99c2 Added in ns-3-tcp (second try)
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 1820
diff changeset
    62
3384
11747ae5b632 Check in a tcp example which has rate error models
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 3366
diff changeset
    63
    obj = bld.create_ns3_program('tcp-errors',
11747ae5b632 Check in a tcp example which has rate error models
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 3366
diff changeset
    64
        ['point-to-point', 'internet-stack'])
11747ae5b632 Check in a tcp example which has rate error models
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 3366
diff changeset
    65
    obj.source = 'tcp-errors.cc'
11747ae5b632 Check in a tcp example which has rate error models
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 3366
diff changeset
    66
3580
5818912ae9a3 nsc: example files.
Florian Westphal <fw@strlen.de>
parents: 3560
diff changeset
    67
    obj = bld.create_ns3_program('tcp-nsc-lfn',
5818912ae9a3 nsc: example files.
Florian Westphal <fw@strlen.de>
parents: 3560
diff changeset
    68
      ['point-to-point', 'internet-stack'])
5818912ae9a3 nsc: example files.
Florian Westphal <fw@strlen.de>
parents: 3560
diff changeset
    69
    obj.source = 'tcp-nsc-lfn.cc'
5818912ae9a3 nsc: example files.
Florian Westphal <fw@strlen.de>
parents: 3560
diff changeset
    70
5818912ae9a3 nsc: example files.
Florian Westphal <fw@strlen.de>
parents: 3560
diff changeset
    71
    obj = bld.create_ns3_program('tcp-nsc-zoo',
5818912ae9a3 nsc: example files.
Florian Westphal <fw@strlen.de>
parents: 3560
diff changeset
    72
      ['csma', 'internet-stack'])
5818912ae9a3 nsc: example files.
Florian Westphal <fw@strlen.de>
parents: 3560
diff changeset
    73
    obj.source = 'tcp-nsc-zoo.cc'
5818912ae9a3 nsc: example files.
Florian Westphal <fw@strlen.de>
parents: 3560
diff changeset
    74
3366
923e47a54fe8 Add a tcp server example
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 3336
diff changeset
    75
    obj = bld.create_ns3_program('tcp-star-server',
923e47a54fe8 Add a tcp server example
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 3336
diff changeset
    76
        ['point-to-point', 'internet-stack'])
923e47a54fe8 Add a tcp server example
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 3336
diff changeset
    77
    obj.source = 'tcp-star-server.cc'
923e47a54fe8 Add a tcp server example
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 3336
diff changeset
    78
2662
2ace0f6fd238 move wifi examples to example directory
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2224
diff changeset
    79
    obj = bld.create_ns3_program('wifi-adhoc',
2ace0f6fd238 move wifi examples to example directory
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2224
diff changeset
    80
                                 ['core', 'simulator', 'mobility', 'wifi'])
2ace0f6fd238 move wifi examples to example directory
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2224
diff changeset
    81
    obj.source = 'wifi-adhoc.cc'
2224
6f97d21a99c2 Added in ns-3-tcp (second try)
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 1820
diff changeset
    82
2662
2ace0f6fd238 move wifi examples to example directory
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2224
diff changeset
    83
    obj = bld.create_ns3_program('wifi-ap',
2ace0f6fd238 move wifi examples to example directory
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2224
diff changeset
    84
                                 ['core', 'simulator', 'mobility', 'wifi'])
2ace0f6fd238 move wifi examples to example directory
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2224
diff changeset
    85
    obj.source = 'wifi-ap.cc'
2ace0f6fd238 move wifi examples to example directory
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2224
diff changeset
    86
3570
44b0bc6817c6 Stats module and example merged in.
tjkopena@cs.drexel.edu
parents: 3560
diff changeset
    87
    bld.add_subdirs('stats')