author | Mitch Watrous <watrous@u.washington.edu> |
Thu, 24 Mar 2011 16:46:49 -0700 | |
changeset 6949 | 8167c9e2a12d |
parent 6932 | 3b497f4f6ad9 |
child 7124 | 058f6ecace0c |
permissions | -rw-r--r-- |
6349 | 1 |
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
2 |
||
3 |
def build(bld): |
|
4 |
||
6913
54679ab32585
Create separate module and test-module libraries
Mitch Watrous <watrous@u.washington.edu>
parents:
6859
diff
changeset
|
5 |
module = bld.create_ns3_module('spectrum', ['internet', 'propagation', 'applications']) |
6349 | 6 |
module.source = [ |
6801 | 7 |
'model/spectrum-model.cc', |
8 |
'model/spectrum-value.cc', |
|
9 |
'model/spectrum-converter.cc', |
|
10 |
'model/spectrum-type.cc', |
|
11 |
'model/spectrum-propagation-loss-model.cc', |
|
12 |
'model/friis-spectrum-propagation-loss.cc', |
|
13 |
'model/spectrum-phy.cc', |
|
14 |
'model/spectrum-channel.cc', |
|
15 |
'model/single-model-spectrum-channel.cc', |
|
16 |
'model/multi-model-spectrum-channel.cc', |
|
17 |
'model/spectrum-interference.cc', |
|
18 |
'model/spectrum-error-model.cc', |
|
19 |
'model/spectrum-model-ism2400MHz-res1MHz.cc', |
|
20 |
'model/spectrum-model-300kHz-300GHz-log.cc', |
|
21 |
'model/wifi-spectrum-value-helper.cc', |
|
22 |
'model/waveform-generator.cc', |
|
23 |
'model/spectrum-analyzer.cc', |
|
24 |
'model/aloha-noack-mac-header.cc', |
|
25 |
'model/aloha-noack-net-device.cc', |
|
26 |
'model/half-duplex-ideal-phy.cc', |
|
27 |
'model/non-communicating-net-device.cc', |
|
28 |
'model/microwave-oven-spectrum-value-helper.cc', |
|
29 |
'helper/spectrum-helper.cc', |
|
30 |
'helper/adhoc-aloha-noack-ideal-phy-helper.cc', |
|
31 |
'helper/waveform-generator-helper.cc', |
|
32 |
'helper/spectrum-analyzer-helper.cc', |
|
6949
8167c9e2a12d
Create test module libraries for some modules
Mitch Watrous <watrous@u.washington.edu>
parents:
6932
diff
changeset
|
33 |
] |
8167c9e2a12d
Create test module libraries for some modules
Mitch Watrous <watrous@u.washington.edu>
parents:
6932
diff
changeset
|
34 |
|
8167c9e2a12d
Create test module libraries for some modules
Mitch Watrous <watrous@u.washington.edu>
parents:
6932
diff
changeset
|
35 |
module_test = bld.create_ns3_module_test_library('spectrum') |
8167c9e2a12d
Create test module libraries for some modules
Mitch Watrous <watrous@u.washington.edu>
parents:
6932
diff
changeset
|
36 |
module_test.source = [ |
6801 | 37 |
'test/spectrum-interference-test.cc', |
38 |
'test/spectrum-value-test.cc', |
|
6349 | 39 |
] |
40 |
||
41 |
headers = bld.new_task_gen('ns3header') |
|
42 |
headers.module = 'spectrum' |
|
43 |
headers.source = [ |
|
6801 | 44 |
'model/spectrum-model.h', |
45 |
'model/spectrum-value.h', |
|
46 |
'model/spectrum-converter.h', |
|
47 |
'model/spectrum-type.h', |
|
48 |
'model/spectrum-propagation-loss-model.h', |
|
49 |
'model/friis-spectrum-propagation-loss.h', |
|
50 |
'model/spectrum-phy.h', |
|
51 |
'model/spectrum-channel.h', |
|
52 |
'model/single-model-spectrum-channel.h', |
|
53 |
'model/multi-model-spectrum-channel.h', |
|
54 |
'model/spectrum-interference.h', |
|
55 |
'model/spectrum-error-model.h', |
|
56 |
'model/spectrum-model-ism2400MHz-res1MHz.h', |
|
57 |
'model/spectrum-model-300kHz-300GHz-log.h', |
|
58 |
'model/wifi-spectrum-value-helper.h', |
|
59 |
'model/waveform-generator.h', |
|
60 |
'model/spectrum-analyzer.h', |
|
61 |
'model/aloha-noack-mac-header.h', |
|
62 |
'model/aloha-noack-net-device.h', |
|
63 |
'model/half-duplex-ideal-phy.h', |
|
64 |
'model/non-communicating-net-device.h', |
|
65 |
'model/microwave-oven-spectrum-value-helper.h', |
|
66 |
'helper/spectrum-helper.h', |
|
67 |
'helper/adhoc-aloha-noack-ideal-phy-helper.h', |
|
68 |
'helper/waveform-generator-helper.h', |
|
69 |
'helper/spectrum-analyzer-helper.h', |
|
6349 | 70 |
] |
71 |
||
6801 | 72 |
if (bld.env['ENABLE_EXAMPLES']): |
73 |
bld.add_subdirs('examples') |
|
6349 | 74 |
|
6801 | 75 |
|
6932
3b497f4f6ad9
Add more modular bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6913
diff
changeset
|
76 |
bld.ns3_python_bindings() |