src/helper/wscript
author Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
Fri, 26 Jun 2009 15:34:16 +0200
changeset 4616 a84f60b6cd12
parent 4472 e20a31541404
child 4731 510db8599bfb
child 5100 d0cafb0ebeeb
child 5566 5e804c7b0c92
permissions -rw-r--r--
bug 600: lower the default routing priority of Ipv4GlobalRouting; move to helper
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2603
1308da4cb3bf move helpers to their own dir.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     1
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
1308da4cb3bf move helpers to their own dir.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     2
1308da4cb3bf move helpers to their own dir.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     3
def build(bld):
3260
8c0ab08144e6 bug 186: internet-node directory must be renamed to internet-stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2798
diff changeset
     4
    helper = bld.create_ns3_module('helper', ['internet-stack', 'wifi', 'point-to-point', 'csma', 'olsr', 'global-routing', 'onoff', 'packet-sink', 'udp-echo'])
2603
1308da4cb3bf move helpers to their own dir.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     5
    helper.source = [
1308da4cb3bf move helpers to their own dir.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     6
        'node-container.cc',
1308da4cb3bf move helpers to their own dir.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     7
        'net-device-container.cc',
1308da4cb3bf move helpers to their own dir.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     8
        'wifi-helper.cc',
1308da4cb3bf move helpers to their own dir.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     9
        'olsr-helper.cc',
1308da4cb3bf move helpers to their own dir.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    10
        'point-to-point-helper.cc',
1308da4cb3bf move helpers to their own dir.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    11
        'csma-helper.cc',
1308da4cb3bf move helpers to their own dir.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    12
        'mobility-helper.cc',
2692
e4387e19039d move another helper to the helper dir
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2610
diff changeset
    13
        'ns2-mobility-helper.cc',
2711
83addb15f632 ip helper and find ip interface for device method on ipv4
Craig Dowell <craigdo@ee.washington.edu>
parents: 2692
diff changeset
    14
        'ipv4-address-helper.cc',
4472
e20a31541404 src/ and utils/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents: 4408
diff changeset
    15
        'ipv4-static-routing-helper.cc',
2708
83cc896e501c InternetStackHelper.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2692
diff changeset
    16
        'internet-stack-helper.cc',
2731
9eb9988afd08 a bunch of new helpers.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2714
diff changeset
    17
        'application-container.cc',
9eb9988afd08 a bunch of new helpers.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2714
diff changeset
    18
        'on-off-helper.cc',
9eb9988afd08 a bunch of new helpers.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2714
diff changeset
    19
        'packet-sink-helper.cc',
2738
9d7ee6d2b9f0 add new files to build.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2731
diff changeset
    20
        'packet-socket-helper.cc',
2748
f65f6e2629dc introduce Ipv4InterfaceContainer and make Ipv4AddressHelper::Allocate return it.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2738
diff changeset
    21
        'ipv4-interface-container.cc',
2768
fcb615f2c57c port to helper API
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2748
diff changeset
    22
        'udp-echo-helper.cc',
3524
028b7de98fb1 bug 276: bridge netdevice has no helper class.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3260
diff changeset
    23
        'bridge-helper.cc',
4000
07bf8da834e0 bug 435: file names are not consistent
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3914
diff changeset
    24
        'yans-wifi-helper.cc',
3821
9ea825f066a2 Apply icmp-application patch frm lacage
Craig Dowell <craigdo@ee.washington.edu>
parents: 3524
diff changeset
    25
        'v4ping-helper.cc',
4406
39f119de91ef Add WifiMacHelper
Mirko Banchi <mk.banchi@gmail.com>
parents: 4185
diff changeset
    26
        'nqos-wifi-mac-helper.cc',
4408
76a169b3db3d add qos MACs
Mirko Banchi <mk.banchi@gmail.com>
parents: 4406
diff changeset
    27
        'qos-wifi-mac-helper.cc',
4616
a84f60b6cd12 bug 600: lower the default routing priority of Ipv4GlobalRouting; move to helper
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 4472
diff changeset
    28
        'ipv4-global-routing-helper.cc',
a84f60b6cd12 bug 600: lower the default routing priority of Ipv4GlobalRouting; move to helper
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 4472
diff changeset
    29
        'ipv4-list-routing-helper.cc',
a84f60b6cd12 bug 600: lower the default routing priority of Ipv4GlobalRouting; move to helper
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 4472
diff changeset
    30
        'ipv4-routing-helper.cc',
2603
1308da4cb3bf move helpers to their own dir.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    31
        ]
1308da4cb3bf move helpers to their own dir.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    32
4064
10222f483860 Upgrade to new WAF, work in progress
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 4000
diff changeset
    33
    headers = bld.new_task_gen('ns3header')
2610
efc76831f06c Missing headers.module attribute in the new 'helper' module...
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 2603
diff changeset
    34
    headers.module = 'helper'
2603
1308da4cb3bf move helpers to their own dir.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    35
    headers.source = [
1308da4cb3bf move helpers to their own dir.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    36
        'node-container.h',
1308da4cb3bf move helpers to their own dir.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    37
        'net-device-container.h',
1308da4cb3bf move helpers to their own dir.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    38
        'wifi-helper.h',
1308da4cb3bf move helpers to their own dir.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    39
        'olsr-helper.h',
1308da4cb3bf move helpers to their own dir.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    40
        'point-to-point-helper.h',
1308da4cb3bf move helpers to their own dir.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    41
        'csma-helper.h',
1308da4cb3bf move helpers to their own dir.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    42
        'mobility-helper.h',
2692
e4387e19039d move another helper to the helper dir
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2610
diff changeset
    43
        'ns2-mobility-helper.h',
2711
83addb15f632 ip helper and find ip interface for device method on ipv4
Craig Dowell <craigdo@ee.washington.edu>
parents: 2692
diff changeset
    44
        'ipv4-address-helper.h',
4472
e20a31541404 src/ and utils/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents: 4408
diff changeset
    45
        'ipv4-static-routing-helper.h',
2708
83cc896e501c InternetStackHelper.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2692
diff changeset
    46
        'internet-stack-helper.h',
2731
9eb9988afd08 a bunch of new helpers.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2714
diff changeset
    47
        'application-container.h',
9eb9988afd08 a bunch of new helpers.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2714
diff changeset
    48
        'on-off-helper.h',
9eb9988afd08 a bunch of new helpers.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2714
diff changeset
    49
        'packet-sink-helper.h',
2738
9d7ee6d2b9f0 add new files to build.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2731
diff changeset
    50
        'packet-socket-helper.h',
2748
f65f6e2629dc introduce Ipv4InterfaceContainer and make Ipv4AddressHelper::Allocate return it.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2738
diff changeset
    51
        'ipv4-interface-container.h',
2768
fcb615f2c57c port to helper API
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2748
diff changeset
    52
        'udp-echo-helper.h',
3524
028b7de98fb1 bug 276: bridge netdevice has no helper class.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3260
diff changeset
    53
        'bridge-helper.h',
4000
07bf8da834e0 bug 435: file names are not consistent
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3914
diff changeset
    54
        'yans-wifi-helper.h',
3821
9ea825f066a2 Apply icmp-application patch frm lacage
Craig Dowell <craigdo@ee.washington.edu>
parents: 3524
diff changeset
    55
        'v4ping-helper.h',
4406
39f119de91ef Add WifiMacHelper
Mirko Banchi <mk.banchi@gmail.com>
parents: 4185
diff changeset
    56
        'nqos-wifi-mac-helper.h',
4408
76a169b3db3d add qos MACs
Mirko Banchi <mk.banchi@gmail.com>
parents: 4406
diff changeset
    57
        'qos-wifi-mac-helper.h',
4616
a84f60b6cd12 bug 600: lower the default routing priority of Ipv4GlobalRouting; move to helper
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 4472
diff changeset
    58
        'ipv4-global-routing-helper.h',
a84f60b6cd12 bug 600: lower the default routing priority of Ipv4GlobalRouting; move to helper
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 4472
diff changeset
    59
        'ipv4-list-routing-helper.h',
a84f60b6cd12 bug 600: lower the default routing priority of Ipv4GlobalRouting; move to helper
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 4472
diff changeset
    60
        'ipv4-routing-helper.h',
2603
1308da4cb3bf move helpers to their own dir.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    61
        ]
3854
c049b25f2ded osx doesn't emu
Craig Dowell <craigdo@ee.washington.edu>
parents: 3839
diff changeset
    62
c049b25f2ded osx doesn't emu
Craig Dowell <craigdo@ee.washington.edu>
parents: 3839
diff changeset
    63
    env = bld.env_of_name('default')
c049b25f2ded osx doesn't emu
Craig Dowell <craigdo@ee.washington.edu>
parents: 3839
diff changeset
    64
    if env['ENABLE_EMU']:
c049b25f2ded osx doesn't emu
Craig Dowell <craigdo@ee.washington.edu>
parents: 3839
diff changeset
    65
        helper.source.extend([
c049b25f2ded osx doesn't emu
Craig Dowell <craigdo@ee.washington.edu>
parents: 3839
diff changeset
    66
                'emu-helper.cc',
c049b25f2ded osx doesn't emu
Craig Dowell <craigdo@ee.washington.edu>
parents: 3839
diff changeset
    67
                ])
c049b25f2ded osx doesn't emu
Craig Dowell <craigdo@ee.washington.edu>
parents: 3839
diff changeset
    68
        headers.source.extend([
c049b25f2ded osx doesn't emu
Craig Dowell <craigdo@ee.washington.edu>
parents: 3839
diff changeset
    69
                'emu-helper.h',
c049b25f2ded osx doesn't emu
Craig Dowell <craigdo@ee.washington.edu>
parents: 3839
diff changeset
    70
                ])
4185
6740cafc08a9 don't build tap-bridge-helper or tap-wifi-dumbbell if tap-bride not enabled
Craig Dowell <craigdo@ee.washington.edu>
parents: 4163
diff changeset
    71
    if env['ENABLE_TAP']:
6740cafc08a9 don't build tap-bridge-helper or tap-wifi-dumbbell if tap-bride not enabled
Craig Dowell <craigdo@ee.washington.edu>
parents: 4163
diff changeset
    72
        helper.source.extend([
6740cafc08a9 don't build tap-bridge-helper or tap-wifi-dumbbell if tap-bride not enabled
Craig Dowell <craigdo@ee.washington.edu>
parents: 4163
diff changeset
    73
                'tap-bridge-helper.cc',
6740cafc08a9 don't build tap-bridge-helper or tap-wifi-dumbbell if tap-bride not enabled
Craig Dowell <craigdo@ee.washington.edu>
parents: 4163
diff changeset
    74
                ])
6740cafc08a9 don't build tap-bridge-helper or tap-wifi-dumbbell if tap-bride not enabled
Craig Dowell <craigdo@ee.washington.edu>
parents: 4163
diff changeset
    75
        headers.source.extend([
6740cafc08a9 don't build tap-bridge-helper or tap-wifi-dumbbell if tap-bride not enabled
Craig Dowell <craigdo@ee.washington.edu>
parents: 4163
diff changeset
    76
                'tap-bridge-helper.h',
6740cafc08a9 don't build tap-bridge-helper or tap-wifi-dumbbell if tap-bride not enabled
Craig Dowell <craigdo@ee.washington.edu>
parents: 4163
diff changeset
    77
                ])
3854
c049b25f2ded osx doesn't emu
Craig Dowell <craigdo@ee.washington.edu>
parents: 3839
diff changeset
    78