-
Notifications
You must be signed in to change notification settings - Fork 5
/
wscript
87 lines (78 loc) · 2.95 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.define("HAS_NETSIMULYZER", 1, True, 'Has netsimulyzer module')
# `waf` was only ever used pre ns-3.41,
# so we always flag for compatability here
conf.define("NETSIMULYZER_PRE_NS3_41_ENUM_VALUE", 1, True, 'Use pre ns-3.41 EnumValue compatability')
conf.env['HAS_NETSIMULYZER'] = True
conf.env.append_value('CXXFLAGS', '-std=c++17')
def build(bld):
module = bld.create_ns3_module('netsimulyzer', ['buildings', 'core', 'network', 'mobility', 'point-to-point'])
module.source = [
'helper/area-helper.cc',
'helper/building-configuration-container.cc',
'helper/building-configuration-helper.cc',
'helper/logical-link-helper.cc',
'helper/node-configuration-container.cc',
'helper/node-configuration-helper.cc',
'model/node-configuration.cc',
'model/building-configuration.cc',
'model/category-axis.cc',
'model/category-value-series.cc',
'model/color.cc',
'model/color-palette.cc',
'model/decoration.cc',
'model/ecdf-sink.cc',
'model/log-stream.cc',
'model/logical-link.cc',
'model/netsimulyzer-version.cc',
'model/orchestrator.cc',
'model/rectangular-area.cc',
'model/series-collection.cc',
'model/state-transition-sink.cc',
'model/value-axis.cc',
'model/xy-series.cc',
'model/throughput-sink.cc'
]
module_test = bld.create_ns3_module_test_library('netsimulyzer')
module_test.source = [
]
headers = bld(features='ns3header')
headers.module = 'netsimulyzer'
headers.source = [
'helper/area-helper.h',
'helper/building-configuration-container.h',
'helper/building-configuration-helper.h',
'helper/logical-link-helper.h',
'helper/node-configuration-container.h',
'helper/node-configuration-helper.h',
'library/json.hpp',
'model/event-message.h',
'model/log-stream.h',
'model/logical-link.h',
'model/netsimulyzer-3D-models.h',
'model/netsimulyzer-version.h',
'model/node-configuration.h',
'model/optional.h',
'model/building-configuration.h',
'model/category-axis.h',
'model/category-value-series.h',
'model/color.h',
'model/color-palette.h',
'model/decoration.h',
'model/ecdf-sink.h',
'model/orchestrator.h',
'model/rectangular-area.h',
'model/series-collection.h',
'model/state-transition-sink.h',
'model/value-axis.h',
'model/xy-series.h',
'model/throughput-sink.h'
]
# Examples are not enabled for waf versions of
# ns-3, since the API has changed so much
# If you want to try them, uncomment the lines below
# if bld.env.ENABLE_EXAMPLES:
# bld.recurse('examples')