samples/wscript
author Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
Fri, 26 Oct 2007 22:10:52 +0200
changeset 2040 3436ba2b4bf4
parent 2011 fdf7fc62025e
child 2052 b03cc9fe34c6
permissions -rw-r--r--
remove extraneous empty line
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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: 1132
diff changeset
     4
    obj = bld.create_ns3_program('main-debug')
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
     5
    obj.source = ['main-debug.cc', 'main-debug-other.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
     6
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
     7
    obj = bld.create_ns3_program('main-callback')
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
     8
    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
     9
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
    10
    obj = bld.create_ns3_program('main-ptr')
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
    11
    obj.source = 'main-ptr.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
    12
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
    obj = bld.create_ns3_program('main-simulator')
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
    14
    obj.source = 'main-simulator.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
    15
1258
33d510db1e37 merge with trunk
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1245 1217
diff changeset
    16
    obj = bld.create_ns3_program('main-packet-header', ['common', 'simulator'])
33d510db1e37 merge with trunk
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1245 1217
diff changeset
    17
    obj.source = 'main-packet-header.cc'
33d510db1e37 merge with trunk
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1245 1217
diff changeset
    18
33d510db1e37 merge with trunk
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1245 1217
diff changeset
    19
    obj = bld.create_ns3_program('main-packet-tag', ['common', 'simulator'])
33d510db1e37 merge with trunk
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1245 1217
diff changeset
    20
    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
    21
1258
33d510db1e37 merge with trunk
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1245 1217
diff changeset
    22
    obj = bld.create_ns3_program('main-packet-printer', ['common', 'simulator', 'internet-node'])
33d510db1e37 merge with trunk
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1245 1217
diff changeset
    23
    obj.source = 'main-packet-printer.cc'
537
e8a4183dfe00 Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff changeset
    24
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
    25
    obj = bld.create_ns3_program('main-test')
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
    26
    obj.source = 'main-test.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
    27
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
    28
    obj = bld.create_ns3_program('main-simple',
1496
0ad4c18b475c start of udp echo applications
Craig Dowell <craigdo@ee.washington.edu>
parents: 1258
diff changeset
    29
                                 ['node', 'internet-node', '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
    30
    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
    31
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
    32
    obj = bld.create_ns3_program('main-default-value',
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
                                 ['core', 'simulator', 'node', 'point-to-point'])
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
    34
    obj.source = 'main-default-value.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
    35
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
    obj = bld.create_ns3_program('main-grid-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
    37
                                 ['core', 'simulator', 'mobility', 'internet-node'])
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
    38
    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
    39
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
    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
    41
                                 ['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
    42
    obj.source = 'main-random-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
    43
1882
061f7f7f9992 start of work towards port of wifi code
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1258
diff changeset
    44
    obj = bld.create_ns3_program('main-adhoc-wifi',
061f7f7f9992 start of work towards port of wifi code
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1258
diff changeset
    45
                                 ['core', 'simulator', 'mobility', 'wifi'])
061f7f7f9992 start of work towards port of wifi code
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1258
diff changeset
    46
    obj.source = 'main-adhoc-wifi.cc'
2011
fdf7fc62025e ap/sta sample
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1947
diff changeset
    47
fdf7fc62025e ap/sta sample
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1947
diff changeset
    48
    obj = bld.create_ns3_program('main-ap-wifi',
fdf7fc62025e ap/sta sample
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1947
diff changeset
    49
                                 ['core', 'simulator', 'mobility', 'wifi'])
fdf7fc62025e ap/sta sample
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1947
diff changeset
    50
    obj.source = 'main-ap-wifi.cc'
1947
b0aa5b38eb15 merge with head
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1886 1645
diff changeset
    51
    
1645
7411d6e0f82a Update random mobility sample to new API
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 1496
diff changeset
    52
    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
    53
                                 ['core', 'simulator', 'mobility'])
7411d6e0f82a Update random mobility sample to new API
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 1496
diff changeset
    54
    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
    55
1947
b0aa5b38eb15 merge with head
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1886 1645
diff changeset
    56