src/devices/uan/wscript
author Andrea Sacco <andrea.sacco85@gmail.com>
Tue, 21 Dec 2010 21:44:11 -0800
changeset 6715 ba60c821ad35
parent 6478 b401db8531f5
child 6740 e22c8a30fb0e
permissions -rw-r--r--
Energy support for UAN module and Li-Ion energy model
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6376
4e133d0aa098 UAN module addition
Leonard Tracy <lentracy@u.washington.edu>
parents:
diff changeset
     1
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
4e133d0aa098 UAN module addition
Leonard Tracy <lentracy@u.washington.edu>
parents:
diff changeset
     2
4e133d0aa098 UAN module addition
Leonard Tracy <lentracy@u.washington.edu>
parents:
diff changeset
     3
def build(bld):
6715
ba60c821ad35 Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents: 6478
diff changeset
     4
    module = bld.create_ns3_module('uan', ['node', 'energy'])
6376
4e133d0aa098 UAN module addition
Leonard Tracy <lentracy@u.washington.edu>
parents:
diff changeset
     5
    module.source = [
6478
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
     6
        'model/uan-channel.cc',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
     7
        'model/uan-phy-gen.cc',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
     8
        'model/uan-transducer-hd.cc',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
     9
        'model/uan-address.cc',
6715
ba60c821ad35 Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents: 6478
diff changeset
    10
	    'model/uan-net-device.cc',
6478
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    11
        'model/uan-tx-mode.cc',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    12
        'model/uan-prop-model.cc',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    13
        'model/uan-prop-model-ideal.cc',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    14
        'model/uan-mac-aloha.cc',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    15
        'model/uan-header-common.cc',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    16
        'model/uan-noise-model-default.cc',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    17
        'model/uan-mac-cw.cc',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    18
        'model/uan-prop-model-thorp.cc',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    19
        'model/uan-phy-dual.cc',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    20
        'model/uan-header-rc.cc',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    21
        'model/uan-mac-rc.cc',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    22
        'model/uan-mac-rc-gw.cc',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    23
        'model/uan-phy.cc',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    24
        'model/uan-noise-model.cc',
6715
ba60c821ad35 Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents: 6478
diff changeset
    25
        'model/acoustic-modem-energy-model.cc',
6478
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    26
        'helper/uan-helper.cc',
6715
ba60c821ad35 Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents: 6478
diff changeset
    27
        'helper/acoustic-modem-energy-model-helper.cc',
6478
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    28
        'test/uan-test.cc',
6376
4e133d0aa098 UAN module addition
Leonard Tracy <lentracy@u.washington.edu>
parents:
diff changeset
    29
        ]
4e133d0aa098 UAN module addition
Leonard Tracy <lentracy@u.washington.edu>
parents:
diff changeset
    30
    headers = bld.new_task_gen('ns3header')
4e133d0aa098 UAN module addition
Leonard Tracy <lentracy@u.washington.edu>
parents:
diff changeset
    31
    headers.module = 'uan'
4e133d0aa098 UAN module addition
Leonard Tracy <lentracy@u.washington.edu>
parents:
diff changeset
    32
    headers.source = [
6478
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    33
        'model/uan-channel.h',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    34
        'model/uan-phy.h',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    35
        'model/uan-mac.h',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    36
	      'model/uan-net-device.h',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    37
	      'model/uan-prop-model.h',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    38
	      'model/uan-tx-mode.h',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    39
	      'model/uan-transducer.h',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    40
        'model/uan-phy-gen.h',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    41
	      'model/uan-transducer-hd.h',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    42
        'model/uan-address.h',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    43
        'model/uan-prop-model-ideal.h',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    44
        'model/uan-mac-aloha.h',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    45
        'model/uan-header-common.h',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    46
        'model/uan-noise-model.h',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    47
        'model/uan-noise-model-default.h',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    48
        'model/uan-mac-cw.h',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    49
        'model/uan-prop-model-thorp.h',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    50
        'model/uan-phy-dual.h',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    51
        'model/uan-header-rc.h',
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    52
        'model/uan-mac-rc.h',
6715
ba60c821ad35 Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents: 6478
diff changeset
    53
        'model/acoustic-modem-energy-model.h',
6478
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    54
        'helper/uan-helper.h',
6715
ba60c821ad35 Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents: 6478
diff changeset
    55
        'helper/acoustic-modem-energy-model-helper.h',
6478
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    56
        'model/uan-mac-rc-gw.h',
6376
4e133d0aa098 UAN module addition
Leonard Tracy <lentracy@u.washington.edu>
parents:
diff changeset
    57
        ]
6478
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    58
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    59
    if (bld.env['ENABLE_EXAMPLES']):
b401db8531f5 Bug 970 - move UAN over to new directory structure
Josh Pelkey <jpelkey@gatech.edu>
parents: 6432
diff changeset
    60
      bld.add_subdirs('examples')