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

« back to all changes in this revision

Viewing changes to ns-3.12.1/src/netanim/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 ('netanim', ['internet', 'mobility', 'wimax', 'wifi'])
5
 
        module.includes = '.'
6
 
        module.source = [
7
 
                          'model/animation-interface.cc',
8
 
                          'helper/animation-interface-helper.cc',
9
 
                        ]
10
 
 
11
 
        headers = bld.new_task_gen ('ns3header')
12
 
        headers.module = 'netanim'
13
 
        headers.source = [
14
 
                          'model/animation-interface.h',
15
 
                          'helper/animation-interface-helper.h',
16
 
                         ]
17
 
 
18
 
        if (bld.env['ENABLE_EXAMPLES']) :
19
 
                bld.add_subdirs ('examples')
20
 
 
21
 
        bld.ns3_python_bindings ()
22
 
 
23
 
def configure (conf) :
24
 
        conf.check (header_name='sys/socket.h', define_name='HAVE_SYS_SOCKET_H')
25
 
        conf.check (header_name='netinet/in.h', define_name='HAVE_NETINET_IN_H')
26
 
        conf.write_config_header ('ns3/netanim-config.h', top=True)
27