examples/wscript
author George Riley<riley@ece.gatech.edu>
Fri, 24 Aug 2007 11:44:11 -0400
changeset 1303 9856d1175cbb
parent 1278 41bf67d701a5
child 1305 27dd3e15308a
permissions -rw-r--r--
Change the protocol stack processing to pass packets by non-const reference, rather than const reference and value as was previously done. Also change the queue semantics to return the packet on a deque, rather than requiring a packet as a parameter. The problem with the original approach was that packet UID's were getting skipped. The fix handles the uid properly, and we get sequential packet uid's on the trace file.
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):
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
     4
        
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
     5
    obj = bld.create_ns3_program('simple-global-routing',
1272
67a2ba1143e0 rename to csma
Craig Dowell <craigdo@ee.washington.edu>
parents: 1217
diff changeset
     6
        ['point-to-point', 'internet-node', '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
     7
    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
     8
1272
67a2ba1143e0 rename to csma
Craig Dowell <craigdo@ee.washington.edu>
parents: 1217
diff changeset
     9
    obj = bld.create_ns3_program('simple-point-to-point',
67a2ba1143e0 rename to csma
Craig Dowell <craigdo@ee.washington.edu>
parents: 1217
diff changeset
    10
        ['point-to-point', 'internet-node'])
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.source = 'simple-point-to-point.cc'
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
    12
1303
9856d1175cbb Change the protocol stack processing to pass packets by non-const
George Riley<riley@ece.gatech.edu>
parents: 1278
diff changeset
    13
    obj = bld.create_ns3_program('really-simple-point-to-point',
9856d1175cbb Change the protocol stack processing to pass packets by non-const
George Riley<riley@ece.gatech.edu>
parents: 1278
diff changeset
    14
        ['point-to-point', 'internet-node'])
9856d1175cbb Change the protocol stack processing to pass packets by non-const
George Riley<riley@ece.gatech.edu>
parents: 1278
diff changeset
    15
    obj.source = 'really-simple-point-to-point.cc'
9856d1175cbb Change the protocol stack processing to pass packets by non-const
George Riley<riley@ece.gatech.edu>
parents: 1278
diff changeset
    16
1272
67a2ba1143e0 rename to csma
Craig Dowell <craigdo@ee.washington.edu>
parents: 1217
diff changeset
    17
    obj = bld.create_ns3_program('csma-one-subnet',
67a2ba1143e0 rename to csma
Craig Dowell <craigdo@ee.washington.edu>
parents: 1217
diff changeset
    18
        ['csma', 'internet-node'])
67a2ba1143e0 rename to csma
Craig Dowell <craigdo@ee.washington.edu>
parents: 1217
diff changeset
    19
    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
    20
1272
67a2ba1143e0 rename to csma
Craig Dowell <craigdo@ee.washington.edu>
parents: 1217
diff changeset
    21
    obj = bld.create_ns3_program('csma-packet-socket',
67a2ba1143e0 rename to csma
Craig Dowell <craigdo@ee.washington.edu>
parents: 1217
diff changeset
    22
        ['csma', 'internet-node'])
67a2ba1143e0 rename to csma
Craig Dowell <craigdo@ee.washington.edu>
parents: 1217
diff changeset
    23
    obj.source = 'csma-packet-socket.cc'
1278
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents: 1272
diff changeset
    24
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents: 1272
diff changeset
    25
    obj = bld.create_ns3_program( 'mixed-global-routing',
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents: 1272
diff changeset
    26
        ['point-to-point', 'internet-node', 'global-routing' , 'csma-cd'])
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents: 1272
diff changeset
    27
    obj.source = 'mixed-global-routing.cc'