-
Notifications
You must be signed in to change notification settings - Fork 2
/
wscript
142 lines (135 loc) · 5.26 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# -*- 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('lorawan', ['core', 'network',
'propagation', 'mobility',
'point-to-point', 'energy',
'buildings'])
module.source = [
'model/lora-net-device.cc',
'model/lorawan-mac.cc',
'model/lora-phy.cc',
'model/building-penetration-loss.cc',
'model/correlated-shadowing-propagation-loss-model.cc',
'model/lora-channel.cc',
'model/lora-interference-helper.cc',
'model/gateway-lorawan-mac.cc',
'model/end-device-lorawan-mac.cc',
'model/class-a-end-device-lorawan-mac.cc',
'model/gateway-lora-phy.cc',
'model/end-device-lora-phy.cc',
'model/simple-end-device-lora-phy.cc',
'model/simple-gateway-lora-phy.cc',
'model/sub-band.cc',
'model/logical-lora-channel.cc',
'model/logical-lora-channel-helper.cc',
'model/periodic-sender.cc',
'model/one-shot-sender.cc',
'model/energy-aware-sender.cc',
'model/forwarder.cc',
'model/lorawan-mac-header.cc',
'model/lora-frame-header.cc',
'model/mac-command.cc',
'model/lora-device-address.cc',
'model/lora-device-address-generator.cc',
'model/lora-tag.cc',
'model/network-server.cc',
'model/network-status.cc',
'model/network-controller.cc',
'model/network-controller-components.cc',
'model/network-scheduler.cc',
'model/end-device-status.cc',
'model/gateway-status.cc',
'model/lora-radio-energy-model.cc',
'model/capacitor-energy-source.cc',
'model/lora-tx-current-model.cc',
'model/lora-utils.cc',
'model/adr-component.cc',
'model/hex-grid-position-allocator.cc',
'model/variable-energy-harvester.cc',
'helper/lora-radio-energy-model-helper.cc',
'helper/lora-helper.cc',
'helper/lora-phy-helper.cc',
'helper/lorawan-mac-helper.cc',
'helper/periodic-sender-helper.cc',
'helper/one-shot-sender-helper.cc',
'helper/energy-aware-sender-helper.cc',
'helper/forwarder-helper.cc',
'helper/network-server-helper.cc',
'helper/capacitor-energy-source-helper.cc',
'helper/variable-energy-harvester-helper.cc',
'helper/lora-packet-tracker.cc',
'test/utilities.cc',
]
module_test = bld.create_ns3_module_test_library('lorawan')
module_test.source = [
'test/lorawan-test-suite.cc',
'test/network-status-test-suite.cc',
'test/network-scheduler-test-suite.cc',
'test/network-server-test-suite.cc',
]
headers = bld(features='ns3header')
headers.module = 'lorawan'
headers.source = [
'model/lora-net-device.h',
'model/lorawan-mac.h',
'model/lora-phy.h',
'model/building-penetration-loss.h',
'model/correlated-shadowing-propagation-loss-model.h',
'model/lora-channel.h',
'model/lora-interference-helper.h',
'model/gateway-lorawan-mac.h',
'model/end-device-lorawan-mac.h',
'model/class-a-end-device-lorawan-mac.h',
'model/gateway-lora-phy.h',
'model/end-device-lora-phy.h',
'model/simple-end-device-lora-phy.h',
'model/simple-gateway-lora-phy.h',
'model/sub-band.h',
'model/logical-lora-channel.h',
'model/logical-lora-channel-helper.h',
'model/periodic-sender.h',
'model/one-shot-sender.h',
'model/energy-aware-sender.h',
'model/forwarder.h',
'model/lorawan-mac-header.h',
'model/lora-frame-header.h',
'model/mac-command.h',
'model/lora-device-address.h',
'model/lora-device-address-generator.h',
'model/lora-tag.h',
'model/network-server.h',
'model/network-status.h',
'model/network-controller.h',
'model/network-controller-components.h',
'model/network-scheduler.h',
'model/end-device-status.h',
'model/gateway-status.h',
'model/lora-radio-energy-model.h',
'model/capacitor-energy-source.h',
'model/lora-tx-current-model.h',
'model/lora-utils.h',
'model/adr-component.h',
'model/hex-grid-position-allocator.h',
'model/variable-energy-harvester.h',
'helper/lora-radio-energy-model-helper.h',
'helper/lora-helper.h',
'helper/lora-phy-helper.h',
'helper/lorawan-mac-helper.h',
'helper/periodic-sender-helper.h',
'helper/one-shot-sender-helper.h',
'helper/energy-aware-sender-helper.h',
'helper/forwarder-helper.h',
'helper/network-server-helper.h',
'helper/capacitor-energy-source-helper.h',
'helper/variable-energy-harvester-helper.h',
'helper/lora-packet-tracker.h',
'test/utilities.h',
]
if bld.env.ENABLE_EXAMPLES:
bld.recurse('examples')
# Comment to disable python bindings
# bld.ns3_python_bindings()