1## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2
3def build(bld):
4
5    module = bld.create_ns3_module('buildings', ['mobility', 'propagation', 'config-store'])
6    module.source = [
7        'model/building.cc',
8        'model/building-list.cc',
9        'model/mobility-building-info.cc',
10        'model/itu-r-1238-propagation-loss-model.cc',
11        'model/buildings-propagation-loss-model.cc',
12        'model/hybrid-buildings-propagation-loss-model.cc',
13        'model/oh-buildings-propagation-loss-model.cc',
14        'model/buildings-channel-condition-model.cc',
15        'model/three-gpp-v2v-channel-condition-model.cc',
16        'helper/building-container.cc',
17        'helper/building-position-allocator.cc',
18        'helper/building-allocator.cc',
19        'helper/buildings-helper.cc',
20        'model/random-walk-2d-outdoor-mobility-model.cc',
21        ]
22
23    module_test = bld.create_ns3_module_test_library('buildings')
24    module_test.source = [
25        'test/buildings-helper-test.cc',
26        'test/building-position-allocator-test.cc',
27        'test/buildings-pathloss-test.cc',
28        'test/buildings-shadowing-test.cc',
29        'test/buildings-channel-condition-model-test.cc',
30        'test/outdoor-random-walk-test.cc',
31        'test/three-gpp-v2v-channel-condition-model-test.cc',
32        ]
33
34    # Tests encapsulating example programs should be listed here
35    if (bld.env['ENABLE_EXAMPLES']):
36        module_test.source.extend([
37        #   'test/buildings-examples-test-suite.cc',
38            ])
39
40    headers = bld(features='ns3header')
41    headers.module = 'buildings'
42    headers.source = [
43        'model/building.h',
44        'model/building-list.h',
45        'model/mobility-building-info.h',
46        'model/itu-r-1238-propagation-loss-model.h',
47        'model/buildings-propagation-loss-model.h',
48        'model/hybrid-buildings-propagation-loss-model.h',
49        'model/oh-buildings-propagation-loss-model.h',
50        'model/buildings-channel-condition-model.h',
51        'model/three-gpp-v2v-channel-condition-model.h',
52        'helper/building-container.h',
53        'helper/building-allocator.h',
54        'helper/building-position-allocator.h',
55        'helper/buildings-helper.h',
56        'model/random-walk-2d-outdoor-mobility-model.h',
57        ]
58
59    if (bld.env['ENABLE_EXAMPLES']):
60        bld.recurse('examples')
61
62
63    bld.ns3_python_bindings()
64