Convert the olsr module to the new module layout
This commit is contained in:
@@ -29,14 +29,6 @@ def build(bld):
|
||||
['point-to-point', 'internet-stack', 'global-routing' , 'csma-cd'])
|
||||
obj.source = 'mixed-global-routing.cc'
|
||||
|
||||
obj = bld.create_ns3_program('simple-point-to-point-olsr',
|
||||
['point-to-point', 'internet-stack', 'olsr'])
|
||||
obj.source = 'simple-point-to-point-olsr.cc'
|
||||
|
||||
obj = bld.create_ns3_program('olsr-hna',
|
||||
['core', 'simulator', 'mobility', 'wifi'])
|
||||
obj.source = 'olsr-hna.cc'
|
||||
|
||||
obj = bld.create_ns3_program('nix-simple',
|
||||
['point-to-point', 'internet-stack', 'nix-vector-routing'])
|
||||
obj.source = 'nix-simple.cc'
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
|
||||
|
||||
def build(bld):
|
||||
helper = bld.create_ns3_module('helper', ['internet-stack', 'wifi', 'point-to-point', 'csma', 'olsr', 'global-routing', 'onoff', 'packet-sink', 'udp-echo', 'spectrum'])
|
||||
helper = bld.create_ns3_module('helper', ['internet-stack', 'wifi', 'point-to-point', 'csma', 'global-routing', 'onoff', 'packet-sink', 'udp-echo', 'spectrum'])
|
||||
helper.source = [
|
||||
'node-container.cc',
|
||||
'net-device-container.cc',
|
||||
'wifi-helper.cc',
|
||||
'olsr-helper.cc',
|
||||
'point-to-point-helper.cc',
|
||||
'csma-helper.cc',
|
||||
'mobility-helper.cc',
|
||||
@@ -62,7 +61,6 @@ def build(bld):
|
||||
'node-container.h',
|
||||
'net-device-container.h',
|
||||
'wifi-helper.h',
|
||||
'olsr-helper.h',
|
||||
'point-to-point-helper.h',
|
||||
'csma-helper.h',
|
||||
'mobility-helper.h',
|
||||
|
||||
10
src/routing/olsr/examples/wscript
Normal file
10
src/routing/olsr/examples/wscript
Normal file
@@ -0,0 +1,10 @@
|
||||
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
|
||||
|
||||
def build(bld):
|
||||
obj = bld.create_ns3_program('simple-point-to-point-olsr',
|
||||
['point-to-point', 'internet-stack', 'olsr'])
|
||||
obj.source = 'simple-point-to-point-olsr.cc'
|
||||
|
||||
obj = bld.create_ns3_program('olsr-hna',
|
||||
['core', 'simulator', 'mobility', 'wifi'])
|
||||
obj.source = 'olsr-hna.cc'
|
||||
@@ -22,8 +22,8 @@
|
||||
|
||||
#include "ns3/object-factory.h"
|
||||
#include "ns3/node.h"
|
||||
#include "node-container.h"
|
||||
#include "ipv4-routing-helper.h"
|
||||
#include "ns3/node-container.h"
|
||||
#include "ns3/ipv4-routing-helper.h"
|
||||
#include <map>
|
||||
#include <set>
|
||||
|
||||
@@ -4,9 +4,10 @@ def build(bld):
|
||||
module = bld.create_ns3_module('olsr', ['internet-stack', 'contrib'])
|
||||
module.includes = '.'
|
||||
module.source = [
|
||||
'olsr-header.cc',
|
||||
'olsr-state.cc',
|
||||
'olsr-routing-protocol.cc',
|
||||
'model/olsr-header.cc',
|
||||
'model/olsr-state.cc',
|
||||
'model/olsr-routing-protocol.cc',
|
||||
'helper/olsr-helper.cc',
|
||||
'test/regression-test-suite.cc',
|
||||
'test/hello-regression-test.cc',
|
||||
'test/tc-regression-test.cc',
|
||||
@@ -16,9 +17,13 @@ def build(bld):
|
||||
headers = bld.new_task_gen('ns3header')
|
||||
headers.module = 'olsr'
|
||||
headers.source = [
|
||||
'olsr-routing-protocol.h',
|
||||
'olsr-header.h',
|
||||
'olsr-state.h',
|
||||
'olsr-repositories.h',
|
||||
'model/olsr-routing-protocol.h',
|
||||
'model/olsr-header.h',
|
||||
'model/olsr-state.h',
|
||||
'model/olsr-repositories.h',
|
||||
'helper/olsr-helper.h',
|
||||
]
|
||||
|
||||
|
||||
if bld.env['ENABLE_EXAMPLES']:
|
||||
bld.add_subdirs('examples')
|
||||
|
||||
Reference in New Issue
Block a user