src/csma/wscript
author Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
Sat, 12 Mar 2011 18:34:30 +0000
changeset 6893 5dccd86f90cf
parent 6873 b2234c2d38d9
child 7089 ebe626d82692
permissions -rw-r--r--
Modular Python bindings work (many bug fixes, more modules tested)

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

def build(bld):
    obj = bld.create_ns3_module('csma', ['network', 'point-to-point', 'applications', 'netanim'])
    obj.source = [
        'model/backoff.cc',
        'model/csma-net-device.cc',
        'model/csma-channel.cc',
        'helper/csma-helper.cc',
        'helper/csma-star-helper.cc',
        ]
    headers = bld.new_task_gen('ns3header')
    headers.module = 'csma'
    headers.source = [
        'model/backoff.h',
        'model/csma-net-device.h',
        'model/csma-channel.h',
        'helper/csma-helper.h',
        'helper/csma-star-helper.h',
        ]

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

    bld.ns3_python_bindings()