utils/wscript
author Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
Sun, 20 Mar 2011 13:01:40 +0000
changeset 6919 82217d4007bc
parent 6913 54679ab32585
child 6994 4ab8b23631fd
permissions -rw-r--r--
Bug 1076 - Waf gives an error if you enable only a single module

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

def build(bld):
    env = bld.env

    test_runner = bld.create_ns3_program('test-runner', ['core'])
    test_runner.install_path = None # do not install
    test_runner.source = 'test-runner.cc'

    # Set the libraries the testrunner depends on equal to the list of
    # enabled modules plus the list of enabled module test libraries.
    test_runner.uselib_local = env['NS3_ENABLED_MODULES'] + env['NS3_ENABLED_MODULE_TEST_LIBRARIES']
    
    obj = bld.create_ns3_program('bench-simulator', ['core'])
    obj.source = 'bench-simulator.cc'

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

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