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

« back to all changes in this revision

Viewing changes to ns-3.12.1/src/network/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
 
    network = bld.create_ns3_module('network', ['core'])
5
 
    network.source = [
6
 
        'model/address.cc',
7
 
        'model/application.cc',
8
 
        'model/buffer.cc',
9
 
        'model/byte-tag-list.cc',
10
 
        'model/channel.cc',
11
 
        'model/channel-list.cc',
12
 
        'model/chunk.cc',
13
 
        'model/header.cc',
14
 
        'model/nix-vector.cc',
15
 
        'model/node.cc',
16
 
        'model/node-list.cc',
17
 
        'model/net-device.cc',
18
 
        'model/packet.cc',
19
 
        'model/packet-metadata.cc',
20
 
        'model/packet-tag-list.cc',
21
 
        'model/socket.cc',
22
 
        'model/socket-factory.cc',
23
 
        'model/tag.cc',
24
 
        'model/tag-buffer.cc',
25
 
        'model/trailer.cc',
26
 
        'utils/address-utils.cc',
27
 
        'utils/data-rate.cc',
28
 
        'utils/drop-tail-queue.cc',
29
 
        'utils/error-model.cc',
30
 
        'utils/ethernet-header.cc',
31
 
        'utils/ethernet-trailer.cc',
32
 
        'utils/flow-id-tag.cc',
33
 
        'utils/inet-socket-address.cc',
34
 
        'utils/inet6-socket-address.cc',
35
 
        'utils/ipv4-address.cc',
36
 
        'utils/ipv6-address.cc',
37
 
        'utils/mac48-address.cc',
38
 
        'utils/mac64-address.cc',
39
 
        'utils/llc-snap-header.cc',
40
 
        'utils/output-stream-wrapper.cc',
41
 
        'utils/packetbb.cc',
42
 
        'utils/packet-burst.cc',
43
 
        'utils/packet-socket.cc',
44
 
        'utils/packet-socket-address.cc',
45
 
        'utils/packet-socket-factory.cc',
46
 
        'utils/pcap-file.cc',
47
 
        'utils/pcap-file-wrapper.cc',
48
 
        'utils/queue.cc',
49
 
        'utils/radiotap-header.cc',
50
 
        'utils/simple-channel.cc',
51
 
        'utils/simple-net-device.cc',
52
 
        'helper/application-container.cc',
53
 
        'helper/net-device-container.cc',
54
 
        'helper/node-container.cc',
55
 
        'helper/packet-socket-helper.cc',
56
 
        'helper/trace-helper.cc',
57
 
        ]
58
 
 
59
 
    network_test = bld.create_ns3_module_test_library('network')
60
 
    network_test.source = [
61
 
        'test/buffer-test.cc',
62
 
        'test/drop-tail-queue-test-suite.cc',
63
 
        'test/packetbb-test-suite.cc',
64
 
        'test/packet-test-suite.cc',
65
 
        'test/packet-metadata-test.cc',
66
 
        'test/pcap-file-test-suite.cc',
67
 
        'test/sequence-number-test-suite.cc',
68
 
        ]
69
 
 
70
 
    headers = bld.new_task_gen('ns3header')
71
 
    headers.module = 'network'
72
 
    headers.source = [
73
 
        'model/address.h',
74
 
        'model/application.h',
75
 
        'model/buffer.h',
76
 
        'model/byte-tag-list.h',
77
 
        'model/channel.h',
78
 
        'model/channel-list.h',
79
 
        'model/chunk.h',
80
 
        'model/header.h',
81
 
        'model/net-device.h',
82
 
        'model/nix-vector.h',
83
 
        'model/node.h',
84
 
        'model/node-list.h',
85
 
        'model/packet.h',
86
 
        'model/packet-metadata.h',
87
 
        'model/packet-tag-list.h',
88
 
        'model/socket.h',
89
 
        'model/socket-factory.h',
90
 
        'model/tag.h',
91
 
        'model/tag-buffer.h',
92
 
        'model/trailer.h',
93
 
        'utils/address-utils.h',
94
 
        'utils/data-rate.h',
95
 
        'utils/drop-tail-queue.h',
96
 
        'utils/error-model.h',
97
 
        'utils/ethernet-header.h',
98
 
        'utils/ethernet-trailer.h',
99
 
        'utils/flow-id-tag.h',
100
 
        'utils/inet-socket-address.h',
101
 
        'utils/inet6-socket-address.h',
102
 
        'utils/ipv4-address.h',
103
 
        'utils/ipv6-address.h',
104
 
        'utils/llc-snap-header.h',
105
 
        'utils/mac48-address.h',
106
 
        'utils/mac64-address.h',
107
 
        'utils/output-stream-wrapper.h',
108
 
        'utils/packetbb.h',
109
 
        'utils/packet-burst.h',
110
 
        'utils/packet-socket.h',
111
 
        'utils/packet-socket-address.h',
112
 
        'utils/packet-socket-factory.h',
113
 
        'utils/pcap-file.h',
114
 
        'utils/pcap-file-wrapper.h',
115
 
        'utils/generic-phy.h',
116
 
        'utils/queue.h',
117
 
        'utils/radiotap-header.h',
118
 
        'utils/sequence-number.h',
119
 
        'utils/sgi-hashmap.h',
120
 
        'utils/simple-channel.h',
121
 
        'utils/simple-net-device.h',
122
 
        'utils/pcap-test.h',
123
 
        'helper/application-container.h',
124
 
        'helper/net-device-container.h',
125
 
        'helper/node-container.h',
126
 
        'helper/packet-socket-helper.h',
127
 
        'helper/trace-helper.h',
128
 
        ]
129
 
 
130
 
    if (bld.env['ENABLE_EXAMPLES']):
131
 
        bld.add_subdirs('examples')
132
 
 
133
 
    bld.ns3_python_bindings()