src/olsr/wscript
author Mitch Watrous <watrous@u.washington.edu>
Mon, 07 Mar 2011 16:59:09 -0800
changeset 6873 b2234c2d38d9
parent 6852 8f1a53d3f6ca
child 6922 e264ea29df5e
permissions -rw-r--r--
Fix dependencies in various wscripts

## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-

def build(bld):
    module = bld.create_ns3_module('olsr', ['internet', 'contrib', 'point-to-point', 'wifi', 'mobility', 'applications', 'csma'])
    module.includes = '.'
    module.source = [
        'model/olsr-header.cc',
        'model/olsr-state.cc',
        'model/olsr-routing-protocol.cc',
        'helper/olsr-helper.cc',
        'test/regression-test-suite.cc',
        'test/hello-regression-test.cc',
        'test/tc-regression-test.cc',
        'test/bug780-test.cc',
        ]

    headers = bld.new_task_gen('ns3header')
    headers.module = 'olsr'
    headers.source = [
        'model/olsr-routing-protocol.h',
        'model/olsr-header.h',
        'model/olsr-state.h',
        'model/olsr-repositories.h',
        'helper/olsr-helper.h',
        ]


    if bld.env['ENABLE_EXAMPLES']:
        bld.add_subdirs('examples')