SConstruct
author Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
Wed, 18 Jul 2007 10:53:53 +0200
changeset 1597 990f0fd3bf87
parent 1594 94249ce4496d
child 1599 3c682047593a
permissions -rw-r--r--
RandomRectangleTopology -> RandomTopology
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; -*-
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     2
import os.path
62
0ec2ff3a483f split SConstruct to make it more readable
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 61
diff changeset
     3
import build
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     4
659
ae1c85bcb33e pull version number from VERSION file
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 656
diff changeset
     5
version_file = open ('VERSION', 'r')
661
ec0c58ab1e34 add VERSION to extra dist
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 660
diff changeset
     6
version = version_file.readline ()
659
ae1c85bcb33e pull version number from VERSION file
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 656
diff changeset
     7
version_file.close ()
661
ec0c58ab1e34 add VERSION to extra dist
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 660
diff changeset
     8
version = version.strip ()
659
ae1c85bcb33e pull version number from VERSION file
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 656
diff changeset
     9
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
    10
ns3 = build.Ns3()
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    11
ns3.build_dir = 'build-dir'
659
ae1c85bcb33e pull version number from VERSION file
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 656
diff changeset
    12
ns3.version = version
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    13
ns3.name = 'ns3'
652
b7867dad0b7a change version number to match ns convention
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 637
diff changeset
    14
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
    15
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
    16
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
    17
ns3.add_extra_dist ('doc/architecture.pdf')
637
6285ef4d0fec improve dist support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 634
diff changeset
    18
ns3.add_extra_dist ('doc/contributing.txt')
6285ef4d0fec improve dist support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 634
diff changeset
    19
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
    20
ns3.add_extra_dist ('doc/codingstd.txt')
637
6285ef4d0fec improve dist support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 634
diff changeset
    21
ns3.add_extra_dist ('doc/mercurial.txt')
6285ef4d0fec improve dist support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 634
diff changeset
    22
ns3.add_extra_dist ('README')
6285ef4d0fec improve dist support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 634
diff changeset
    23
ns3.add_extra_dist ('RELEASE_NOTES')
6285ef4d0fec improve dist support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 634
diff changeset
    24
ns3.add_extra_dist ('AUTHORS')
661
ec0c58ab1e34 add VERSION to extra dist
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 660
diff changeset
    25
ns3.add_extra_dist ('VERSION')
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    26
696
fb446e9ec33d Add the waf files and scripts to the scons dist
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 687
diff changeset
    27
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
    28
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
    29
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
    30
    "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
    31
    "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
    32
    "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
    33
    "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
    34
    "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
    35
    "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
    36
    "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
    37
    "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
    38
    "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
    39
    "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
    40
    "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
    41
    "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
    ]:
fb446e9ec33d Add the waf files and scripts to the scons dist
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 687
diff changeset
    43
    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
    44
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
    45
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
    46
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
#
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    50
# The Core module
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    51
#
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
    52
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
    53
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
    54
core.add_sources([
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
    55
    'callback-test.cc',
265
fb0c531530f2 add debugging support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
    56
    'debug.cc',
276
58651aff818b split out assert from debug.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 268
diff changeset
    57
    'assert.cc',
223
80f1c6b76999 initial go at smart pointer implementation
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 197
diff changeset
    58
    'ptr.cc',
379
ae74e8a7bb44 net device copy and assignment, reference counted channel.
Craig Dowell
parents: 378
diff changeset
    59
    'object.cc',
291
f5a98bae86c1 large checkin-- bringing in serial device code
Tom Henderson <tomh@tomh.org>
parents: 288
diff changeset
    60
    'test.cc',
346
4a76f247e7dc Add random number files, base class Application
Tom Henderson <tomh@tomh.org>
parents: 338
diff changeset
    61
    'random-variable.cc',
4a76f247e7dc Add random number files, base class Application
Tom Henderson <tomh@tomh.org>
parents: 338
diff changeset
    62
    'rng-stream.cc',
526
01999879c76b a first draft of a component manager
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 525
diff changeset
    63
    'uid-manager.cc',
439
fed13fb45eef Incorporated defaults and command-line arguments
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 412
diff changeset
    64
    'default-value.cc',
1576
010e001bfbc5 build the new code
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1567
diff changeset
    65
    'random-variable-default-value.cc',
010e001bfbc5 build the new code
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1567
diff changeset
    66
    'rectangle-default-value.cc',
439
fed13fb45eef Incorporated defaults and command-line arguments
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 412
diff changeset
    67
    'command-line.cc',
fed13fb45eef Incorporated defaults and command-line arguments
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 412
diff changeset
    68
    '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
    69
    'component-manager.cc',
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
    70
    ])
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
    71
env = Environment()
299
dd6d1a6d6eff strawman connectors and channel
owner@UPSTAIRS.Belkin
parents: 296
diff changeset
    72
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
    73
    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
    74
    core.add_sources([
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
    75
        'unix-system-wall-clock-ms.cc',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
    76
        ])
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    77
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
    78
    core.add_sources([
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
    79
        'win32-system-wall-clock-ms.cc',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
    80
        ])
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
core.add_headers ([
526
01999879c76b a first draft of a component manager
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 525
diff changeset
    82
    'uid-manager.h',
01999879c76b a first draft of a component manager
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 525
diff changeset
    83
    '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
    84
])
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
    85
core.add_inst_headers([
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
    86
    '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
    87
    'empty.h',
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
    88
    'callback.h',
223
80f1c6b76999 initial go at smart pointer implementation
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 197
diff changeset
    89
    'ptr.h',
379
ae74e8a7bb44 net device copy and assignment, reference counted channel.
Craig Dowell
parents: 378
diff changeset
    90
    'object.h',
265
fb0c531530f2 add debugging support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
    91
    'debug.h',
276
58651aff818b split out assert from debug.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 268
diff changeset
    92
    'assert.h',
278
fc1133fee95d add fatal-error.h header
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 276
diff changeset
    93
    'fatal-error.h',
346
4a76f247e7dc Add random number files, base class Application
Tom Henderson <tomh@tomh.org>
parents: 338
diff changeset
    94
    'test.h',
4a76f247e7dc Add random number files, base class Application
Tom Henderson <tomh@tomh.org>
parents: 338
diff changeset
    95
    '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
    96
    'rng-stream.h',
439
fed13fb45eef Incorporated defaults and command-line arguments
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 412
diff changeset
    97
    'default-value.h',
1576
010e001bfbc5 build the new code
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1567
diff changeset
    98
    'random-variable-default-value.h',
010e001bfbc5 build the new code
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1567
diff changeset
    99
    'rectangle-default-value.h',
439
fed13fb45eef Incorporated defaults and command-line arguments
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 412
diff changeset
   100
    'command-line.h',
fed13fb45eef Incorporated defaults and command-line arguments
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 412
diff changeset
   101
    '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
   102
    'component-manager.h',
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   103
    ])
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   104
265
fb0c531530f2 add debugging support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   105
def config_core (env, config):
fb0c531530f2 add debugging support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   106
    retval = []
fb0c531530f2 add debugging support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   107
    # XXX This check is primitive but it should be
fb0c531530f2 add debugging support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   108
    # good enough for now.
fb0c531530f2 add debugging support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   109
    if config.CheckCHeader ('stdlib.h') == 1:
fb0c531530f2 add debugging support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   110
        retval.append ('#define HAVE_STDLIB_H 1')
fb0c531530f2 add debugging support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   111
        retval.append ('#define HAVE_GETENV 1')
fb0c531530f2 add debugging support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   112
    else:
fb0c531530f2 add debugging support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   113
        retval.append ('#undef HAVE_STDLIB_H')
fb0c531530f2 add debugging support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   114
        retval.append ('#undef HAVE_GETENV')
fb0c531530f2 add debugging support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   115
    return retval
fb0c531530f2 add debugging support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   116
core.add_config (config_core)
fb0c531530f2 add debugging support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   117
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   118
#
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   119
# The Simu module
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   120
#
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   121
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
   122
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
   123
simu.add_dep('core')
173
c42687a343e1 add dep on math library
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 171
diff changeset
   124
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
   125
simu.add_sources([
168
037cd2b37c67 split high precision implementations in different files
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 165
diff changeset
   126
    'high-precision.cc',
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   127
    'time.cc',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   128
    'event-id.cc',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   129
    'scheduler.cc',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   130
    'scheduler-factory.cc',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   131
    'scheduler-list.cc',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   132
    'scheduler-heap.cc',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   133
    'scheduler-map.cc',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   134
    'event-impl.cc',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   135
    'simulator.cc',
1553
09f32ecf07b9 random walk position model (untested)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1547
diff changeset
   136
    'time-default-value.cc',
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   137
    ])
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   138
simu.add_headers([
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   139
    'scheduler-heap.h',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   140
    'scheduler-map.h',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   141
    'scheduler-list.h'
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   142
    ])
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   143
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
   144
    'high-precision.h',
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   145
    'nstime.h',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   146
    'event-id.h',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   147
    'event-impl.h',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   148
    'simulator.h',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   149
    'scheduler.h',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   150
    '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
   151
    'simulation-singleton.h',
1553
09f32ecf07b9 random walk position model (untested)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1547
diff changeset
   152
    'time-default-value.h',
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   153
    ])
168
037cd2b37c67 split high precision implementations in different files
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 165
diff changeset
   154
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
   155
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
   156
    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
   157
    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
   158
else:
171
64cafe7b7baf make sure cairo internal header is installed when needed.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 170
diff changeset
   159
    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
   160
        '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
   161
        '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
   162
        ])
170
9f68cb694f40 implement 128 bit arithmetic with cairo's internal types
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 168
diff changeset
   163
    simu.add_sources ([
9f68cb694f40 implement 128 bit arithmetic with cairo's internal types
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 168
diff changeset
   164
        '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
   165
        'cairo-wideint.c',
9f68cb694f40 implement 128 bit arithmetic with cairo's internal types
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 168
diff changeset
   166
        ])
168
037cd2b37c67 split high precision implementations in different files
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 165
diff changeset
   167
165
33a2c446e6dc add needed configure magic and header includes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 153
diff changeset
   168
def config_simulator (env, config):
33a2c446e6dc add needed configure magic and header includes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 153
diff changeset
   169
    retval = []
168
037cd2b37c67 split high precision implementations in different files
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 165
diff changeset
   170
    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
   171
    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
   172
        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
   173
    else:
037cd2b37c67 split high precision implementations in different files
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 165
diff changeset
   174
        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
   175
    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
   176
        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
   177
    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
   178
        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
   179
    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
   180
        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
   181
    return retval
33a2c446e6dc add needed configure magic and header includes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 153
diff changeset
   182
simu.add_config (config_simulator)
33a2c446e6dc add needed configure magic and header includes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 153
diff changeset
   183
    
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   184
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   185
#
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   186
# The Common module
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   187
#
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   188
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
   189
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
   190
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
   191
common.add_sources([
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   192
    'buffer.cc',
463
c2082308e01a merge Packet API changes needed for Packet pretty printing.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 461
diff changeset
   193
    'chunk.cc',
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   194
    'header.cc',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   195
    'trailer.cc',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   196
    'packet.cc',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   197
    'tags.cc',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   198
    'pcap-writer.cc',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   199
    '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
   200
    '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
   201
    '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
   202
    '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
   203
    '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
   204
    '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
   205
    'trace-root.cc',
365
2a5cd7125778 Added in DataRate to common module
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 359
diff changeset
   206
    '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
   207
    ])
47b41507a45a move channel.cc channel.h to node directory; merge ns-3-tracing from mathieu
Tom Henderson <tomh@tomh.org>
parents: 343
diff changeset
   208
common.add_headers ([
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   209
    ])
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   210
common.add_inst_headers([
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   211
    'buffer.h',
463
c2082308e01a merge Packet API changes needed for Packet pretty printing.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 461
diff changeset
   212
    'chunk.h',
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   213
    'header.h',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   214
    'trailer.h',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   215
    'tags.h',
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   216
    'packet.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
    '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
   218
    '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
   219
    'fv-trace-source.h',
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   220
    '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
   221
    '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
   222
    '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
   223
    '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
   224
    '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
   225
    '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
   226
    '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
   227
    '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
   228
    'terminal-trace-resolver.h',
365
2a5cd7125778 Added in DataRate to common module
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 359
diff changeset
   229
    'data-rate.h',
152
f3e570a78662 fix python indent.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 136
diff changeset
   230
    ])
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   231
232
8cd08910f9a1 initial node base class from george's repo.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   232
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
   233
ns3.add (node)
247
fb7375bb43d7 make the sample code compile and link.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 245
diff changeset
   234
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
   235
node.add_sources ([
729
b5e744285e92 rename i-node to node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 727
diff changeset
   236
    'node.cc',
524
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   237
    'ipv4-address.cc',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   238
    'net-device.cc',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   239
    'mac-address.cc',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   240
    'llc-snap-header.cc',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   241
    'ipv4-route.cc',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   242
    'queue.cc',
758
e2f6fe585ab8 fix bug 29
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 754
diff changeset
   243
    'drop-tail-queue.cc',
524
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   244
    'channel.cc',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   245
    'node-list.cc',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   246
    'socket.cc',
747
65afca7824d7 i-socket-factory.h -> socket-factory.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 741
diff changeset
   247
    'socket-factory.cc',
749
c99970fa054a i-udp.h -> udp.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 747
diff changeset
   248
    'udp.cc',
751
0d407cf6862c i-ipv4.h -> ipv4.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 749
diff changeset
   249
    'ipv4.cc',
585
a009b03b720a remove ApplicationList. Move functionality to Node class
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 578
diff changeset
   250
    'application.cc',
1580
0d2cf8839aee position.h -> mobility-model.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1578
diff changeset
   251
    'mobility-model.cc',
1578
c06feb6d1f51 PositionSetNotifier -> MobilityModelNotifier
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1576
diff changeset
   252
    'mobility-model-notifier.cc',
1580
0d2cf8839aee position.h -> mobility-model.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1578
diff changeset
   253
    'static-mobility-model.cc',
0d2cf8839aee position.h -> mobility-model.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1578
diff changeset
   254
    'static-speed-mobility-model.cc',
1547
8140a5ace531 add cid support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1542
diff changeset
   255
    'grid-topology.cc',
1597
990f0fd3bf87 RandomRectangleTopology -> RandomTopology
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1594
diff changeset
   256
    'random-topology.cc',
1580
0d2cf8839aee position.h -> mobility-model.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1578
diff changeset
   257
    'random-walk-mobility-model.cc',
1593
d31ca89c61b3 start support for random walk and random waypoint models
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1591
diff changeset
   258
    'random-mobility-model.cc',
1580
0d2cf8839aee position.h -> mobility-model.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1578
diff changeset
   259
    'random-direction-mobility-model.cc',
1585
b87c57b874b5 a hierarchical mobility model
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1580
diff changeset
   260
    'hierarchical-mobility-model.cc',
1586
a77fe06e9b6d a topology class to read ns2's mobility files and a mobility generator.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1585
diff changeset
   261
    'ns2-mobility-file-topology.cc',
1591
4a1f822fe9aa split useful code out of random direction mobility model
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1586
diff changeset
   262
    'mobility-model-helper.cc',
1594
94249ce4496d a random position helper class
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1593
diff changeset
   263
    'position-2d.cc',
94249ce4496d a random position helper class
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1593
diff changeset
   264
    'random-2d-position.cc',
524
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   265
    ])
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   266
node.add_inst_headers ([
729
b5e744285e92 rename i-node to node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 727
diff changeset
   267
    'node.h',
524
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   268
    'ipv4-address.h',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   269
    'net-device.h',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   270
    'mac-address.h',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   271
    'ipv4-route.h',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   272
    'queue.h',
758
e2f6fe585ab8 fix bug 29
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 754
diff changeset
   273
    'drop-tail-queue.h',
524
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   274
    'llc-snap-header.h',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   275
    'channel.h',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   276
    'node-list.h',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   277
    'socket.h',
747
65afca7824d7 i-socket-factory.h -> socket-factory.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 741
diff changeset
   278
    'socket-factory.h',
749
c99970fa054a i-udp.h -> udp.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 747
diff changeset
   279
    'udp.h',
751
0d407cf6862c i-ipv4.h -> ipv4.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 749
diff changeset
   280
    'ipv4.h',
585
a009b03b720a remove ApplicationList. Move functionality to Node class
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 578
diff changeset
   281
    'application.h',
1580
0d2cf8839aee position.h -> mobility-model.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1578
diff changeset
   282
    'mobility-model.h',
1578
c06feb6d1f51 PositionSetNotifier -> MobilityModelNotifier
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1576
diff changeset
   283
    'mobility-model-notifier.h',
1580
0d2cf8839aee position.h -> mobility-model.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1578
diff changeset
   284
    'static-mobility-model.h',
0d2cf8839aee position.h -> mobility-model.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1578
diff changeset
   285
    'static-speed-mobility-model.h',
1547
8140a5ace531 add cid support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1542
diff changeset
   286
    'grid-topology.h',
1597
990f0fd3bf87 RandomRectangleTopology -> RandomTopology
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1594
diff changeset
   287
    'random-topology.h',
1580
0d2cf8839aee position.h -> mobility-model.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1578
diff changeset
   288
    'random-walk-mobility-model.h',
1593
d31ca89c61b3 start support for random walk and random waypoint models
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1591
diff changeset
   289
    'random-mobility-model.h',
1580
0d2cf8839aee position.h -> mobility-model.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1578
diff changeset
   290
    'random-direction-mobility-model.h',
1585
b87c57b874b5 a hierarchical mobility model
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1580
diff changeset
   291
    'hierarchical-mobility-model.h',
1586
a77fe06e9b6d a topology class to read ns2's mobility files and a mobility generator.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1585
diff changeset
   292
    'ns2-mobility-file-topology.h',
1591
4a1f822fe9aa split useful code out of random direction mobility model
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1586
diff changeset
   293
    'mobility-model-helper.h',
1594
94249ce4496d a random position helper class
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1593
diff changeset
   294
    'position-2d.h',
94249ce4496d a random position helper class
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1593
diff changeset
   295
    'random-2d-position.h',
524
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   296
    ])
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   297
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   298
applications = build.Ns3Module ('applications', 'src/applications')
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   299
ns3.add (applications)
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   300
applications.add_deps (['node'])
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   301
applications.add_sources ([
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   302
    'onoff-application.cc',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   303
])
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   304
applications.add_inst_headers ([
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   305
    'onoff-application.h',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   306
])
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   307
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   308
inode = build.Ns3Module ('internet-node', 'src/internet-node')
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   309
ns3.add (inode)
585
a009b03b720a remove ApplicationList. Move functionality to Node class
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 578
diff changeset
   310
inode.add_deps (['node'])
524
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   311
inode.add_sources ([
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   312
    'internet-node.cc',
234
6124bda39cb3 code from all trees.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 232
diff changeset
   313
    '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
   314
    'l3-protocol.cc',
234
6124bda39cb3 code from all trees.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 232
diff changeset
   315
    'ipv4-l4-demux.cc',
240
7da682f99bf9 add non-debugged udp stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 238
diff changeset
   316
    '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
   317
    '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
   318
    '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
   319
    'ipv4-checksum.cc',
236
5673656dc2e7 a basic untested ipv4 implementation
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 235
diff changeset
   320
    'ipv4-interface.cc',
733
fb1882e7d785 rename ipv4.h to ipv4-l3-protocol.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 731
diff changeset
   321
    'ipv4-l3-protocol.cc',
238
2f09fd9cf32e add start of udp stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 236
diff changeset
   322
    'ipv4-end-point.cc',
741
38ebb2fb16f5 udp.h -> udp-l4-protocol.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 740
diff changeset
   323
    'udp-l4-protocol.cc',
242
a44932709b47 add arp stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 241
diff changeset
   324
    'arp-header.cc',
a44932709b47 add arp stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 241
diff changeset
   325
    'arp-cache.cc',
a44932709b47 add arp stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 241
diff changeset
   326
    'arp-ipv4-interface.cc',
735
a3e48148c3ac arp.h -> arp-l3-protocol.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 733
diff changeset
   327
    'arp-l3-protocol.cc',
247
fb7375bb43d7 make the sample code compile and link.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 245
diff changeset
   328
    'ipv4-loopback-interface.cc',
fb7375bb43d7 make the sample code compile and link.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 245
diff changeset
   329
    '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
   330
    '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
   331
    '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
   332
    'arp-private.cc',
737
98eeb9273ed2 i-ipv4-impl.h -> ipv4-impl.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 735
diff changeset
   333
    'ipv4-impl.cc',
738
2c105723d191 i-ipv4-private.h ipv4-private.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 737
diff changeset
   334
    'ipv4-private.cc',
524
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   335
    'ascii-trace.cc',
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   336
    'pcap-trace.cc',
739
f7c6725303c0 i-udp-impl.h -> udp-impl.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 738
diff changeset
   337
    'udp-impl.cc',
524
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   338
])
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   339
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
   340
    'ipv4-header.h',
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
   341
    'udp-header.h',
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
   342
    'ipv4-checksum.h',
242
a44932709b47 add arp stack
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 241
diff changeset
   343
    '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
   344
    'arp-cache.h',
735
a3e48148c3ac arp.h -> arp-l3-protocol.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 733
diff changeset
   345
    'arp-l3-protocol.h',
247
fb7375bb43d7 make the sample code compile and link.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 245
diff changeset
   346
    'ipv4-loopback-interface.h',
234
6124bda39cb3 code from all trees.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 232
diff changeset
   347
    'l3-demux.h',
247
fb7375bb43d7 make the sample code compile and link.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 245
diff changeset
   348
    'header-utils.h',
444
1647ca57f19d remove ipv4 interface from public API
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 412
diff changeset
   349
    '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
   350
    'udp-socket.h',
741
38ebb2fb16f5 udp.h -> udp-l4-protocol.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 740
diff changeset
   351
    'udp-l4-protocol.h',
740
1d6ce43097d9 i-arp-private.h -> arp-private.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 739
diff changeset
   352
    'arp-private.h',
737
98eeb9273ed2 i-ipv4-impl.h -> ipv4-impl.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 735
diff changeset
   353
    'ipv4-impl.h',
738
2c105723d191 i-ipv4-private.h ipv4-private.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 737
diff changeset
   354
    'ipv4-private.h',
733
fb1882e7d785 rename ipv4.h to ipv4-l3-protocol.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 731
diff changeset
   355
    'ipv4-l3-protocol.h',
522
d5039448597a remove Node::GetIpv4
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 521
diff changeset
   356
    'l3-protocol.h',
d5039448597a remove Node::GetIpv4
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 521
diff changeset
   357
    'ipv4-l4-protocol.h',
d5039448597a remove Node::GetIpv4
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 521
diff changeset
   358
    'ipv4-l4-demux.h',
d5039448597a remove Node::GetIpv4
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 521
diff changeset
   359
    'ipv4-end-point-demux.h',
d5039448597a remove Node::GetIpv4
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 521
diff changeset
   360
    'ipv4-end-point.h',
325
379ad3b7a9fc add some simple packet content dumping.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 309
diff changeset
   361
    'ipv4-header.h',
379ad3b7a9fc add some simple packet content dumping.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 309
diff changeset
   362
    'udp-header.h',
524
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   363
    'ipv4-interface.h',
605
3a62e5c4de75 rename internet-node.h to i-node-impl.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 604
diff changeset
   364
    'sgi-hashmap.h',
739
f7c6725303c0 i-udp-impl.h -> udp-impl.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 738
diff changeset
   365
    'udp-impl.h',
524
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   366
])
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   367
inode.add_inst_headers ([
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   368
    'internet-node.h',
389
d8f84756cf21 split out AsciiTrace class from simple example
mathieu@mathieu.inria.fr
parents: 381
diff changeset
   369
    'ascii-trace.h',
456
5361882cc2f3 put together a PcapTrace and test it
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 412
diff changeset
   370
    'pcap-trace.h',
524
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   371
])
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   372
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   373
232
8cd08910f9a1 initial node base class from george's repo.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 226
diff changeset
   374
331
d75ee9d8efa4 move p2p to new dir
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 325
diff changeset
   375
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
   376
ns3.add (p2p)
1df1165d6a68 Rename file names from serial to p2p
Tom Henderson <tomh@tomh.org>
parents: 365
diff changeset
   377
p2p.add_deps (['node'])
1df1165d6a68 Rename file names from serial to p2p
Tom Henderson <tomh@tomh.org>
parents: 365
diff changeset
   378
p2p.add_sources ([
1df1165d6a68 Rename file names from serial to p2p
Tom Henderson <tomh@tomh.org>
parents: 365
diff changeset
   379
    'p2p-net-device.cc',
1df1165d6a68 Rename file names from serial to p2p
Tom Henderson <tomh@tomh.org>
parents: 365
diff changeset
   380
    'p2p-channel.cc',
1df1165d6a68 Rename file names from serial to p2p
Tom Henderson <tomh@tomh.org>
parents: 365
diff changeset
   381
    'p2p-topology.cc',
334
8075943fda5a move serial code to src/devices/serial
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 331
diff changeset
   382
    ])
368
1df1165d6a68 Rename file names from serial to p2p
Tom Henderson <tomh@tomh.org>
parents: 365
diff changeset
   383
p2p.add_inst_headers ([
1df1165d6a68 Rename file names from serial to p2p
Tom Henderson <tomh@tomh.org>
parents: 365
diff changeset
   384
    'p2p-net-device.h',
1df1165d6a68 Rename file names from serial to p2p
Tom Henderson <tomh@tomh.org>
parents: 365
diff changeset
   385
    'p2p-channel.h',
1df1165d6a68 Rename file names from serial to p2p
Tom Henderson <tomh@tomh.org>
parents: 365
diff changeset
   386
    'p2p-topology.h',
334
8075943fda5a move serial code to src/devices/serial
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 331
diff changeset
   387
    ])
8075943fda5a move serial code to src/devices/serial
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 331
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
1586
a77fe06e9b6d a topology class to read ns2's mobility files and a mobility generator.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1585
diff changeset
   391
mobgen = build.Ns3Module ('mobility-generator', 'utils')
a77fe06e9b6d a topology class to read ns2's mobility files and a mobility generator.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1585
diff changeset
   392
ns3.add (mobgen)
a77fe06e9b6d a topology class to read ns2's mobility files and a mobility generator.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1585
diff changeset
   393
mobgen.set_executable ()
a77fe06e9b6d a topology class to read ns2's mobility files and a mobility generator.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1585
diff changeset
   394
mobgen.add_deps (['simulator', 'node'])
a77fe06e9b6d a topology class to read ns2's mobility files and a mobility generator.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1585
diff changeset
   395
mobgen.add_source ('mobility-generator.cc')
a77fe06e9b6d a topology class to read ns2's mobility files and a mobility generator.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1585
diff changeset
   396
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   397
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
   398
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
   399
run_tests.set_executable()
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   400
run_tests.add_deps(['core', 'simulator', 'common'])
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   401
run_tests.add_source('run-tests.cc')
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   402
700
d845cfea2a16 add benchmark by gustavo
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 699
diff changeset
   403
bench_object = build.Ns3Module('bench-object', 'utils')
d845cfea2a16 add benchmark by gustavo
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 699
diff changeset
   404
ns3.add(bench_object)
d845cfea2a16 add benchmark by gustavo
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 699
diff changeset
   405
bench_object.set_executable()
d845cfea2a16 add benchmark by gustavo
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 699
diff changeset
   406
bench_object.add_deps(['core'])
d845cfea2a16 add benchmark by gustavo
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 699
diff changeset
   407
bench_object.add_source('bench-object.cc')
d845cfea2a16 add benchmark by gustavo
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 699
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_packets = build.Ns3Module('bench-packets', '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_packets)
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   411
bench_packets.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_packets.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
   413
bench_packets.add_source('bench-packets.cc')
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   414
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   415
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
   416
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
   417
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
   418
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
   419
bench_simu.add_source('bench-simulator.cc')
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   420
197
8346ab3528bf fix the Simulation event replayer: make it build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 173
diff changeset
   421
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
   422
ns3.add(replay_simu)
8346ab3528bf fix the Simulation event replayer: make it build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 173
diff changeset
   423
replay_simu.set_executable()
8346ab3528bf fix the Simulation event replayer: make it build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 173
diff changeset
   424
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
   425
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
   426
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   427
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   428
# samples
268
a43b635230e8 test and debug the debug support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 265
diff changeset
   429
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
   430
sample_debug.set_executable()
a43b635230e8 test and debug the debug support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 265
diff changeset
   431
ns3.add(sample_debug)
a43b635230e8 test and debug the debug support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 265
diff changeset
   432
sample_debug.add_dep('core')
a43b635230e8 test and debug the debug support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 265
diff changeset
   433
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
   434
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
   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
1555
d3e9007db75b improve sample code, make it build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1554
diff changeset
   442
sample_random_walk = build.Ns3Module('sample-random-walk', 'samples')
d3e9007db75b improve sample code, make it build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1554
diff changeset
   443
sample_random_walk.set_executable()
d3e9007db75b improve sample code, make it build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1554
diff changeset
   444
ns3.add(sample_random_walk)
d3e9007db75b improve sample code, make it build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1554
diff changeset
   445
sample_random_walk.add_deps(['core', 'node'])
d3e9007db75b improve sample code, make it build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1554
diff changeset
   446
sample_random_walk.add_source('main-random-walk.cc')
d3e9007db75b improve sample code, make it build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1554
diff changeset
   447
1561
a47658d292f1 improve grid topology sample code and add dox documentation
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1555
diff changeset
   448
sample_grid_topology = build.Ns3Module('sample-grid-topology', 'samples')
a47658d292f1 improve grid topology sample code and add dox documentation
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1555
diff changeset
   449
sample_grid_topology.set_executable()
a47658d292f1 improve grid topology sample code and add dox documentation
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1555
diff changeset
   450
ns3.add(sample_grid_topology)
a47658d292f1 improve grid topology sample code and add dox documentation
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1555
diff changeset
   451
sample_grid_topology.add_deps(['core', 'internet-node'])
a47658d292f1 improve grid topology sample code and add dox documentation
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1555
diff changeset
   452
sample_grid_topology.add_source('main-grid-topology.cc')
a47658d292f1 improve grid topology sample code and add dox documentation
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 1555
diff changeset
   453
226
1f8c4e56bc86 add smart pointer sample code
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 223
diff changeset
   454
sample_ptr = build.Ns3Module('sample-ptr', 'samples')
1f8c4e56bc86 add smart pointer sample code
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 223
diff changeset
   455
sample_ptr.set_executable()
1f8c4e56bc86 add smart pointer sample code
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 223
diff changeset
   456
ns3.add(sample_ptr)
1f8c4e56bc86 add smart pointer sample code
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 223
diff changeset
   457
sample_ptr.add_dep('core')
1f8c4e56bc86 add smart pointer sample code
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 223
diff changeset
   458
sample_ptr.add_source('main-ptr.cc')
1f8c4e56bc86 add smart pointer sample code
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 223
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_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
   461
#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
   462
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
   463
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
   464
sample_trace.add_source('main-trace.cc')
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   465
766
aa1dff7879c8 Add main-query-interface.cc sample file
Tom Henderson <tomh@tomh.org>
parents: 758
diff changeset
   466
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
   467
ns3.add(sample_query_interface)
aa1dff7879c8 Add main-query-interface.cc sample file
Tom Henderson <tomh@tomh.org>
parents: 758
diff changeset
   468
sample_query_interface.add_dep('common')
aa1dff7879c8 Add main-query-interface.cc sample file
Tom Henderson <tomh@tomh.org>
parents: 758
diff changeset
   469
sample_query_interface.set_executable()
aa1dff7879c8 Add main-query-interface.cc sample file
Tom Henderson <tomh@tomh.org>
parents: 758
diff changeset
   470
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
   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_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
   473
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
   474
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
   475
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
   476
sample_simu.add_source('main-simulator.cc')
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   477
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   478
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
   479
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
   480
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
   481
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
   482
sample_packet.add_source('main-packet.cc')
8
cb4ae01ba180 add scons build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   483
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   484
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
   485
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
   486
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
   487
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
   488
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
   489
247
fb7375bb43d7 make the sample code compile and link.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 245
diff changeset
   490
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
   491
sample_simple.set_executable()
fb7375bb43d7 make the sample code compile and link.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 245
diff changeset
   492
ns3.add(sample_simple)
524
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   493
sample_simple.add_deps(['core', 'simulator', 'node', 'internet-node'])
247
fb7375bb43d7 make the sample code compile and link.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 245
diff changeset
   494
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
   495
253
b9201368acdb make the p2p example compile
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 249
diff changeset
   496
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
   497
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
   498
#n3.add(sample_sp2p)
524
082ffdd8fbd7 move code around
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 523
diff changeset
   499
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
   500
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
   501
441
d824620eac38 Added default value sample
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 439
diff changeset
   502
sample_default_value = build.Ns3Module('sample-default-value', 'samples')
d824620eac38 Added default value sample
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 439
diff changeset
   503
sample_default_value.set_executable()
d824620eac38 Added default value sample
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 439
diff changeset
   504
ns3.add(sample_default_value)
d824620eac38 Added default value sample
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 439
diff changeset
   505
sample_default_value.add_deps(['core', 'simulator', 'node', 'p2p'])
d824620eac38 Added default value sample
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 439
diff changeset
   506
sample_default_value.add_source('main-default-value.cc')
d824620eac38 Added default value sample
Raj Bhattacharjea <raj.b@gatech.edu>
parents: 439
diff changeset
   507
725
632d1467a4ae sample code for Object base class
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 714
diff changeset
   508
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
   509
sample_object.set_executable()
632d1467a4ae sample code for Object base class
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 714
diff changeset
   510
ns3.add(sample_object)
632d1467a4ae sample code for Object base class
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 714
diff changeset
   511
sample_object.add_deps(['core'])
632d1467a4ae sample code for Object base class
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 714
diff changeset
   512
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
   513
727
3bcec84f9f54 sample code for component manager
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 725
diff changeset
   514
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
   515
sample_component_manager.set_executable()
3bcec84f9f54 sample code for component manager
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 725
diff changeset
   516
ns3.add(sample_component_manager)
3bcec84f9f54 sample code for component manager
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 725
diff changeset
   517
sample_component_manager.add_deps(['core'])
3bcec84f9f54 sample code for component manager
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 725
diff changeset
   518
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
   519
353
b8656730c209 Move ns-2/simple.cc to examples/simple-serial.cc
Tom Henderson <tomh@tomh.org>
parents: 352
diff changeset
   520
# examples
368
1df1165d6a68 Rename file names from serial to p2p
Tom Henderson <tomh@tomh.org>
parents: 365
diff changeset
   521
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
   522
example_simple_p2p.set_executable()
1df1165d6a68 Rename file names from serial to p2p
Tom Henderson <tomh@tomh.org>
parents: 365
diff changeset
   523
ns3.add(example_simple_p2p)
586
6220d0040d50 call Node::AddDevice from NetDevice::NetDevice
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 585
diff changeset
   524
example_simple_p2p.add_deps(['core', 'simulator', 'node', 'p2p', 'internet-node', 'applications'])
368
1df1165d6a68 Rename file names from serial to p2p
Tom Henderson <tomh@tomh.org>
parents: 365
diff changeset
   525
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
   526
136
4faf1726e8ff make python code more Pep8 conformant (patch from Gustavo Carneiro)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 128
diff changeset
   527
ns3.generate_dependencies()