src/devices/wifi/wscript
author Nicola Baldo <nicola@baldo.biz>
Mon, 31 Jan 2011 10:13:32 +0100
changeset 6797 f07f7f809160
parent 6673 ec22aa763e2d
permissions -rw-r--r--
created spectrum module

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

def build(bld):
    obj = bld.create_ns3_module('wifi', ['node'])
    obj.source = [
        'wifi-information-element.cc',
        'wifi-information-element-vector.cc',
        'wifi-channel.cc',
        'wifi-mode.cc',
        'ssid.cc',
        'wifi-phy.cc',
        'wifi-phy-state-helper.cc',
        'error-rate-model.cc',
        'yans-error-rate-model.cc',
        'nist-error-rate-model.cc',
        'dsss-error-rate-model.cc',
        'interference-helper.cc',
        'interference-helper-tx-duration-test.cc',
        'yans-wifi-phy.cc',
        'yans-wifi-channel.cc',
        'wifi-mac-header.cc',
        'wifi-mac-trailer.cc',
        'mac-low.cc',
        'wifi-mac-queue.cc',
        'mac-tx-middle.cc',
        'mac-rx-middle.cc',
        'dca-txop.cc',
        'supported-rates.cc',
        'capability-information.cc',
        'status-code.cc',
        'mgt-headers.cc',
        'random-stream.cc',
        'dcf-manager.cc',
        'dcf-manager-test.cc',
        'wifi-mac.cc',
        'regular-wifi-mac.cc',
        'wifi-remote-station-manager.cc',
        'ap-wifi-mac.cc',
        'sta-wifi-mac.cc',
        'adhoc-wifi-mac.cc',
        'wifi-net-device.cc',
        'arf-wifi-manager.cc',
        'aarf-wifi-manager.cc',
        'ideal-wifi-manager.cc',
        'constant-rate-wifi-manager.cc',
        'amrr-wifi-manager.cc',
        'onoe-wifi-manager.cc',
        'rraa-wifi-manager.cc',
        'aarfcd-wifi-manager.cc',
        'cara-wifi-manager.cc',
        'minstrel-wifi-manager.cc',
        'wifi-test.cc',
        'qos-tag.cc',
        'qos-utils.cc',
        'edca-txop-n.cc',
        'msdu-aggregator.cc',
        'amsdu-subframe-header.cc',
        'msdu-standard-aggregator.cc',
        'originator-block-ack-agreement.cc',
        'dcf.cc',
        'ctrl-headers.cc',
        'qos-blocked-destinations.cc',
        'block-ack-agreement.cc',
        'block-ack-manager.cc',
        'block-ack-test-suite.cc',
        'block-ack-cache.cc'
        ]
    headers = bld.new_task_gen('ns3header')
    headers.module = 'wifi'
    headers.source = [
        'wifi-information-element.h',
        'wifi-information-element-vector.h',
        'wifi-net-device.h',
        'wifi-channel.h',
        'wifi-mode.h',
        'ssid.h',
        'wifi-preamble.h',
	'wifi-phy-standard.h',
        'yans-wifi-phy.h',
        'yans-wifi-channel.h',
        'wifi-phy.h',
        'interference-helper.h',
        'wifi-remote-station-manager.h',
        'ap-wifi-mac.h',
        'sta-wifi-mac.h',
        'adhoc-wifi-mac.h',
        'arf-wifi-manager.h',
        'aarf-wifi-manager.h',
        'ideal-wifi-manager.h',
        'constant-rate-wifi-manager.h',
        'amrr-wifi-manager.h',
        'onoe-wifi-manager.h',
        'rraa-wifi-manager.h',
        'aarfcd-wifi-manager.h',
        'cara-wifi-manager.h',
        'minstrel-wifi-manager.h',
        'wifi-mac.h',
        'regular-wifi-mac.h',
        'wifi-phy.h',
        'supported-rates.h',
        'error-rate-model.h',
        'yans-error-rate-model.h',
        'nist-error-rate-model.h',
        'dsss-error-rate-model.h',
        'dca-txop.h',
        'wifi-mac-header.h',
        'qos-utils.h',
        'edca-txop-n.h',
        'msdu-aggregator.h',
        'amsdu-subframe-header.h',
        'qos-tag.h',
        'mgt-headers.h',
        'status-code.h',
        'capability-information.h',
        'dcf-manager.h',
        'mac-rx-middle.h', 
        'mac-low.h',
        'originator-block-ack-agreement.h',
        'dcf.h',
        'ctrl-headers.h',
        'block-ack-agreement.h',
        'block-ack-manager.h',
        'block-ack-cache.h'
        ]

    if bld.env['ENABLE_GSL']:
        obj.uselib = 'GSL GSLCBLAS M'

    obj = bld.create_ns3_program('wifi-phy-test',
        ['core', 'simulator', 'mobility', 'node', 'wifi'])
    obj.source = 'wifi-phy-test.cc'