src/devices/virtual-net-device/wscript
author Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
Mon, 25 Oct 2010 15:13:44 +0100
changeset 6636 913bcb88a6a8
parent 4541 e943b94bf523
child 6823 a27f86fb4e55
permissions -rw-r--r--
Convert the virtual-net-device module to the new layout
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):
4541
e943b94bf523 Rename TapNetDevice to VirtualNetDevice
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 4536
diff changeset
     5
    module = bld.create_ns3_module('virtual-net-device', ['node'])
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')