src/common/wscript
author Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
Fri, 15 Jun 2007 15:19:38 +0100
changeset 770 6441e0706902
parent 669 355f7b5ea72f
child 910 0ecf32a009a8
permissions -rw-r--r--
WAF: make all ns3 modules register themselves in the environment; link the run-tests program with all ns3 modules, not with a hardcoded list.

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

def configure(conf):
    conf.env.append_value('NS3_MODULES', 'ns3-common')

def build(bld):
    common = bld.create_obj('cpp', 'shlib')
    common.name = 'ns3-common'
    common.target = common.name
    common.uselib_local = ['ns3-core', 'ns3-simulator']
    common.source = [
        'buffer.cc',
        'header.cc',
        'chunk.cc',
        'trailer.cc',
        'packet.cc',
        'tags.cc',
        'pcap-writer.cc',
        'variable-tracer-test.cc',
        'trace-context.cc',
        'trace-resolver.cc',
        'callback-trace-source.cc',
        'empty-trace-resolver.cc',
        'composite-trace-resolver.cc',
        'trace-root.cc',
        'data-rate.cc',
        ]
    headers = bld.create_obj('ns3header')
    headers.source = [
        'buffer.h',
        'header.h',
        'chunk.h',
        'trailer.h',
        'tags.h',
        'packet.h',
        'uv-trace-source.h',
        'sv-trace-source.h',
        'fv-trace-source.h',
        'pcap-writer.h',
        'callback-trace-source.h',
        'trace-context.h',
        'trace-resolver.h',
        'empty-trace-resolver.h',
        'composite-trace-resolver.h',
        'array-trace-resolver.h',
        'trace-root.h',
        'terminal-trace-resolver.h',
        'data-rate.h',
        ]