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

« back to all changes in this revision

Viewing changes to ns-3.13/src/core/examples/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
    if not bld.env['ENABLE_EXAMPLES']:
 
5
        return;
 
6
 
 
7
    obj = bld.create_ns3_program('main-callback', ['core'])
 
8
    obj.source = 'main-callback.cc'
 
9
 
 
10
    obj = bld.create_ns3_program('sample-simulator', ['core'])
 
11
    obj.source = 'sample-simulator.cc'
 
12
 
 
13
    bld.register_ns3_script('sample-simulator.py', ['core'])
 
14
 
 
15
    obj = bld.create_ns3_program('main-ptr', ['core'] )
 
16
    obj.source = 'main-ptr.cc'
 
17
 
 
18
    obj = bld.create_ns3_program('main-random-variable', ['core', 'config-store', 'tools'])
 
19
    obj.source = 'main-random-variable.cc'
 
20
 
 
21
    obj = bld.create_ns3_program('sample-random-variable',
 
22
                                 ['core'])
 
23
    obj.source = 'sample-random-variable.cc'
 
24
 
 
25
    if bld.env['ENABLE_THREADING'] and bld.env["ENABLE_REAL_TIME"]:
 
26
        obj = bld.create_ns3_program('main-test-sync', ['network'])
 
27
        obj.source = 'main-test-sync.cc'
 
28