2007-05-07 12:01:51 +01:00
|
|
|
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
|
2007-10-03 19:38:03 +01:00
|
|
|
import os.path
|
2007-05-07 12:01:51 +01:00
|
|
|
|
|
|
|
|
def build(bld):
|
2008-12-29 13:28:54 +00:00
|
|
|
env = bld.env
|
2007-05-07 12:01:51 +01:00
|
|
|
|
2009-09-12 19:44:17 -07:00
|
|
|
test_runner = bld.create_ns3_program('test-runner', ['core'])
|
|
|
|
|
test_runner.install_path = None # do not install
|
|
|
|
|
test_runner.source = 'test-runner.cc'
|
2011-03-18 10:58:21 -07:00
|
|
|
|
|
|
|
|
# Set the libraries the testrunner depends on equal to the list of
|
|
|
|
|
# enabled modules plus the list of enabled module test libraries.
|
2011-07-05 11:05:53 +01:00
|
|
|
test_runner.uselib_local = [mod+"--lib" for mod in (env['NS3_ENABLED_MODULES'] + env['NS3_ENABLED_MODULE_TEST_LIBRARIES'])]
|
2007-05-07 12:01:51 +01:00
|
|
|
|
2011-02-18 16:05:39 -08:00
|
|
|
obj = bld.create_ns3_program('bench-simulator', ['core'])
|
2007-08-08 15:10:36 +01:00
|
|
|
obj.source = 'bench-simulator.cc'
|
2007-06-15 15:19:38 +01:00
|
|
|
|
2011-08-11 15:25:25 -07:00
|
|
|
# Because the list of enabled modules must be set before
|
|
|
|
|
# test-runner can be built, this diretory is parsed by the top
|
|
|
|
|
# level wscript file after all of the other program module
|
|
|
|
|
# dependencies have been handled.
|
|
|
|
|
#
|
|
|
|
|
# So, make sure that the network module is enabled before building
|
|
|
|
|
# these programs.
|
|
|
|
|
if 'ns3-network' in env['NS3_ENABLED_MODULES']:
|
|
|
|
|
obj = bld.create_ns3_program('bench-packets', ['network'])
|
|
|
|
|
obj.source = 'bench-packets.cc'
|
2007-09-11 08:27:27 +02:00
|
|
|
|
2011-08-11 15:25:25 -07:00
|
|
|
obj = bld.create_ns3_program('print-introspected-doxygen', ['network'])
|
|
|
|
|
obj.source = 'print-introspected-doxygen.cc'
|
|
|
|
|
obj.uselib_local = [mod+"--lib" for mod in env['NS3_ENABLED_MODULES']]
|
2007-10-03 16:38:17 +01:00
|
|
|
|