src/dsdv/wscript
author Tom Henderson <tomh@tomh.org>
Wed, 23 May 2012 23:10:43 -0700
changeset 8799 d51ce48206ee
parent 7487 82cd20da9650
child 9277 0f87d1cb030c
permissions -rw-r--r--
rescan bindings
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6717
e041eb593928 DSDV routing protocol
Hemanth Narra <hemanth@ittc.ku.edu>
parents:
diff changeset
     1
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
e041eb593928 DSDV routing protocol
Hemanth Narra <hemanth@ittc.ku.edu>
parents:
diff changeset
     2
e041eb593928 DSDV routing protocol
Hemanth Narra <hemanth@ittc.ku.edu>
parents:
diff changeset
     3
def build(bld):
6873
b2234c2d38d9 Fix dependencies in various wscripts
Mitch Watrous <watrous@u.washington.edu>
parents: 6852
diff changeset
     4
    module = bld.create_ns3_module('dsdv', ['internet', 'wifi', 'mesh', 'applications'])
6717
e041eb593928 DSDV routing protocol
Hemanth Narra <hemanth@ittc.ku.edu>
parents:
diff changeset
     5
    module.includes = '.'
e041eb593928 DSDV routing protocol
Hemanth Narra <hemanth@ittc.ku.edu>
parents:
diff changeset
     6
    module.source = [
e041eb593928 DSDV routing protocol
Hemanth Narra <hemanth@ittc.ku.edu>
parents:
diff changeset
     7
        'model/dsdv-rtable.cc',
e041eb593928 DSDV routing protocol
Hemanth Narra <hemanth@ittc.ku.edu>
parents:
diff changeset
     8
        'model/dsdv-packet-queue.cc',
e041eb593928 DSDV routing protocol
Hemanth Narra <hemanth@ittc.ku.edu>
parents:
diff changeset
     9
        'model/dsdv-packet.cc',
e041eb593928 DSDV routing protocol
Hemanth Narra <hemanth@ittc.ku.edu>
parents:
diff changeset
    10
        'model/dsdv-routing-protocol.cc',
e041eb593928 DSDV routing protocol
Hemanth Narra <hemanth@ittc.ku.edu>
parents:
diff changeset
    11
        'helper/dsdv-helper.cc',
6947
a4acf45d3dc9 Create test module libraries for some modules
Mitch Watrous <watrous@u.washington.edu>
parents: 6932
diff changeset
    12
        ]
a4acf45d3dc9 Create test module libraries for some modules
Mitch Watrous <watrous@u.washington.edu>
parents: 6932
diff changeset
    13
a4acf45d3dc9 Create test module libraries for some modules
Mitch Watrous <watrous@u.washington.edu>
parents: 6932
diff changeset
    14
    module_test = bld.create_ns3_module_test_library('dsdv')
a4acf45d3dc9 Create test module libraries for some modules
Mitch Watrous <watrous@u.washington.edu>
parents: 6932
diff changeset
    15
    module_test.source = [
6717
e041eb593928 DSDV routing protocol
Hemanth Narra <hemanth@ittc.ku.edu>
parents:
diff changeset
    16
        'test/dsdv-testcase.cc',
e041eb593928 DSDV routing protocol
Hemanth Narra <hemanth@ittc.ku.edu>
parents:
diff changeset
    17
        ]
e041eb593928 DSDV routing protocol
Hemanth Narra <hemanth@ittc.ku.edu>
parents:
diff changeset
    18
7487
82cd20da9650 Upgrade to waf-1.6.7, work in progress
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 6947
diff changeset
    19
    headers = bld.new_task_gen(features=['ns3header'])
6717
e041eb593928 DSDV routing protocol
Hemanth Narra <hemanth@ittc.ku.edu>
parents:
diff changeset
    20
    headers.module = 'dsdv'
e041eb593928 DSDV routing protocol
Hemanth Narra <hemanth@ittc.ku.edu>
parents:
diff changeset
    21
    headers.source = [
e041eb593928 DSDV routing protocol
Hemanth Narra <hemanth@ittc.ku.edu>
parents:
diff changeset
    22
        'model/dsdv-rtable.h',
e041eb593928 DSDV routing protocol
Hemanth Narra <hemanth@ittc.ku.edu>
parents:
diff changeset
    23
        'model/dsdv-packet-queue.h',
e041eb593928 DSDV routing protocol
Hemanth Narra <hemanth@ittc.ku.edu>
parents:
diff changeset
    24
        'model/dsdv-packet.h',
e041eb593928 DSDV routing protocol
Hemanth Narra <hemanth@ittc.ku.edu>
parents:
diff changeset
    25
        'model/dsdv-routing-protocol.h',
e041eb593928 DSDV routing protocol
Hemanth Narra <hemanth@ittc.ku.edu>
parents:
diff changeset
    26
        'helper/dsdv-helper.h',
e041eb593928 DSDV routing protocol
Hemanth Narra <hemanth@ittc.ku.edu>
parents:
diff changeset
    27
        ]
e041eb593928 DSDV routing protocol
Hemanth Narra <hemanth@ittc.ku.edu>
parents:
diff changeset
    28
    if (bld.env['ENABLE_EXAMPLES']):
e041eb593928 DSDV routing protocol
Hemanth Narra <hemanth@ittc.ku.edu>
parents:
diff changeset
    29
      bld.add_subdirs('examples')
6932
3b497f4f6ad9 Add more modular bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 6873
diff changeset
    30
3b497f4f6ad9 Add more modular bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 6873
diff changeset
    31
    bld.ns3_python_bindings()