src/virtual-net-device/wscript
author Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
Thu, 08 Sep 2011 16:13:40 +0100
changeset 7487 82cd20da9650
parent 6871 56a1da6bac51
child 8831 5c3f2edc1c97
permissions -rw-r--r--
Upgrade to waf-1.6.7, work in progress
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):
6871
56a1da6bac51 fix a few more wscripts
Tom Henderson <tomh@tomh.org>
parents: 6852
diff changeset
     5
    module = bld.create_ns3_module('virtual-net-device', ['network', 'internet'])
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
        ]
7487
82cd20da9650 Upgrade to waf-1.6.7, work in progress
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 6871
diff changeset
     9
    headers = bld.new_task_gen(features=['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')