/
wscript
89 lines (79 loc) · 2.29 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
# -*- 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')
conf.env.append_value('INCLUDES', ['/usr/local/boost_1_61_0'])
def build(bld):
module = bld.create_ns3_module('plc', ['core', 'spectrum', 'network'])
module.source = [
'model/plc-thread-dispatcher.cc',
'model/plc-simulator-impl.cc',
'model/plc-defs.cc',
'model/plc-time.cc',
'model/plc-value.cc',
'model/plc-cable.cc',
'model/plc-edge.cc',
'model/plc-node.cc',
'model/plc-graph.cc',
'model/plc-channel.cc',
'model/plc-backbone.cc',
'model/plc-outlet.cc',
'model/plc-interface.cc',
'model/plc-noise.cc',
'model/plc-dcmc-capacity.cc',
'model/plc-link-performance-model.cc',
'model/plc-interference.cc',
'model/plc-header.cc',
'model/plc-phy.cc',
'model/plc-mac.cc',
'model/plc-net-device.cc',
'helper/plc-helper.cc',
'helper/plc-spectrum-helper.cc',
'helper/plc-device-helper.cc',
'helper/plc-output-helper.cc',
'helper/plc-trace-helper.cc',
]
module_test = bld.create_ns3_module_test_library('plc')
module_test.source = [
'test/plc-test-suite.cc',
]
# Enable multiprocessing
module.env.append_value('CXXFLAGS', ['-fopenmp'])
module.env.append_value('LINKFLAGS', ['-fopenmp'])
headers = bld(features='ns3header')
headers.module = 'plc'
headers.source = [
'model/plc-thread-dispatcher.h',
'model/plc-simulator-impl.h',
'model/plc.h',
'model/plc-defs.h',
'model/plc-time.h',
'model/plc-value.h',
'model/plc-cable.h',
'model/plc-edge.h',
'model/plc-node.h',
'model/plc-graph.h',
'model/plc-visitor.h',
'model/plc-channel.h',
'model/plc-backbone.h',
'model/plc-outlet.h',
'model/plc-interface.h',
'model/plc-undirected-dfs.h',
'model/plc-noise.h',
'model/plc-dcmc-capacity.h',
'model/plc-link-performance-model.h',
'model/plc-interference.h',
'model/plc-header.h',
'model/plc-phy.h',
'model/plc-mac.h',
'model/plc-net-device.h',
'helper/plc-spectrum-helper.h',
'helper/plc-helper.h',
'helper/plc-device-helper.h',
'helper/plc-output-helper.h',
'helper/plc-trace-helper.h',
]
if bld.env.ENABLE_EXAMPLES:
bld.recurse('examples')
bld.ns3_python_bindings()