utils/wscript
author Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
Wed, 08 Aug 2007 21:07:52 +0100
changeset 1220 4933e0890acd
parent 1217 2f7791ae388d
child 1322 b6a4885a92df
child 1368 e75dc1a2a5fb
child 1737 e72c130c3a59
permissions -rw-r--r--
Build all modules as a single ns3 shared library.

## -*- 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('replay-simulation', ['simulator'])
    obj.source = 'replay-simulation.cc'