-
Notifications
You must be signed in to change notification settings - Fork 0
/
wscript
executable file
·50 lines (42 loc) · 1.63 KB
/
wscript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
# def options(opt):
# pass
# def configure(conf):
# conf.check_nonfatal(header_name='stdint.h', define_name='HAVE_STDINT_H')
def build(bld):
module = bld.create_ns3_module('capillary-network', ['core', 'network', 'mobility', 'spectrum', 'energy', 'applications'])
module.source = [
'model/capillary-phy.cc',
'model/capillary-mac.cc',
'model/capillary-controller.cc',
'model/capillary-mac-header.cc',
'model/capillary-mac-trailer.cc',
'model/capillary-net-device.cc',
'model/capillary-energy-model.cc',
'model/sensor-application.cc',
'helper/capillary-energy-model-helper.cc',
'helper/capillary-net-device-helper.cc',
'helper/sensor-application-helper.cc',
]
module_test = bld.create_ns3_module_test_library('capillary-network')
module_test.source = [
'test/capillary-packet-test.cc',
]
headers = bld(features='ns3header')
headers.module = 'capillary-network'
headers.source = [
'model/capillary-phy.h',
'model/capillary-mac.h',
'model/capillary-controller.h',
'model/capillary-mac-header.h',
'model/capillary-mac-trailer.h',
'model/capillary-net-device.h',
'model/capillary-energy-model.h',
'model/sensor-application.h',
'helper/capillary-energy-model-helper.h',
'helper/capillary-net-device-helper.h',
'helper/sensor-application-helper.h',
]
if bld.env.ENABLE_EXAMPLES:
bld.recurse('examples')
# bld.ns3_python_bindings()