src/point-to-point/wscript
author Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
Thu, 08 Sep 2011 16:13:40 +0100
changeset 7487 82cd20da9650
parent 7031 d15eb12117e5
child 9277 0f87d1cb030c
permissions -rw-r--r--
Upgrade to waf-1.6.7, work in progress
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
e8a4183dfe00 Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff changeset
     4
def build(bld):
6833
1bc4bc4f3568 Remove dependency on PointToPointNetDevice from MPI code; organize MPI model/ directory
Tom Henderson <tomh@tomh.org>
parents: 6823
diff changeset
     5
    module = bld.create_ns3_module('point-to-point', ['network', 'mpi'])
974
8fe48f318a88 cleanup the wscripts
Emmanuelle Laprise <emmanuelle.laprise@bluekazoo.ca>
parents: 973
diff changeset
     6
    module.source = [
6848
1f453ad50ef3 Converts csma, emu, tap-bridge, point-to-point, wifi and wimax modules into modular format
Lalith Suresh <suresh.lalith@gmail.com>
parents: 6833
diff changeset
     7
        'model/point-to-point-net-device.cc',
1f453ad50ef3 Converts csma, emu, tap-bridge, point-to-point, wifi and wimax modules into modular format
Lalith Suresh <suresh.lalith@gmail.com>
parents: 6833
diff changeset
     8
        'model/point-to-point-channel.cc',
1f453ad50ef3 Converts csma, emu, tap-bridge, point-to-point, wifi and wimax modules into modular format
Lalith Suresh <suresh.lalith@gmail.com>
parents: 6833
diff changeset
     9
        'model/point-to-point-remote-channel.cc',
1f453ad50ef3 Converts csma, emu, tap-bridge, point-to-point, wifi and wimax modules into modular format
Lalith Suresh <suresh.lalith@gmail.com>
parents: 6833
diff changeset
    10
        'model/ppp-header.cc',
1f453ad50ef3 Converts csma, emu, tap-bridge, point-to-point, wifi and wimax modules into modular format
Lalith Suresh <suresh.lalith@gmail.com>
parents: 6833
diff changeset
    11
        'helper/point-to-point-helper.cc',
537
e8a4183dfe00 Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff changeset
    12
        ]
6972
01039b15c8eb Move tests from some modules to their test libraries
Mitch Watrous <watrous@u.washington.edu>
parents: 6905
diff changeset
    13
01039b15c8eb Move tests from some modules to their test libraries
Mitch Watrous <watrous@u.washington.edu>
parents: 6905
diff changeset
    14
    module_test = bld.create_ns3_module_test_library('point-to-point')
01039b15c8eb Move tests from some modules to their test libraries
Mitch Watrous <watrous@u.washington.edu>
parents: 6905
diff changeset
    15
    module_test.source = [
01039b15c8eb Move tests from some modules to their test libraries
Mitch Watrous <watrous@u.washington.edu>
parents: 6905
diff changeset
    16
        'test/point-to-point-test.cc',
01039b15c8eb Move tests from some modules to their test libraries
Mitch Watrous <watrous@u.washington.edu>
parents: 6905
diff changeset
    17
        ]
01039b15c8eb Move tests from some modules to their test libraries
Mitch Watrous <watrous@u.washington.edu>
parents: 6905
diff changeset
    18
7487
82cd20da9650 Upgrade to waf-1.6.7, work in progress
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 7031
diff changeset
    19
    headers = bld.new_task_gen(features=['ns3header'])
2609
931d59bb1303 Add a 'module' attribute to the ns3header object specifying which module each set of headers belongs to.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 1217
diff changeset
    20
    headers.module = 'point-to-point'
537
e8a4183dfe00 Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff changeset
    21
    headers.source = [
6848
1f453ad50ef3 Converts csma, emu, tap-bridge, point-to-point, wifi and wimax modules into modular format
Lalith Suresh <suresh.lalith@gmail.com>
parents: 6833
diff changeset
    22
        'model/point-to-point-net-device.h',
1f453ad50ef3 Converts csma, emu, tap-bridge, point-to-point, wifi and wimax modules into modular format
Lalith Suresh <suresh.lalith@gmail.com>
parents: 6833
diff changeset
    23
        'model/point-to-point-channel.h',
1f453ad50ef3 Converts csma, emu, tap-bridge, point-to-point, wifi and wimax modules into modular format
Lalith Suresh <suresh.lalith@gmail.com>
parents: 6833
diff changeset
    24
        'model/point-to-point-remote-channel.h',
1f453ad50ef3 Converts csma, emu, tap-bridge, point-to-point, wifi and wimax modules into modular format
Lalith Suresh <suresh.lalith@gmail.com>
parents: 6833
diff changeset
    25
        'model/ppp-header.h',
1f453ad50ef3 Converts csma, emu, tap-bridge, point-to-point, wifi and wimax modules into modular format
Lalith Suresh <suresh.lalith@gmail.com>
parents: 6833
diff changeset
    26
        'helper/point-to-point-helper.h',
537
e8a4183dfe00 Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff changeset
    27
        ]
e8a4183dfe00 Add support for building with WAF
Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
parents:
diff changeset
    28
7031
d15eb12117e5 Move example from core to point-to-point
Mitch Watrous <watrous@u.washington.edu>
parents: 6972
diff changeset
    29
    if (bld.env['ENABLE_EXAMPLES']):
d15eb12117e5 Move example from core to point-to-point
Mitch Watrous <watrous@u.washington.edu>
parents: 6972
diff changeset
    30
        bld.add_subdirs('examples')
d15eb12117e5 Move example from core to point-to-point
Mitch Watrous <watrous@u.washington.edu>
parents: 6972
diff changeset
    31
6905
355d6562399e Modular bindings: scan the applications, contrib, mpi, flow-monitor, and point-to-point modules.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 6864
diff changeset
    32
    bld.ns3_python_bindings()