utils/wscript
author Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
Tue, 11 Sep 2007 14:52:15 +0100
changeset 1742 cf76416ce75b
parent 1737 e72c130c3a59
parent 1421 df273f351a4c
child 1764 04f2a1dd7e45
permissions -rw-r--r--
merge with ns-3-dev

## -*- 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'