author | Tom Henderson <tomh@tomh.org> |
Mon, 28 Sep 2015 20:27:25 -0700 | |
changeset 11676 | 05ea1489e509 |
parent 9277 | 0f87d1cb030c |
permissions | -rw-r--r-- |
6127
b5bc10de166d
merge topology read system
Tommaso Pecorella <tpecorella@mac.com>
parents:
diff
changeset
|
1 |
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
b5bc10de166d
merge topology read system
Tommaso Pecorella <tpecorella@mac.com>
parents:
diff
changeset
|
2 |
|
b5bc10de166d
merge topology read system
Tommaso Pecorella <tpecorella@mac.com>
parents:
diff
changeset
|
3 |
def build(bld): |
6823
a27f86fb4e55
Merge node and common modules into new network module
Tom Henderson <tomh@tomh.org>
parents:
6374
diff
changeset
|
4 |
obj = bld.create_ns3_module('topology-read', ['network']) |
6127
b5bc10de166d
merge topology read system
Tommaso Pecorella <tpecorella@mac.com>
parents:
diff
changeset
|
5 |
obj.source = [ |
6854
dc1057c9879d
Modularize topology-read module and move it to src
Mitch Watrous <watrous@u.washington.edu>
parents:
6823
diff
changeset
|
6 |
'model/topology-reader.cc', |
dc1057c9879d
Modularize topology-read module and move it to src
Mitch Watrous <watrous@u.washington.edu>
parents:
6823
diff
changeset
|
7 |
'model/inet-topology-reader.cc', |
dc1057c9879d
Modularize topology-read module and move it to src
Mitch Watrous <watrous@u.washington.edu>
parents:
6823
diff
changeset
|
8 |
'model/orbis-topology-reader.cc', |
dc1057c9879d
Modularize topology-read module and move it to src
Mitch Watrous <watrous@u.washington.edu>
parents:
6823
diff
changeset
|
9 |
'model/rocketfuel-topology-reader.cc', |
6861
1b0f807b1cd9
Migrates topology-reader helpers and examples to module directory
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6854
diff
changeset
|
10 |
'helper/topology-reader-helper.cc', |
6127
b5bc10de166d
merge topology read system
Tommaso Pecorella <tpecorella@mac.com>
parents:
diff
changeset
|
11 |
] |
6972
01039b15c8eb
Move tests from some modules to their test libraries
Mitch Watrous <watrous@u.washington.edu>
parents:
6932
diff
changeset
|
12 |
|
01039b15c8eb
Move tests from some modules to their test libraries
Mitch Watrous <watrous@u.washington.edu>
parents:
6932
diff
changeset
|
13 |
module_test = bld.create_ns3_module_test_library('topology-read') |
01039b15c8eb
Move tests from some modules to their test libraries
Mitch Watrous <watrous@u.washington.edu>
parents:
6932
diff
changeset
|
14 |
module_test.source = [ |
01039b15c8eb
Move tests from some modules to their test libraries
Mitch Watrous <watrous@u.washington.edu>
parents:
6932
diff
changeset
|
15 |
'test/rocketfuel-topology-reader-test-suite.cc', |
01039b15c8eb
Move tests from some modules to their test libraries
Mitch Watrous <watrous@u.washington.edu>
parents:
6932
diff
changeset
|
16 |
] |
01039b15c8eb
Move tests from some modules to their test libraries
Mitch Watrous <watrous@u.washington.edu>
parents:
6932
diff
changeset
|
17 |
|
9277
0f87d1cb030c
Upgrade waf to 1.7.10 and fix included wscripts
Vedran Miletić <rivanvx@gmail.com>
parents:
7487
diff
changeset
|
18 |
headers = bld(features='ns3header') |
6127
b5bc10de166d
merge topology read system
Tommaso Pecorella <tpecorella@mac.com>
parents:
diff
changeset
|
19 |
headers.module = 'topology-read' |
b5bc10de166d
merge topology read system
Tommaso Pecorella <tpecorella@mac.com>
parents:
diff
changeset
|
20 |
headers.source = [ |
6854
dc1057c9879d
Modularize topology-read module and move it to src
Mitch Watrous <watrous@u.washington.edu>
parents:
6823
diff
changeset
|
21 |
'model/topology-reader.h', |
dc1057c9879d
Modularize topology-read module and move it to src
Mitch Watrous <watrous@u.washington.edu>
parents:
6823
diff
changeset
|
22 |
'model/inet-topology-reader.h', |
dc1057c9879d
Modularize topology-read module and move it to src
Mitch Watrous <watrous@u.washington.edu>
parents:
6823
diff
changeset
|
23 |
'model/orbis-topology-reader.h', |
dc1057c9879d
Modularize topology-read module and move it to src
Mitch Watrous <watrous@u.washington.edu>
parents:
6823
diff
changeset
|
24 |
'model/rocketfuel-topology-reader.h', |
6861
1b0f807b1cd9
Migrates topology-reader helpers and examples to module directory
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6854
diff
changeset
|
25 |
'helper/topology-reader-helper.h', |
6127
b5bc10de166d
merge topology read system
Tommaso Pecorella <tpecorella@mac.com>
parents:
diff
changeset
|
26 |
] |
b5bc10de166d
merge topology read system
Tommaso Pecorella <tpecorella@mac.com>
parents:
diff
changeset
|
27 |
|
6861
1b0f807b1cd9
Migrates topology-reader helpers and examples to module directory
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6854
diff
changeset
|
28 |
if bld.env['ENABLE_EXAMPLES']: |
9277
0f87d1cb030c
Upgrade waf to 1.7.10 and fix included wscripts
Vedran Miletić <rivanvx@gmail.com>
parents:
7487
diff
changeset
|
29 |
bld.recurse('examples') |
6932
3b497f4f6ad9
Add more modular bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6861
diff
changeset
|
30 |
|
3b497f4f6ad9
Add more modular bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6861
diff
changeset
|
31 |
bld.ns3_python_bindings() |