SConstruct
author Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
Tue, 28 Aug 2007 11:01:00 +0200
changeset 1372 5967e5b2c737
parent 1103 6f4d1987bb1d
permissions -rw-r--r--
keep track of trace source help strings
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
124
c0d0f7bebb73 add magic emacs incantation for python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 108
diff changeset
     1
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
1024
Craig Dowell <craigdo@ee.washington.edu>
parents: 1023
diff changeset
     2
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     3
import os.path
62
0ec2ff3a483f split SConstruct to make it more readable
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 61
diff changeset
     4
import build
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     5
659
ae1c85bcb33e pull version number from VERSION file
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 656
diff changeset
     6
version_file = open ('VERSION', 'r')
661
ec0c58ab1e34 add VERSION to extra dist
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 660
diff changeset
     7
version = version_file.readline ()
659
ae1c85bcb33e pull version number from VERSION file
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 656
diff changeset
     8
version_file.close ()
661
ec0c58ab1e34 add VERSION to extra dist
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 660
diff changeset
     9
version = version.strip ()
659
ae1c85bcb33e pull version number from VERSION file
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 656
diff changeset
    10
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
    11
ns3 = build.Ns3()
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    12
ns3.build_dir = 'build-dir'
659
ae1c85bcb33e pull version number from VERSION file
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 656
diff changeset
    13
ns3.version = version
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    14
ns3.name = 'ns3'
652
b7867dad0b7a change version number to match ns convention
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 637
diff changeset
    15
ns3.distname = 'ns'
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
    16
ns3.doxygen_config = os.path.join('doc', 'doxygen.conf')
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
    17
ns3.add_extra_dist(os.path.join('doc', 'main.txt'))
656
01ccd5f47ed4 add doc/architecture.pdf to dist
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 652
diff changeset
    18
ns3.add_extra_dist ('doc/architecture.pdf')
637
6285ef4d0fec improve dist support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 634
diff changeset
    19
ns3.add_extra_dist ('doc/contributing.txt')
6285ef4d0fec improve dist support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 634
diff changeset
    20
ns3.add_extra_dist ('doc/build.txt')
658
32307a281d86 Pick up codingstd.txt in dist; point interested waf users to build-waf.txt in the development branch
Tom Henderson <tomh@tomh.org>
parents: 656
diff changeset
    21
ns3.add_extra_dist ('doc/codingstd.txt')
637
6285ef4d0fec improve dist support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 634
diff changeset
    22
ns3.add_extra_dist ('doc/mercurial.txt')
6285ef4d0fec improve dist support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 634
diff changeset
    23
ns3.add_extra_dist ('README')
6285ef4d0fec improve dist support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 634
diff changeset
    24
ns3.add_extra_dist ('RELEASE_NOTES')
6285ef4d0fec improve dist support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 634
diff changeset
    25
ns3.add_extra_dist ('AUTHORS')
661
ec0c58ab1e34 add VERSION to extra dist
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 660
diff changeset
    26
ns3.add_extra_dist ('VERSION')
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    27
696
fb446e9ec33d Add the waf files and scripts to the scons dist
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 687
diff changeset
    28
ns3.add_extra_dist('doc/build-waf.txt')
fb446e9ec33d Add the waf files and scripts to the scons dist
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 687
diff changeset
    29
ns3.add_extra_dist('ns3/_placeholder_')
fb446e9ec33d Add the waf files and scripts to the scons dist
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 687
diff changeset
    30
for wscript in [
fb446e9ec33d Add the waf files and scripts to the scons dist
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 687
diff changeset
    31
    "src/core/wscript",
fb446e9ec33d Add the waf files and scripts to the scons dist
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 687
diff changeset
    32
    "src/node/wscript",
fb446e9ec33d Add the waf files and scripts to the scons dist
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 687
diff changeset
    33
    "src/devices/p2p/wscript",
fb446e9ec33d Add the waf files and scripts to the scons dist
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 687
diff changeset
    34
    "src/common/wscript",
fb446e9ec33d Add the waf files and scripts to the scons dist
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 687
diff changeset
    35
    "src/applications/wscript",
fb446e9ec33d Add the waf files and scripts to the scons dist
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 687
diff changeset
    36
    "src/simulator/wscript",
fb446e9ec33d Add the waf files and scripts to the scons dist
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 687
diff changeset
    37
    "src/internet-node/wscript",
fb446e9ec33d Add the waf files and scripts to the scons dist
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 687
diff changeset
    38
    "src/wscript",
fb446e9ec33d Add the waf files and scripts to the scons dist
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 687
diff changeset
    39
    "utils/wscript",
fb446e9ec33d Add the waf files and scripts to the scons dist
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 687
diff changeset
    40
    "samples/wscript",
fb446e9ec33d Add the waf files and scripts to the scons dist
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 687
diff changeset
    41
    "examples/wscript",
fb446e9ec33d Add the waf files and scripts to the scons dist
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 687
diff changeset
    42
    "wscript",
fb446e9ec33d Add the waf files and scripts to the scons dist
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 687
diff changeset
    43
    ]:
fb446e9ec33d Add the waf files and scripts to the scons dist
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 687
diff changeset
    44
    ns3.add_extra_dist(wscript)
fb446e9ec33d Add the waf files and scripts to the scons dist
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 687
diff changeset
    45
ns3.add_extra_dist('waf')
fb446e9ec33d Add the waf files and scripts to the scons dist
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 687
diff changeset
    46
ns3.add_extra_dist('waf.bat')
fb446e9ec33d Add the waf files and scripts to the scons dist
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 687
diff changeset
    47
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    48
#
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    49
# The Core module
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    50
#
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
    51
core = build.Ns3Module('core', 'src/core')
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
    52
ns3.add(core)
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
    53
core.add_sources([
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
    54
    'callback-test.cc',
265
fb0c531530f2 add debugging support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
    55
    'debug.cc',
276
58651aff818b split out assert from debug.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 268
diff changeset
    56
    'assert.cc',
223
80f1c6b76999 initial go at smart pointer implementation
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 197
diff changeset
    57
    'ptr.cc',
379
ae74e8a7bb44 net device copy and assignment, reference counted channel.
Craig Dowell
parents: 378
diff changeset
    58
    'object.cc',
291
f5a98bae86c1 large checkin-- bringing in serial device code
Tom Henderson <tomh@tomh.org>
parents: 288
diff changeset
    59
    'test.cc',
346
4a76f247e7dc Add random number files, base class Application
Tom Henderson <tomh@tomh.org>
parents: 338
diff changeset
    60
    'random-variable.cc',
4a76f247e7dc Add random number files, base class Application
Tom Henderson <tomh@tomh.org>
parents: 338
diff changeset
    61
    'rng-stream.cc',
526
01999879c76b a first draft of a component manager
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 525
diff changeset
    62
    'uid-manager.cc',
439
fed13fb45eef Incorporated defaults and command-line arguments
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 412
diff changeset
    63
    'default-value.cc',
fed13fb45eef Incorporated defaults and command-line arguments
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 412
diff changeset
    64
    'command-line.cc',
fed13fb45eef Incorporated defaults and command-line arguments
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 412
diff changeset
    65
    'type-name.cc',
578
e305018537c9 rename ns-unknown.h/cc ns-unknown-manager.h/cc
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 526
diff changeset
    66
    'component-manager.cc',
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
    67
    ])
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
    68
env = Environment()
299
dd6d1a6d6eff strawman connectors and channel
owner@UPSTAIRS.Belkin
parents: 296
diff changeset
    69
if env['PLATFORM'] == 'posix' or env['PLATFORM'] == 'darwin' or env['PLATFORM'] == 'cygwin':
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
    70
    core.add_external_dep('pthread')
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
    71
    core.add_sources([
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
    72
        'unix-system-wall-clock-ms.cc',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
    73
        ])
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    74
elif env['PLATFORM'] == 'win32':
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
    75
    core.add_sources([
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
    76
        'win32-system-wall-clock-ms.cc',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
    77
        ])
525
4a6c58f0e327 define class Iid to replace the uint32_t as suggested by Gustavo
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 524
diff changeset
    78
core.add_headers ([
526
01999879c76b a first draft of a component manager
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 525
diff changeset
    79
    'uid-manager.h',
01999879c76b a first draft of a component manager
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 525
diff changeset
    80
    'singleton.h',
525
4a6c58f0e327 define class Iid to replace the uint32_t as suggested by Gustavo
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 524
diff changeset
    81
])
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
    82
core.add_inst_headers([
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
    83
    'system-wall-clock-ms.h',
714
e6561d5e8018 make Callback use a separate empty type
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 707
diff changeset
    84
    'empty.h',
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
    85
    'callback.h',
223
80f1c6b76999 initial go at smart pointer implementation
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 197
diff changeset
    86
    'ptr.h',
379
ae74e8a7bb44 net device copy and assignment, reference counted channel.
Craig Dowell
parents: 378
diff changeset
    87
    'object.h',
265
fb0c531530f2 add debugging support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
    88
    'debug.h',
276
58651aff818b split out assert from debug.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 268
diff changeset
    89
    'assert.h',
278
fc1133fee95d add fatal-error.h header
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 276
diff changeset
    90
    'fatal-error.h',
346
4a76f247e7dc Add random number files, base class Application
Tom Henderson <tomh@tomh.org>
parents: 338
diff changeset
    91
    'test.h',
4a76f247e7dc Add random number files, base class Application
Tom Henderson <tomh@tomh.org>
parents: 338
diff changeset
    92
    'random-variable.h',
352
8fb57ba7b707 Add Mathieu's super object container; add Rx trace on SerialNetDevice
Tom Henderson <tomh@tomh.org>
parents: 351
diff changeset
    93
    'rng-stream.h',
439
fed13fb45eef Incorporated defaults and command-line arguments
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 412
diff changeset
    94
    'default-value.h',
fed13fb45eef Incorporated defaults and command-line arguments
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 412
diff changeset
    95
    'command-line.h',
fed13fb45eef Incorporated defaults and command-line arguments
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 412
diff changeset
    96
    'type-name.h',
578
e305018537c9 rename ns-unknown.h/cc ns-unknown-manager.h/cc
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 526
diff changeset
    97
    'component-manager.h',
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
    98
    ])
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    99
265
fb0c531530f2 add debugging support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   100
def config_core (env, config):
fb0c531530f2 add debugging support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   101
    retval = []
fb0c531530f2 add debugging support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   102
    # XXX This check is primitive but it should be
fb0c531530f2 add debugging support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   103
    # good enough for now.
fb0c531530f2 add debugging support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   104
    if config.CheckCHeader ('stdlib.h') == 1:
fb0c531530f2 add debugging support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   105
        retval.append ('#define HAVE_STDLIB_H 1')
fb0c531530f2 add debugging support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   106
        retval.append ('#define HAVE_GETENV 1')
fb0c531530f2 add debugging support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   107
    else:
fb0c531530f2 add debugging support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   108
        retval.append ('#undef HAVE_STDLIB_H')
fb0c531530f2 add debugging support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   109
        retval.append ('#undef HAVE_GETENV')
fb0c531530f2 add debugging support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   110
    return retval
fb0c531530f2 add debugging support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   111
core.add_config (config_core)
fb0c531530f2 add debugging support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   112
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   113
#
1037
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   114
# The Simulator module
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   115
#
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   116
simu = build.Ns3Module('simulator', 'src/simulator')
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   117
ns3.add(simu)
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   118
simu.add_dep('core')
173
c42687a343e1 add dep on math library
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 171
diff changeset
   119
simu.add_external_dep('m')
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   120
simu.add_sources([
168
037cd2b37c67 split high precision implementations in different files
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 165
diff changeset
   121
    'high-precision.cc',
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   122
    'time.cc',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   123
    'event-id.cc',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   124
    'scheduler.cc',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   125
    'scheduler-factory.cc',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   126
    'scheduler-list.cc',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   127
    'scheduler-heap.cc',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   128
    'scheduler-map.cc',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   129
    'event-impl.cc',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   130
    'simulator.cc',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   131
    ])
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   132
simu.add_headers([
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   133
    'scheduler-heap.h',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   134
    'scheduler-map.h',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   135
    'scheduler-list.h'
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   136
    ])
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   137
simu.add_inst_headers([
153
22c3d53dbae3 Add HighPrecision class used for external Time bookkeeping
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 152
diff changeset
   138
    'high-precision.h',
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   139
    'nstime.h',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   140
    'event-id.h',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   141
    'event-impl.h',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   142
    'simulator.h',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   143
    'scheduler.h',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   144
    'scheduler-factory.h',
484
cf7fbb84d74b rework the Node and NodeList classes to manage reference counts correctly
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 463
diff changeset
   145
    'simulation-singleton.h',
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   146
    ])
168
037cd2b37c67 split high precision implementations in different files
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 165
diff changeset
   147
high_precision_as_double = ARGUMENTS.get('high-precision-as-double', 'n')
170
9f68cb694f40 implement 128 bit arithmetic with cairo's internal types
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 168
diff changeset
   148
if high_precision_as_double == 'y':
168
037cd2b37c67 split high precision implementations in different files
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 165
diff changeset
   149
    simu.add_inst_header ('high-precision-double.h')
037cd2b37c67 split high precision implementations in different files
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 165
diff changeset
   150
    simu.add_source ('high-precision-double.cc')
037cd2b37c67 split high precision implementations in different files
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 165
diff changeset
   151
else:
171
64cafe7b7baf make sure cairo internal header is installed when needed.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 170
diff changeset
   152
    simu.add_inst_headers ([
64cafe7b7baf make sure cairo internal header is installed when needed.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 170
diff changeset
   153
        'high-precision-128.h',
64cafe7b7baf make sure cairo internal header is installed when needed.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 170
diff changeset
   154
        'cairo-wideint-private.h'
64cafe7b7baf make sure cairo internal header is installed when needed.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 170
diff changeset
   155
        ])
170
9f68cb694f40 implement 128 bit arithmetic with cairo's internal types
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 168
diff changeset
   156
    simu.add_sources ([
9f68cb694f40 implement 128 bit arithmetic with cairo's internal types
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 168
diff changeset
   157
        'high-precision-128.cc',
9f68cb694f40 implement 128 bit arithmetic with cairo's internal types
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 168
diff changeset
   158
        'cairo-wideint.c',
9f68cb694f40 implement 128 bit arithmetic with cairo's internal types
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 168
diff changeset
   159
        ])
168
037cd2b37c67 split high precision implementations in different files
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 165
diff changeset
   160
165
33a2c446e6dc add needed configure magic and header includes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 153
diff changeset
   161
def config_simulator (env, config):
33a2c446e6dc add needed configure magic and header includes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 153
diff changeset
   162
    retval = []
168
037cd2b37c67 split high precision implementations in different files
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 165
diff changeset
   163
    high_precision_as_double = ARGUMENTS.get('high-precision-as-double', 'n')
037cd2b37c67 split high precision implementations in different files
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 165
diff changeset
   164
    if high_precision_as_double == 'y':
037cd2b37c67 split high precision implementations in different files
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 165
diff changeset
   165
        retval.append ('#define USE_HIGH_PRECISION_DOUBLE 1')
037cd2b37c67 split high precision implementations in different files
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 165
diff changeset
   166
    else:
037cd2b37c67 split high precision implementations in different files
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 165
diff changeset
   167
        retval.append ('#undef USE_HIGH_PRECISION_DOUBLE')
165
33a2c446e6dc add needed configure magic and header includes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 153
diff changeset
   168
    if config.CheckCHeader ('stdint.h') == 1:
33a2c446e6dc add needed configure magic and header includes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 153
diff changeset
   169
        retval.append ('#define HAVE_STDINT_H 1')
33a2c446e6dc add needed configure magic and header includes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 153
diff changeset
   170
    elif config.CheckCHeader ('inttypes.h') == 1:
33a2c446e6dc add needed configure magic and header includes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 153
diff changeset
   171
        retval.append ('#define HAVE_INTTYPES_H 1')
33a2c446e6dc add needed configure magic and header includes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 153
diff changeset
   172
    elif config.CheckCHeader ('sys/inttypes.h') == 1:
33a2c446e6dc add needed configure magic and header includes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 153
diff changeset
   173
        retval.append ('#define HAVE_SYS_INT_TYPES_H 1')
33a2c446e6dc add needed configure magic and header includes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 153
diff changeset
   174
    return retval
33a2c446e6dc add needed configure magic and header includes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 153
diff changeset
   175
simu.add_config (config_simulator)
33a2c446e6dc add needed configure magic and header includes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 153
diff changeset
   176
    
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   177
#
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   178
# The Common module
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   179
#
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   180
common = build.Ns3Module('common', 'src/common')
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   181
common.add_deps(['core', 'simulator'])
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   182
ns3.add(common)
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   183
common.add_sources([
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   184
    'buffer.cc',
463
c2082308e01a merge Packet API changes needed for Packet pretty printing.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 461
diff changeset
   185
    'chunk.cc',
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   186
    'header.cc',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   187
    'trailer.cc',
806
0190f1b49dc8 re-implement PacketHistory to use the PacketPrinter and work on ItemList::Print
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 789
diff changeset
   188
    'packet-printer.cc',
882
777fcfabc1c8 rename packet-history.h to packet-metadata.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 832
diff changeset
   189
    'packet-metadata.cc',
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   190
    'packet.cc',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   191
    'tags.cc',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   192
    'pcap-writer.cc',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   193
    'variable-tracer-test.cc',
345
47b41507a45a move channel.cc channel.h to node directory; merge ns-3-tracing from mathieu
Tom Henderson <tomh@tomh.org>
parents: 343
diff changeset
   194
    'trace-context.cc',
47b41507a45a move channel.cc channel.h to node directory; merge ns-3-tracing from mathieu
Tom Henderson <tomh@tomh.org>
parents: 343
diff changeset
   195
    'trace-resolver.cc',
47b41507a45a move channel.cc channel.h to node directory; merge ns-3-tracing from mathieu
Tom Henderson <tomh@tomh.org>
parents: 343
diff changeset
   196
    'callback-trace-source.cc',
47b41507a45a move channel.cc channel.h to node directory; merge ns-3-tracing from mathieu
Tom Henderson <tomh@tomh.org>
parents: 343
diff changeset
   197
    'empty-trace-resolver.cc',
47b41507a45a move channel.cc channel.h to node directory; merge ns-3-tracing from mathieu
Tom Henderson <tomh@tomh.org>
parents: 343
diff changeset
   198
    'composite-trace-resolver.cc',
47b41507a45a move channel.cc channel.h to node directory; merge ns-3-tracing from mathieu
Tom Henderson <tomh@tomh.org>
parents: 343
diff changeset
   199
    'trace-root.cc',
365
2a5cd7125778 Added in DataRate to common module
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 359
diff changeset
   200
    'data-rate.cc',
345
47b41507a45a move channel.cc channel.h to node directory; merge ns-3-tracing from mathieu
Tom Henderson <tomh@tomh.org>
parents: 343
diff changeset
   201
    ])
47b41507a45a move channel.cc channel.h to node directory; merge ns-3-tracing from mathieu
Tom Henderson <tomh@tomh.org>
parents: 343
diff changeset
   202
common.add_headers ([
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   203
    ])
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   204
common.add_inst_headers([
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   205
    'buffer.h',
463
c2082308e01a merge Packet API changes needed for Packet pretty printing.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 461
diff changeset
   206
    'chunk.h',
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   207
    'header.h',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   208
    'trailer.h',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   209
    'tags.h',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   210
    'packet.h',
806
0190f1b49dc8 re-implement PacketHistory to use the PacketPrinter and work on ItemList::Print
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 789
diff changeset
   211
    'packet-printer.h',
882
777fcfabc1c8 rename packet-history.h to packet-metadata.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 832
diff changeset
   212
    'packet-metadata.h',
345
47b41507a45a move channel.cc channel.h to node directory; merge ns-3-tracing from mathieu
Tom Henderson <tomh@tomh.org>
parents: 343
diff changeset
   213
    'uv-trace-source.h',
47b41507a45a move channel.cc channel.h to node directory; merge ns-3-tracing from mathieu
Tom Henderson <tomh@tomh.org>
parents: 343
diff changeset
   214
    'sv-trace-source.h',
47b41507a45a move channel.cc channel.h to node directory; merge ns-3-tracing from mathieu
Tom Henderson <tomh@tomh.org>
parents: 343
diff changeset
   215
    'fv-trace-source.h',
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   216
    'pcap-writer.h',
345
47b41507a45a move channel.cc channel.h to node directory; merge ns-3-tracing from mathieu
Tom Henderson <tomh@tomh.org>
parents: 343
diff changeset
   217
    'callback-trace-source.h',
47b41507a45a move channel.cc channel.h to node directory; merge ns-3-tracing from mathieu
Tom Henderson <tomh@tomh.org>
parents: 343
diff changeset
   218
    'trace-context.h',
47b41507a45a move channel.cc channel.h to node directory; merge ns-3-tracing from mathieu
Tom Henderson <tomh@tomh.org>
parents: 343
diff changeset
   219
    'trace-resolver.h',
47b41507a45a move channel.cc channel.h to node directory; merge ns-3-tracing from mathieu
Tom Henderson <tomh@tomh.org>
parents: 343
diff changeset
   220
    'empty-trace-resolver.h',
47b41507a45a move channel.cc channel.h to node directory; merge ns-3-tracing from mathieu
Tom Henderson <tomh@tomh.org>
parents: 343
diff changeset
   221
    'composite-trace-resolver.h',
47b41507a45a move channel.cc channel.h to node directory; merge ns-3-tracing from mathieu
Tom Henderson <tomh@tomh.org>
parents: 343
diff changeset
   222
    'array-trace-resolver.h',
47b41507a45a move channel.cc channel.h to node directory; merge ns-3-tracing from mathieu
Tom Henderson <tomh@tomh.org>
parents: 343
diff changeset
   223
    'trace-root.h',
47b41507a45a move channel.cc channel.h to node directory; merge ns-3-tracing from mathieu
Tom Henderson <tomh@tomh.org>
parents: 343
diff changeset
   224
    'terminal-trace-resolver.h',
365
2a5cd7125778 Added in DataRate to common module
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 359
diff changeset
   225
    'data-rate.h',
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   226
    ])
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   227
1037
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   228
#
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   229
# The Node module
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   230
#
232
8cd08910f9a1 initial node base class from george's repo.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   231
node = build.Ns3Module ('node', 'src/node')
8cd08910f9a1 initial node base class from george's repo.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   232
ns3.add (node)
247
fb7375bb43d7 make the sample code compile and link.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 245
diff changeset
   233
node.add_deps (['core', 'common', 'simulator'])
232
8cd08910f9a1 initial node base class from george's repo.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   234
node.add_sources ([
729
b5e744285e92 rename i-node to node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 727
diff changeset
   235
    'node.cc',
524
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   236
    'ipv4-address.cc',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   237
    'net-device.cc',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   238
    'mac-address.cc',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   239
    'llc-snap-header.cc',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   240
    'ipv4-route.cc',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   241
    'queue.cc',
758
e2f6fe585ab8 fix bug 29
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 754
diff changeset
   242
    'drop-tail-queue.cc',
524
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   243
    'channel.cc',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   244
    'node-list.cc',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   245
    'socket.cc',
747
65afca7824d7 i-socket-factory.h -> socket-factory.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 741
diff changeset
   246
    'socket-factory.cc',
749
c99970fa054a i-udp.h -> udp.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 747
diff changeset
   247
    'udp.cc',
751
0d407cf6862c i-ipv4.h -> ipv4.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 749
diff changeset
   248
    'ipv4.cc',
585
a009b03b720a remove ApplicationList. Move functionality to Node class
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 578
diff changeset
   249
    'application.cc',
524
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   250
    ])
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   251
node.add_inst_headers ([
729
b5e744285e92 rename i-node to node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 727
diff changeset
   252
    'node.h',
524
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   253
    'ipv4-address.h',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   254
    'net-device.h',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   255
    'mac-address.h',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   256
    'ipv4-route.h',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   257
    'queue.h',
758
e2f6fe585ab8 fix bug 29
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 754
diff changeset
   258
    'drop-tail-queue.h',
524
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   259
    'llc-snap-header.h',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   260
    'channel.h',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   261
    'node-list.h',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   262
    'socket.h',
747
65afca7824d7 i-socket-factory.h -> socket-factory.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 741
diff changeset
   263
    'socket-factory.h',
749
c99970fa054a i-udp.h -> udp.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 747
diff changeset
   264
    'udp.h',
751
0d407cf6862c i-ipv4.h -> ipv4.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 749
diff changeset
   265
    'ipv4.h',
585
a009b03b720a remove ApplicationList. Move functionality to Node class
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 578
diff changeset
   266
    'application.h',
524
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   267
    ])
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   268
1037
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   269
#
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   270
# The Applications module
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   271
#
524
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   272
applications = build.Ns3Module ('applications', 'src/applications')
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   273
ns3.add (applications)
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   274
applications.add_deps (['node'])
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   275
applications.add_sources ([
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   276
    'onoff-application.cc',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   277
])
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   278
applications.add_inst_headers ([
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   279
    'onoff-application.h',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   280
])
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   281
1037
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   282
#
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   283
# The Internet Node module
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   284
#
524
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   285
inode = build.Ns3Module ('internet-node', 'src/internet-node')
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   286
ns3.add (inode)
1039
e939689e81c9 Add routing dependency to inode in SConstruct
Tom Henderson <tomh@tomh.org>
parents: 1038
diff changeset
   287
inode.add_deps (['node', 'routing'])
524
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   288
inode.add_sources ([
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   289
    'internet-node.cc',
234
6124bda39cb3 code from all trees.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 232
diff changeset
   290
    'l3-demux.cc',
241
9004ab4cfe17 add Ipv4 and Udp node capabilities, rework Copy methods to include an extra Node * argument
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 240
diff changeset
   291
    'l3-protocol.cc',
234
6124bda39cb3 code from all trees.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 232
diff changeset
   292
    'ipv4-l4-demux.cc',
240
7da682f99bf9 add non-debugged udp stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 238
diff changeset
   293
    'ipv4-l4-protocol.cc',
235
190d5bef3254 add ipv4 and udp header, add ipv4 checksum support to make the udp header compile. Need to be fixed in UdpHeader later.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 234
diff changeset
   294
    'ipv4-header.cc',
190d5bef3254 add ipv4 and udp header, add ipv4 checksum support to make the udp header compile. Need to be fixed in UdpHeader later.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 234
diff changeset
   295
    'udp-header.cc',
190d5bef3254 add ipv4 and udp header, add ipv4 checksum support to make the udp header compile. Need to be fixed in UdpHeader later.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 234
diff changeset
   296
    'ipv4-checksum.cc',
236
5673656dc2e7 a basic untested ipv4 implementation
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 235
diff changeset
   297
    'ipv4-interface.cc',
733
fb1882e7d785 rename ipv4.h to ipv4-l3-protocol.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 731
diff changeset
   298
    'ipv4-l3-protocol.cc',
238
2f09fd9cf32e add start of udp stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 236
diff changeset
   299
    'ipv4-end-point.cc',
741
38ebb2fb16f5 udp.h -> udp-l4-protocol.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 740
diff changeset
   300
    'udp-l4-protocol.cc',
242
a44932709b47 add arp stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 241
diff changeset
   301
    'arp-header.cc',
a44932709b47 add arp stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 241
diff changeset
   302
    'arp-cache.cc',
a44932709b47 add arp stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 241
diff changeset
   303
    'arp-ipv4-interface.cc',
735
a3e48148c3ac arp.h -> arp-l3-protocol.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 733
diff changeset
   304
    'arp-l3-protocol.cc',
247
fb7375bb43d7 make the sample code compile and link.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 245
diff changeset
   305
    'ipv4-loopback-interface.cc',
fb7375bb43d7 make the sample code compile and link.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 245
diff changeset
   306
    'header-utils.cc',
453
ddbb935800d8 remove DatagramSocket, use Socket base class for UdpSocket subclass.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 448
diff changeset
   307
    'udp-socket.cc',
495
a839408950b9 rework the socket/udp layer to remove the Ipv4EndPointDemux template
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 484
diff changeset
   308
    'ipv4-end-point-demux.cc',
740
1d6ce43097d9 i-arp-private.h -> arp-private.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 739
diff changeset
   309
    'arp-private.cc',
737
98eeb9273ed2 i-ipv4-impl.h -> ipv4-impl.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 735
diff changeset
   310
    'ipv4-impl.cc',
738
2c105723d191 i-ipv4-private.h ipv4-private.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 737
diff changeset
   311
    'ipv4-private.cc',
524
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   312
    'ascii-trace.cc',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   313
    'pcap-trace.cc',
739
f7c6725303c0 i-udp-impl.h -> udp-impl.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 738
diff changeset
   314
    'udp-impl.cc',
524
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   315
])
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   316
inode.add_headers ([
235
190d5bef3254 add ipv4 and udp header, add ipv4 checksum support to make the udp header compile. Need to be fixed in UdpHeader later.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 234
diff changeset
   317
    'ipv4-checksum.h',
242
a44932709b47 add arp stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 241
diff changeset
   318
    'arp-header.h',
634
7dbf8f0dc819 fix scons dist and scons all for gcc 4.1
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 622
diff changeset
   319
    'arp-cache.h',
735
a3e48148c3ac arp.h -> arp-l3-protocol.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 733
diff changeset
   320
    'arp-l3-protocol.h',
247
fb7375bb43d7 make the sample code compile and link.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 245
diff changeset
   321
    'ipv4-loopback-interface.h',
234
6124bda39cb3 code from all trees.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 232
diff changeset
   322
    'l3-demux.h',
247
fb7375bb43d7 make the sample code compile and link.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 245
diff changeset
   323
    'header-utils.h',
444
1647ca57f19d remove ipv4 interface from public API
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 412
diff changeset
   324
    'arp-ipv4-interface.h',
453
ddbb935800d8 remove DatagramSocket, use Socket base class for UdpSocket subclass.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 448
diff changeset
   325
    'udp-socket.h',
741
38ebb2fb16f5 udp.h -> udp-l4-protocol.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 740
diff changeset
   326
    'udp-l4-protocol.h',
740
1d6ce43097d9 i-arp-private.h -> arp-private.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 739
diff changeset
   327
    'arp-private.h',
737
98eeb9273ed2 i-ipv4-impl.h -> ipv4-impl.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 735
diff changeset
   328
    'ipv4-impl.h',
738
2c105723d191 i-ipv4-private.h ipv4-private.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 737
diff changeset
   329
    'ipv4-private.h',
733
fb1882e7d785 rename ipv4.h to ipv4-l3-protocol.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 731
diff changeset
   330
    'ipv4-l3-protocol.h',
522
d5039448597a remove Node::GetIpv4
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 521
diff changeset
   331
    'l3-protocol.h',
d5039448597a remove Node::GetIpv4
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 521
diff changeset
   332
    'ipv4-l4-protocol.h',
d5039448597a remove Node::GetIpv4
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 521
diff changeset
   333
    'ipv4-l4-demux.h',
d5039448597a remove Node::GetIpv4
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 521
diff changeset
   334
    'ipv4-end-point-demux.h',
d5039448597a remove Node::GetIpv4
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 521
diff changeset
   335
    'ipv4-end-point.h',
325
379ad3b7a9fc add some simple packet content dumping.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 309
diff changeset
   336
    'ipv4-header.h',
1050
ff779ca8ccb6 checkpoint
Craig Dowell <craigdo@ee.washington.edu>
parents: 1043
diff changeset
   337
    'ipv4-interface.h',
325
379ad3b7a9fc add some simple packet content dumping.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 309
diff changeset
   338
    'udp-header.h',
605
3a62e5c4de75 rename internet-node.h to i-node-impl.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 604
diff changeset
   339
    'sgi-hashmap.h',
739
f7c6725303c0 i-udp-impl.h -> udp-impl.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 738
diff changeset
   340
    'udp-impl.h',
524
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   341
])
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   342
inode.add_inst_headers ([
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   343
    'internet-node.h',
389
d8f84756cf21 split out AsciiTrace class from simple example
mathieu@mathieu.inria.fr
parents: 381
diff changeset
   344
    'ascii-trace.h',
456
5361882cc2f3 put together a PcapTrace and test it
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 412
diff changeset
   345
    'pcap-trace.h',
901
454dbce6dc4e modify sample packet printer to use ipv4 and udp headers
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 896
diff changeset
   346
    'ipv4-header.h',
454dbce6dc4e modify sample packet printer to use ipv4 and udp headers
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 896
diff changeset
   347
    'udp-header.h',
524
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   348
])
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   349
1037
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   350
#
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   351
# The Point-to-point module
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   352
#
331
d75ee9d8efa4 move p2p to new dir
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 325
diff changeset
   353
p2p = build.Ns3Module ('p2p', 'src/devices/p2p')
368
1df1165d6a68 Rename file names from serial to p2p
Tom Henderson <tomh@tomh.org>
parents: 365
diff changeset
   354
ns3.add (p2p)
1df1165d6a68 Rename file names from serial to p2p
Tom Henderson <tomh@tomh.org>
parents: 365
diff changeset
   355
p2p.add_deps (['node'])
1df1165d6a68 Rename file names from serial to p2p
Tom Henderson <tomh@tomh.org>
parents: 365
diff changeset
   356
p2p.add_sources ([
1df1165d6a68 Rename file names from serial to p2p
Tom Henderson <tomh@tomh.org>
parents: 365
diff changeset
   357
    'p2p-net-device.cc',
1df1165d6a68 Rename file names from serial to p2p
Tom Henderson <tomh@tomh.org>
parents: 365
diff changeset
   358
    'p2p-channel.cc',
1df1165d6a68 Rename file names from serial to p2p
Tom Henderson <tomh@tomh.org>
parents: 365
diff changeset
   359
    'p2p-topology.cc',
334
8075943fda5a move serial code to src/devices/serial
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 331
diff changeset
   360
    ])
368
1df1165d6a68 Rename file names from serial to p2p
Tom Henderson <tomh@tomh.org>
parents: 365
diff changeset
   361
p2p.add_inst_headers ([
1df1165d6a68 Rename file names from serial to p2p
Tom Henderson <tomh@tomh.org>
parents: 365
diff changeset
   362
    'p2p-net-device.h',
1df1165d6a68 Rename file names from serial to p2p
Tom Henderson <tomh@tomh.org>
parents: 365
diff changeset
   363
    'p2p-channel.h',
1df1165d6a68 Rename file names from serial to p2p
Tom Henderson <tomh@tomh.org>
parents: 365
diff changeset
   364
    'p2p-topology.h',
334
8075943fda5a move serial code to src/devices/serial
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 331
diff changeset
   365
    ])
8075943fda5a move serial code to src/devices/serial
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 331
diff changeset
   366
1037
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   367
#
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   368
# The Routing module
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   369
#
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   370
routing = build.Ns3Module('routing', 'src/routing')
1043
a475ea6dd6f9 Add routing module to run_tests; add node module as dependency to routing
Tom Henderson <tomh@tomh.org>
parents: 1040
diff changeset
   371
routing.add_deps(['core', 'node'])
1037
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   372
ns3.add(routing)
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   373
routing.add_sources([
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   374
    'routing-environment.cc',
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   375
    'static-router.cc',
1040
28acccd8f62b Add static-route-manager scaffolding
Tom Henderson <tomh@tomh.org>
parents: 1039
diff changeset
   376
    'static-route-manager.cc',
1103
6f4d1987bb1d make static router a singleton, make implementation details private
Craig Dowell <craigdo@ee.washington.edu>
parents: 1100
diff changeset
   377
    'static-route-manager-impl.cc',
1074
10ef43046dcc candidate queue
Craig Dowell <craigdo@ee.washington.edu>
parents: 1050
diff changeset
   378
    'candidate-queue.cc',
1037
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   379
    ])
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   380
routing.add_headers ([
1103
6f4d1987bb1d make static router a singleton, make implementation details private
Craig Dowell <craigdo@ee.washington.edu>
parents: 1100
diff changeset
   381
    'candidate-queue.h',
6f4d1987bb1d make static router a singleton, make implementation details private
Craig Dowell <craigdo@ee.washington.edu>
parents: 1100
diff changeset
   382
    'static-route-manager-impl.h',
1037
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   383
    ])
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   384
routing.add_inst_headers([
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   385
    'routing-environment.h',
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   386
    'static-router.h',
1040
28acccd8f62b Add static-route-manager scaffolding
Tom Henderson <tomh@tomh.org>
parents: 1039
diff changeset
   387
    'static-route-manager.h',
1037
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   388
    ])
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   389
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   390
# utils
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   391
run_tests = build.Ns3Module('run-tests', 'utils')
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   392
ns3.add(run_tests)
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   393
run_tests.set_executable()
1043
a475ea6dd6f9 Add routing module to run_tests; add node module as dependency to routing
Tom Henderson <tomh@tomh.org>
parents: 1040
diff changeset
   394
run_tests.add_deps(['core', 'simulator', 'common', 'routing'])
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   395
run_tests.add_source('run-tests.cc')
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   396
700
d845cfea2a16 add benchmark by gustavo
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 699
diff changeset
   397
bench_object = build.Ns3Module('bench-object', 'utils')
d845cfea2a16 add benchmark by gustavo
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 699
diff changeset
   398
ns3.add(bench_object)
d845cfea2a16 add benchmark by gustavo
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 699
diff changeset
   399
bench_object.set_executable()
d845cfea2a16 add benchmark by gustavo
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 699
diff changeset
   400
bench_object.add_deps(['core'])
d845cfea2a16 add benchmark by gustavo
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 699
diff changeset
   401
bench_object.add_source('bench-object.cc')
d845cfea2a16 add benchmark by gustavo
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 699
diff changeset
   402
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   403
bench_packets = build.Ns3Module('bench-packets', 'utils')
832
3d1243d770d9 fix the packet benchmark and enable it
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 806
diff changeset
   404
ns3.add(bench_packets)
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   405
bench_packets.set_executable()
832
3d1243d770d9 fix the packet benchmark and enable it
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 806
diff changeset
   406
bench_packets.add_deps (['core', 'common'])
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   407
bench_packets.add_source('bench-packets.cc')
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   408
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   409
bench_simu = build.Ns3Module('bench-simulator', 'utils')
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   410
ns3.add(bench_simu)
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   411
bench_simu.set_executable()
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   412
bench_simu.add_dep('simulator')
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   413
bench_simu.add_source('bench-simulator.cc')
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   414
197
8346ab3528bf fix the Simulation event replayer: make it build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 173
diff changeset
   415
replay_simu = build.Ns3Module('replay-simulation', 'utils')
8346ab3528bf fix the Simulation event replayer: make it build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 173
diff changeset
   416
ns3.add(replay_simu)
8346ab3528bf fix the Simulation event replayer: make it build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 173
diff changeset
   417
replay_simu.set_executable()
8346ab3528bf fix the Simulation event replayer: make it build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 173
diff changeset
   418
replay_simu.add_dep('simulator')
8346ab3528bf fix the Simulation event replayer: make it build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 173
diff changeset
   419
replay_simu.add_source('replay-simulation.cc')
8346ab3528bf fix the Simulation event replayer: make it build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 173
diff changeset
   420
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   421
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   422
# samples
268
a43b635230e8 test and debug the debug support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 265
diff changeset
   423
sample_debug = build.Ns3Module('sample-debug', 'samples')
a43b635230e8 test and debug the debug support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 265
diff changeset
   424
sample_debug.set_executable()
a43b635230e8 test and debug the debug support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 265
diff changeset
   425
ns3.add(sample_debug)
a43b635230e8 test and debug the debug support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 265
diff changeset
   426
sample_debug.add_dep('core')
a43b635230e8 test and debug the debug support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 265
diff changeset
   427
sample_debug.add_source('main-debug.cc')
a43b635230e8 test and debug the debug support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 265
diff changeset
   428
sample_debug.add_source('main-debug-other.cc')
a43b635230e8 test and debug the debug support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 265
diff changeset
   429
891
83fb0d5f7038 sample code for pretty printing
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 886
diff changeset
   430
sample_packet_printer = build.Ns3Module('sample-packet-printer', 'samples')
83fb0d5f7038 sample code for pretty printing
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 886
diff changeset
   431
sample_packet_printer.set_executable()
83fb0d5f7038 sample code for pretty printing
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 886
diff changeset
   432
ns3.add(sample_packet_printer)
901
454dbce6dc4e modify sample packet printer to use ipv4 and udp headers
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 896
diff changeset
   433
sample_packet_printer.add_deps (['common', 'internet-node'])
891
83fb0d5f7038 sample code for pretty printing
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 886
diff changeset
   434
sample_packet_printer.add_source('main-packet-printer.cc')
83fb0d5f7038 sample code for pretty printing
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 886
diff changeset
   435
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   436
sample_callback = build.Ns3Module('sample-callback', 'samples')
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   437
sample_callback.set_executable()
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   438
ns3.add(sample_callback)
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   439
sample_callback.add_dep('core')
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   440
sample_callback.add_source('main-callback.cc')
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   441
226
1f8c4e56bc86 add smart pointer sample code
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 223
diff changeset
   442
sample_ptr = build.Ns3Module('sample-ptr', 'samples')
1f8c4e56bc86 add smart pointer sample code
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 223
diff changeset
   443
sample_ptr.set_executable()
1f8c4e56bc86 add smart pointer sample code
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 223
diff changeset
   444
ns3.add(sample_ptr)
1f8c4e56bc86 add smart pointer sample code
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 223
diff changeset
   445
sample_ptr.add_dep('core')
1f8c4e56bc86 add smart pointer sample code
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 223
diff changeset
   446
sample_ptr.add_source('main-ptr.cc')
1f8c4e56bc86 add smart pointer sample code
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 223
diff changeset
   447
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   448
sample_trace = build.Ns3Module('sample-trace', 'samples')
345
47b41507a45a move channel.cc channel.h to node directory; merge ns-3-tracing from mathieu
Tom Henderson <tomh@tomh.org>
parents: 343
diff changeset
   449
#ns3.add(sample_trace)
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   450
sample_trace.add_dep('common')
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   451
sample_trace.set_executable()
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   452
sample_trace.add_source('main-trace.cc')
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   453
766
aa1dff7879c8 Add main-query-interface.cc sample file
Tom Henderson <tomh@tomh.org>
parents: 758
diff changeset
   454
sample_query_interface = build.Ns3Module('sample-query-interface', 'samples')
aa1dff7879c8 Add main-query-interface.cc sample file
Tom Henderson <tomh@tomh.org>
parents: 758
diff changeset
   455
ns3.add(sample_query_interface)
aa1dff7879c8 Add main-query-interface.cc sample file
Tom Henderson <tomh@tomh.org>
parents: 758
diff changeset
   456
sample_query_interface.add_dep('common')
aa1dff7879c8 Add main-query-interface.cc sample file
Tom Henderson <tomh@tomh.org>
parents: 758
diff changeset
   457
sample_query_interface.set_executable()
aa1dff7879c8 Add main-query-interface.cc sample file
Tom Henderson <tomh@tomh.org>
parents: 758
diff changeset
   458
sample_query_interface.add_source('main-query-interface.cc')
aa1dff7879c8 Add main-query-interface.cc sample file
Tom Henderson <tomh@tomh.org>
parents: 758
diff changeset
   459
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   460
sample_simu = build.Ns3Module('sample-simulator', 'samples')
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   461
ns3.add(sample_simu)
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   462
sample_simu.set_executable()
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   463
sample_simu.add_dep('simulator')
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   464
sample_simu.add_source('main-simulator.cc')
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   465
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   466
sample_packet = build.Ns3Module('sample-packet', 'samples')
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   467
ns3.add(sample_packet)
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   468
sample_packet.set_executable()
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   469
sample_packet.add_dep('common')
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   470
sample_packet.add_source('main-packet.cc')
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   471
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   472
sample_test = build.Ns3Module('sample-test', 'samples')
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   473
sample_test.set_executable()
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   474
ns3.add(sample_test)
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   475
sample_test.add_dep('core')
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   476
sample_test.add_source('main-test.cc')
60
6672664e72bb add sample code for test, add doxygen doc
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 56
diff changeset
   477
247
fb7375bb43d7 make the sample code compile and link.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 245
diff changeset
   478
sample_simple = build.Ns3Module('sample-simple', 'samples')
fb7375bb43d7 make the sample code compile and link.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 245
diff changeset
   479
sample_simple.set_executable()
fb7375bb43d7 make the sample code compile and link.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 245
diff changeset
   480
ns3.add(sample_simple)
1037
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   481
sample_simple.add_deps(['core', 'simulator', 'node', 'internet-node', 'routing'])
247
fb7375bb43d7 make the sample code compile and link.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 245
diff changeset
   482
sample_simple.add_source('main-simple.cc')
fb7375bb43d7 make the sample code compile and link.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 245
diff changeset
   483
253
b9201368acdb make the p2p example compile
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 249
diff changeset
   484
sample_sp2p = build.Ns3Module('sample-simple-p2p', 'samples')
b9201368acdb make the p2p example compile
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 249
diff changeset
   485
sample_sp2p.set_executable()
345
47b41507a45a move channel.cc channel.h to node directory; merge ns-3-tracing from mathieu
Tom Henderson <tomh@tomh.org>
parents: 343
diff changeset
   486
#n3.add(sample_sp2p)
524
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   487
sample_sp2p.add_deps(['core', 'simulator', 'node', 'internet-node', 'p2p'])
253
b9201368acdb make the p2p example compile
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 249
diff changeset
   488
sample_sp2p.add_source('main-simple-p2p.cc')
b9201368acdb make the p2p example compile
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 249
diff changeset
   489
441
d824620eac38 Added default value sample
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 439
diff changeset
   490
sample_default_value = build.Ns3Module('sample-default-value', 'samples')
d824620eac38 Added default value sample
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 439
diff changeset
   491
sample_default_value.set_executable()
d824620eac38 Added default value sample
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 439
diff changeset
   492
ns3.add(sample_default_value)
d824620eac38 Added default value sample
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 439
diff changeset
   493
sample_default_value.add_deps(['core', 'simulator', 'node', 'p2p'])
d824620eac38 Added default value sample
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 439
diff changeset
   494
sample_default_value.add_source('main-default-value.cc')
d824620eac38 Added default value sample
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 439
diff changeset
   495
725
632d1467a4ae sample code for Object base class
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 714
diff changeset
   496
sample_object = build.Ns3Module('sample-object', 'samples')
632d1467a4ae sample code for Object base class
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 714
diff changeset
   497
sample_object.set_executable()
632d1467a4ae sample code for Object base class
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 714
diff changeset
   498
ns3.add(sample_object)
632d1467a4ae sample code for Object base class
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 714
diff changeset
   499
sample_object.add_deps(['core'])
632d1467a4ae sample code for Object base class
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 714
diff changeset
   500
sample_object.add_source('main-object.cc')
632d1467a4ae sample code for Object base class
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 714
diff changeset
   501
727
3bcec84f9f54 sample code for component manager
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 725
diff changeset
   502
sample_component_manager = build.Ns3Module('sample-component-manager', 'samples')
3bcec84f9f54 sample code for component manager
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 725
diff changeset
   503
sample_component_manager.set_executable()
3bcec84f9f54 sample code for component manager
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 725
diff changeset
   504
ns3.add(sample_component_manager)
3bcec84f9f54 sample code for component manager
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 725
diff changeset
   505
sample_component_manager.add_deps(['core'])
3bcec84f9f54 sample code for component manager
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 725
diff changeset
   506
sample_component_manager.add_source('main-component-manager.cc')
3bcec84f9f54 sample code for component manager
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 725
diff changeset
   507
353
b8656730c209 Move ns-2/simple.cc to examples/simple-serial.cc
Tom Henderson <tomh@tomh.org>
parents: 352
diff changeset
   508
# examples
368
1df1165d6a68 Rename file names from serial to p2p
Tom Henderson <tomh@tomh.org>
parents: 365
diff changeset
   509
example_simple_p2p = build.Ns3Module('simple-p2p', 'examples')
1df1165d6a68 Rename file names from serial to p2p
Tom Henderson <tomh@tomh.org>
parents: 365
diff changeset
   510
example_simple_p2p.set_executable()
1df1165d6a68 Rename file names from serial to p2p
Tom Henderson <tomh@tomh.org>
parents: 365
diff changeset
   511
ns3.add(example_simple_p2p)
1037
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   512
example_simple_p2p.add_deps(['core', 'simulator', 'node', 'p2p', 'internet-node', 'applications', 'routing'])
368
1df1165d6a68 Rename file names from serial to p2p
Tom Henderson <tomh@tomh.org>
parents: 365
diff changeset
   513
example_simple_p2p.add_source('simple-p2p.cc')
288
76c95195c166 Add samples/ns-2/simple.tcl.cc to SConstruct
Tom Henderson <tomh@tomh.org>
parents: 264
diff changeset
   514
1029
deca48edd34e add example static routing script; a few changes to static-router LSAs
Tom Henderson <tomh@tomh.org>
parents: 1027
diff changeset
   515
example_static_routing = build.Ns3Module('simple-static-routing', 'examples')
deca48edd34e add example static routing script; a few changes to static-router LSAs
Tom Henderson <tomh@tomh.org>
parents: 1027
diff changeset
   516
example_static_routing.set_executable()
deca48edd34e add example static routing script; a few changes to static-router LSAs
Tom Henderson <tomh@tomh.org>
parents: 1027
diff changeset
   517
ns3.add(example_static_routing)
1037
cc0907730d90 static routing
Craig Dowell <craigdo@ee.washington.edu>
parents: 1029
diff changeset
   518
example_static_routing.add_deps(['core', 'simulator', 'node', 'p2p', 'internet-node', 'applications', 'routing'])
1029
deca48edd34e add example static routing script; a few changes to static-router LSAs
Tom Henderson <tomh@tomh.org>
parents: 1027
diff changeset
   519
example_static_routing.add_source('simple-static-routing.cc')
deca48edd34e add example static routing script; a few changes to static-router LSAs
Tom Henderson <tomh@tomh.org>
parents: 1027
diff changeset
   520
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   521
ns3.generate_dependencies()