utils/wscript
author Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
Tue, 11 Sep 2007 12:11:00 +0200
changeset 1421 df273f351a4c
parent 1322 b6a4885a92df
parent 1368 e75dc1a2a5fb
child 1664 306c81333d64
child 1742 cf76416ce75b
permissions -rw-r--r--
merge tracing overhaul in trunk

## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-


def build(bld):
    env = bld.env_of_name('default')

    unit_tests = bld.create_ns3_program('run-tests')
    unit_tests.install_var  = 0 # do not install
    unit_tests.unit_test    = 1 # runs on 'waf check'
    unit_tests.source = 'run-tests.cc'
    ## link unit test program with all ns3 modules
    unit_tests.uselib_local = 'ns3'
    
    obj = bld.create_ns3_program('bench-simulator', ['simulator'])
    obj.source = 'bench-simulator.cc'

    obj = bld.create_ns3_program('bench-packets', ['common'])
    obj.source = 'bench-packets.cc'

    obj = bld.create_ns3_program('replay-simulation', ['simulator'])
    obj.source = 'replay-simulation.cc'

    obj = bld.create_ns3_program('print-trace-sources',
                                 ['internet-node', 'csma-cd', 'point-to-point'])
    obj.source = 'print-trace-sources.cc'