src/flow-monitor/wscript
author Sébastien Deronne <sebastien.deronne@gmail.com>
Sat, 08 Dec 2018 16:52:32 +0100
changeset 13892 53fa9b4b8c09
parent 12236 fd72e9c4c558
permissions -rw-r--r--
wifi: wifi: Add ThresholdPreambleDetectionModel logs in WifiHelper::EnableLogComponents

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

def build(bld):
    obj = bld.create_ns3_module('flow-monitor', ['internet', 'config-store'])
    obj.source = ["model/%s" % s for s in [
       'flow-monitor.cc',
       'flow-classifier.cc',
       'flow-probe.cc',
       'ipv4-flow-classifier.cc',
       'ipv4-flow-probe.cc',
       'ipv6-flow-classifier.cc',
       'ipv6-flow-probe.cc',
       'histogram.cc',
        ]]
    obj.source.append("helper/flow-monitor-helper.cc")

    module_test = bld.create_ns3_module_test_library('flow-monitor')
    module_test.source = [
        'test/histogram-test-suite.cc',
        ]

    headers = bld(features='ns3header')
    headers.module = 'flow-monitor'
    headers.source = ["model/%s" % s for s in [
       'flow-monitor.h',
       'flow-probe.h',
       'flow-classifier.h',
       'ipv4-flow-classifier.h',
       'ipv4-flow-probe.h',
       'ipv6-flow-classifier.h',
       'ipv6-flow-probe.h',
       'histogram.h',
        ]]
    headers.source.append("helper/flow-monitor-helper.h")

    if bld.env['ENABLE_EXAMPLES']:
        bld.recurse('examples')

    bld.ns3_python_bindings()