src/node/wscript
author Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
Fri, 15 Jun 2007 15:19:38 +0100
changeset 770 6441e0706902
parent 760 975a88259e2e
child 928 218063b19458
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-node')


def build(bld):
    node = bld.create_obj('cpp', 'shlib')
    node.name = 'ns3-node'
    node.target = node.name
    node.uselib_local = ['ns3-core', 'ns3-common', 'ns3-simulator']
    node.source = [
        'node.cc',
        'ipv4-address.cc',
        'net-device.cc',
        'mac-address.cc',
        'llc-snap-header.cc',
        'ipv4-route.cc',
        'queue.cc',
        'drop-tail-queue.cc',
        'channel.cc',
        'node-list.cc',
        'socket.cc',
        'socket-factory.cc',
        'udp.cc',
        'ipv4.cc',
        'application.cc',
        ]

    headers = bld.create_obj('ns3header')
    headers.source = [
        'node.h',
        'ipv4-address.h',
        'net-device.h',
        'mac-address.h',
        'ipv4-route.h',
        'queue.h',
        'drop-tail-queue.h',
        'llc-snap-header.h',
        'channel.h',
        'node-list.h',
        'socket.h',
        'socket-factory.h',
        'udp.h',
        'ipv4.h',
        'application.h',
        ]