src/virtual-net-device/wscript
author Lalith Suresh <suresh.lalith@gmail.com>
Fri, 04 Mar 2011 01:26:54 +0000
changeset 6852 8f1a53d3f6ca
parent 6823 src/devices/virtual-net-device/wscript@a27f86fb4e55
child 6871 56a1da6bac51
permissions -rw-r--r--
Moves devices/* and routing/* to src/
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4536
dee7215f0334 Add TapNetDevice (formerly known as VirtualNetDevice)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     1
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
dee7215f0334 Add TapNetDevice (formerly known as VirtualNetDevice)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     2
dee7215f0334 Add TapNetDevice (formerly known as VirtualNetDevice)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     3
dee7215f0334 Add TapNetDevice (formerly known as VirtualNetDevice)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     4
def build(bld):
6823
a27f86fb4e55 Merge node and common modules into new network module
Tom Henderson <tomh@tomh.org>
parents: 6636
diff changeset
     5
    module = bld.create_ns3_module('virtual-net-device', ['network'])
4536
dee7215f0334 Add TapNetDevice (formerly known as VirtualNetDevice)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     6
    module.source = [
6636
913bcb88a6a8 Convert the virtual-net-device module to the new layout
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 4541
diff changeset
     7
        'model/virtual-net-device.cc',
4536
dee7215f0334 Add TapNetDevice (formerly known as VirtualNetDevice)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     8
        ]
dee7215f0334 Add TapNetDevice (formerly known as VirtualNetDevice)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     9
    headers = bld.new_task_gen('ns3header')
4541
e943b94bf523 Rename TapNetDevice to VirtualNetDevice
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 4536
diff changeset
    10
    headers.module = 'virtual-net-device'
4536
dee7215f0334 Add TapNetDevice (formerly known as VirtualNetDevice)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    11
    headers.source = [
6636
913bcb88a6a8 Convert the virtual-net-device module to the new layout
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 4541
diff changeset
    12
        'model/virtual-net-device.h',
4536
dee7215f0334 Add TapNetDevice (formerly known as VirtualNetDevice)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    13
        ]
dee7215f0334 Add TapNetDevice (formerly known as VirtualNetDevice)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    14
6636
913bcb88a6a8 Convert the virtual-net-device module to the new layout
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 4541
diff changeset
    15
    if bld.env['ENABLE_EXAMPLES']:
913bcb88a6a8 Convert the virtual-net-device module to the new layout
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 4541
diff changeset
    16
        bld.add_subdirs('examples')