OLD | NEW |
1 ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8;
-*- | 1 ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8;
-*- |
2 | 2 |
3 def build(bld): | 3 def build(bld): |
4 helper = bld.create_ns3_module('helper', ['internet-stack', 'wifi', 'point-t
o-point', 'csma', 'olsr', 'global-routing', 'onoff', 'packet-sink', 'udp-echo']) | 4 helper = bld.create_ns3_module('helper', ['internet-stack', 'wifi', 'point-t
o-point', 'csma', 'olsr', 'global-routing', 'onoff', 'packet-sink', 'udp-echo']) |
5 helper.source = [ | 5 helper.source = [ |
6 'node-container.cc', | 6 'node-container.cc', |
7 'net-device-container.cc', | 7 'net-device-container.cc', |
8 'wifi-helper.cc', | 8 'wifi-helper.cc', |
9 'olsr-helper.cc', | 9 'olsr-helper.cc', |
10 'point-to-point-helper.cc', | 10 'point-to-point-helper.cc', |
(...skipping 30 matching lines...) Expand all Loading... |
41 'ipv6-routing-helper.cc', | 41 'ipv6-routing-helper.cc', |
42 'ping6-helper.cc', | 42 'ping6-helper.cc', |
43 'flow-monitor-helper.cc', | 43 'flow-monitor-helper.cc', |
44 'animation-interface.cc', | 44 'animation-interface.cc', |
45 'canvas-location.cc', | 45 'canvas-location.cc', |
46 'point-to-point-dumbbell-helper.cc', | 46 'point-to-point-dumbbell-helper.cc', |
47 'point-to-point-grid-helper.cc', | 47 'point-to-point-grid-helper.cc', |
48 'point-to-point-star-helper.cc', | 48 'point-to-point-star-helper.cc', |
49 'csma-star-helper.cc', | 49 'csma-star-helper.cc', |
50 'udp-client-server-helper.cc', | 50 'udp-client-server-helper.cc', |
| 51 'chord-ipv4-helper.cc', |
51 ] | 52 ] |
52 | 53 |
53 headers = bld.new_task_gen('ns3header') | 54 headers = bld.new_task_gen('ns3header') |
54 headers.module = 'helper' | 55 headers.module = 'helper' |
55 headers.source = [ | 56 headers.source = [ |
56 'node-container.h', | 57 'node-container.h', |
57 'net-device-container.h', | 58 'net-device-container.h', |
58 'wifi-helper.h', | 59 'wifi-helper.h', |
59 'olsr-helper.h', | 60 'olsr-helper.h', |
60 'point-to-point-helper.h', | 61 'point-to-point-helper.h', |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 'ipv6-routing-helper.h', | 93 'ipv6-routing-helper.h', |
93 'ping6-helper.h', | 94 'ping6-helper.h', |
94 'flow-monitor-helper.h', | 95 'flow-monitor-helper.h', |
95 'animation-interface.h', | 96 'animation-interface.h', |
96 'canvas-location.h', | 97 'canvas-location.h', |
97 'point-to-point-dumbbell-helper.h', | 98 'point-to-point-dumbbell-helper.h', |
98 'point-to-point-grid-helper.h', | 99 'point-to-point-grid-helper.h', |
99 'point-to-point-star-helper.h', | 100 'point-to-point-star-helper.h', |
100 'csma-star-helper.h', | 101 'csma-star-helper.h', |
101 'udp-client-server-helper.h', | 102 'udp-client-server-helper.h', |
| 103 'chord-ipv4-helper.h', |
102 ] | 104 ] |
103 | 105 |
104 env = bld.env_of_name('default') | 106 env = bld.env_of_name('default') |
105 if env['ENABLE_EMU']: | 107 if env['ENABLE_EMU']: |
106 helper.source.extend([ | 108 helper.source.extend([ |
107 'emu-helper.cc', | 109 'emu-helper.cc', |
108 ]) | 110 ]) |
109 headers.source.extend([ | 111 headers.source.extend([ |
110 'emu-helper.h', | 112 'emu-helper.h', |
111 ]) | 113 ]) |
112 if env['ENABLE_TAP']: | 114 if env['ENABLE_TAP']: |
113 helper.source.extend([ | 115 helper.source.extend([ |
114 'tap-bridge-helper.cc', | 116 'tap-bridge-helper.cc', |
115 ]) | 117 ]) |
116 headers.source.extend([ | 118 headers.source.extend([ |
117 'tap-bridge-helper.h', | 119 'tap-bridge-helper.h', |
118 ]) | 120 ]) |
119 | 121 |
120 def configure(conf): | 122 def configure(conf): |
121 conf.check(header_name='sys/socket.h', define_name='HAVE_SYS_SOCKET_H') | 123 conf.check(header_name='sys/socket.h', define_name='HAVE_SYS_SOCKET_H') |
122 conf.check(header_name='netinet/in.h', define_name='HAVE_NETINET_IN_H') | 124 conf.check(header_name='netinet/in.h', define_name='HAVE_NETINET_IN_H') |
123 conf.write_config_header('ns3/net-anim-config.h', top=True) | 125 conf.write_config_header('ns3/net-anim-config.h', top=True) |
124 | 126 |
OLD | NEW |