~ubuntu-branches/ubuntu/quantal/ns3/quantal

« back to all changes in this revision

Viewing changes to ns-3.12.1/src/uan/wscript

  • Committer: Package Import Robot
  • Author(s): YunQiang Su, Aron Xu, YunQiang Su, Upstream
  • Date: 2012-01-06 00:35:42 UTC
  • mfrom: (10.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20120106003542-vcn5g03mhapm991h
Tags: 3.13+dfsg-1
[ Aron Xu ]:
        add tag binary and binary-indep, 
  for not build doc when --binary-arch (Closes: #654493).
[ YunQiang Su ]
        add waf 1.5/1.6 source to debian directory, 
  and build waf from there (Closes: #642217).
[ Upstream ]
  Successfully link with --as-needed option (Closes: #642225).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2
 
 
3
 
def build(bld):
4
 
    module = bld.create_ns3_module('uan', ['network', 'energy'])
5
 
    module.source = [
6
 
        'model/uan-channel.cc',
7
 
        'model/uan-phy-gen.cc',
8
 
        'model/uan-transducer-hd.cc',
9
 
        'model/uan-address.cc',
10
 
        'model/uan-net-device.cc',
11
 
        'model/uan-tx-mode.cc',
12
 
        'model/uan-prop-model.cc',
13
 
        'model/uan-prop-model-ideal.cc',
14
 
        'model/uan-mac-aloha.cc',
15
 
        'model/uan-header-common.cc',
16
 
        'model/uan-noise-model-default.cc',
17
 
        'model/uan-mac-cw.cc',
18
 
        'model/uan-prop-model-thorp.cc',
19
 
        'model/uan-phy-dual.cc',
20
 
        'model/uan-header-rc.cc',
21
 
        'model/uan-mac-rc.cc',
22
 
        'model/uan-mac-rc-gw.cc',
23
 
        'model/uan-phy.cc',
24
 
        'model/uan-noise-model.cc',
25
 
        'model/acoustic-modem-energy-model.cc',
26
 
        'helper/uan-helper.cc',
27
 
        'helper/acoustic-modem-energy-model-helper.cc',
28
 
        ]
29
 
 
30
 
    module_test = bld.create_ns3_module_test_library('uan')
31
 
    module_test.source = [
32
 
        'test/uan-test.cc',
33
 
        'test/uan-energy-model-test.cc',
34
 
        ]
35
 
    headers = bld.new_task_gen('ns3header')
36
 
    headers.module = 'uan'
37
 
    headers.source = [
38
 
        'model/uan-channel.h',
39
 
        'model/uan-phy.h',
40
 
        'model/uan-mac.h',
41
 
        'model/uan-net-device.h',
42
 
        'model/uan-prop-model.h',
43
 
        'model/uan-tx-mode.h',
44
 
        'model/uan-transducer.h',
45
 
        'model/uan-phy-gen.h',
46
 
        'model/uan-transducer-hd.h',
47
 
        'model/uan-address.h',
48
 
        'model/uan-prop-model-ideal.h',
49
 
        'model/uan-mac-aloha.h',
50
 
        'model/uan-header-common.h',
51
 
        'model/uan-noise-model.h',
52
 
        'model/uan-noise-model-default.h',
53
 
        'model/uan-mac-cw.h',
54
 
        'model/uan-prop-model-thorp.h',
55
 
        'model/uan-phy-dual.h',
56
 
        'model/uan-header-rc.h',
57
 
        'model/uan-mac-rc.h',
58
 
        'model/acoustic-modem-energy-model.h',
59
 
        'helper/uan-helper.h',
60
 
        'helper/acoustic-modem-energy-model-helper.h',
61
 
        'model/uan-mac-rc-gw.h',
62
 
        ]
63
 
 
64
 
    if (bld.env['ENABLE_EXAMPLES']):
65
 
      bld.add_subdirs('examples')
66
 
 
67
 
    bld.ns3_python_bindings()