src/wave/wscript
author Tom Henderson <tomh@tomh.org>
Tue, 03 Dec 2013 13:46:53 -0800
changeset 10462 c10d2ac3e3d8
parent 10459 f2e90c12a44f
child 10477 82ff6fb67247
permissions -rw-r--r--
add wave bindings
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10459
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
     1
# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
     2
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
     3
# def options(opt):
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
     4
#     pass
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
     5
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
     6
# def configure(conf):
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
     7
#     conf.check_nonfatal(header_name='stdint.h', define_name='HAVE_STDINT_H')
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
     8
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
     9
def build(bld):
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
    10
    module = bld.create_ns3_module('wave', ['core','wifi', 'propagation'])
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
    11
    module.source = [
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
    12
	'model/wave-mac-low.cc',
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
    13
        'model/ocb-wifi-mac.cc',
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
    14
        'model/vendor-specific-action.cc',
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
    15
        'model/higher-tx-tag.cc',
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
    16
        'helper/wave-mac-helper.cc',
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
    17
        'helper/wifi-80211p-helper.cc',
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
    18
        ]
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
    19
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
    20
    module_test = bld.create_ns3_module_test_library('wave')
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
    21
    module_test.source = [
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
    22
        'test/ocb-test-suite.cc',
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
    23
        ]
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
    24
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
    25
    headers = bld(features='ns3header')
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
    26
    headers.module = 'wave'
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
    27
    headers.source = [
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
    28
    	'model/wave-mac-low.h',
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
    29
        'model/ocb-wifi-mac.h',
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
    30
        'model/vendor-specific-action.h',
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
    31
        'model/higher-tx-tag.h',
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
    32
        'helper/wave-mac-helper.h',
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
    33
        'helper/wifi-80211p-helper.h',
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
    34
        ]
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
    35
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
    36
    if bld.env.ENABLE_EXAMPLES:
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
    37
        bld.recurse('examples')
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
    38
10462
c10d2ac3e3d8 add wave bindings
Tom Henderson <tomh@tomh.org>
parents: 10459
diff changeset
    39
    bld.ns3_python_bindings()
10459
f2e90c12a44f base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
diff changeset
    40