src/stats/wscript
author Tom Henderson <tomh@tomh.org>
Tue, 22 May 2012 21:41:55 -0700
changeset 8792 8f15de62d18e
parent 7546 5f6c264f94aa
child 9277 0f87d1cb030c
permissions -rw-r--r--
fix some logging code for optimized builds
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3570
44b0bc6817c6 Stats module and example merged in.
tjkopena@cs.drexel.edu
parents:
diff changeset
     1
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
44b0bc6817c6 Stats module and example merged in.
tjkopena@cs.drexel.edu
parents:
diff changeset
     2
44b0bc6817c6 Stats module and example merged in.
tjkopena@cs.drexel.edu
parents:
diff changeset
     3
def configure(conf):
7525
9a36f1d5d229 Fix modules wscript usage of 'use' parameter
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 7487
diff changeset
     4
   conf.env['SQLITE_STATS'] = conf.check_nonfatal(lib='sqlite3', define_name='SQLITE3', uselib_store='SQLITE3')
7546
5f6c264f94aa Bug 1269 - sqlite3 not found on FreeBSD
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 7525
diff changeset
     5
   if not conf.env['SQLITE_STATS']:
5f6c264f94aa Bug 1269 - sqlite3 not found on FreeBSD
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 7525
diff changeset
     6
      conf.env['SQLITE_STATS'] = conf.pkg_check_modules('SQLITE3', 'sqlite3', mandatory=False)
3625
30afad8324d5 Add a summary of optional features at the end of the configuration stage.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3570
diff changeset
     7
   conf.report_optional_feature("SqliteDataOutput", "SQlite stats data output",
30afad8324d5 Add a summary of optional features at the end of the configuration stage.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3570
diff changeset
     8
                                conf.env['SQLITE_STATS'],
30afad8324d5 Add a summary of optional features at the end of the configuration stage.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3570
diff changeset
     9
                                "library 'sqlite3' not found")
30afad8324d5 Add a summary of optional features at the end of the configuration stage.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3570
diff changeset
    10
3570
44b0bc6817c6 Stats module and example merged in.
tjkopena@cs.drexel.edu
parents:
diff changeset
    11
44b0bc6817c6 Stats module and example merged in.
tjkopena@cs.drexel.edu
parents:
diff changeset
    12
def build(bld):
6823
a27f86fb4e55 Merge node and common modules into new network module
Tom Henderson <tomh@tomh.org>
parents: 4064
diff changeset
    13
    obj = bld.create_ns3_module('stats', ['network'])
3570
44b0bc6817c6 Stats module and example merged in.
tjkopena@cs.drexel.edu
parents:
diff changeset
    14
    obj.source = [
6855
104f16f72979 Modularize stats module and move it to src
Mitch Watrous <watrous@u.washington.edu>
parents: 6823
diff changeset
    15
        'model/data-calculator.cc',
104f16f72979 Modularize stats module and move it to src
Mitch Watrous <watrous@u.washington.edu>
parents: 6823
diff changeset
    16
        'model/packet-data-calculators.cc',
104f16f72979 Modularize stats module and move it to src
Mitch Watrous <watrous@u.washington.edu>
parents: 6823
diff changeset
    17
        'model/time-data-calculators.cc',
104f16f72979 Modularize stats module and move it to src
Mitch Watrous <watrous@u.washington.edu>
parents: 6823
diff changeset
    18
        'model/data-output-interface.cc',
104f16f72979 Modularize stats module and move it to src
Mitch Watrous <watrous@u.washington.edu>
parents: 6823
diff changeset
    19
        'model/omnet-data-output.cc',
104f16f72979 Modularize stats module and move it to src
Mitch Watrous <watrous@u.washington.edu>
parents: 6823
diff changeset
    20
        'model/data-collector.cc',
3570
44b0bc6817c6 Stats module and example merged in.
tjkopena@cs.drexel.edu
parents:
diff changeset
    21
        ]
7304
e914bbaea5cb Bug 1123 - Class MinMaxAvgTotalCalculator does not implement all the methods in its interface
Mitch Watrous <watrous@u.washington.edu>
parents: 6932
diff changeset
    22
e914bbaea5cb Bug 1123 - Class MinMaxAvgTotalCalculator does not implement all the methods in its interface
Mitch Watrous <watrous@u.washington.edu>
parents: 6932
diff changeset
    23
    module_test = bld.create_ns3_module_test_library('stats')
e914bbaea5cb Bug 1123 - Class MinMaxAvgTotalCalculator does not implement all the methods in its interface
Mitch Watrous <watrous@u.washington.edu>
parents: 6932
diff changeset
    24
    module_test.source = [
e914bbaea5cb Bug 1123 - Class MinMaxAvgTotalCalculator does not implement all the methods in its interface
Mitch Watrous <watrous@u.washington.edu>
parents: 6932
diff changeset
    25
        'test/basic-data-calculators-test-suite.cc',
e914bbaea5cb Bug 1123 - Class MinMaxAvgTotalCalculator does not implement all the methods in its interface
Mitch Watrous <watrous@u.washington.edu>
parents: 6932
diff changeset
    26
        ]
e914bbaea5cb Bug 1123 - Class MinMaxAvgTotalCalculator does not implement all the methods in its interface
Mitch Watrous <watrous@u.washington.edu>
parents: 6932
diff changeset
    27
7487
82cd20da9650 Upgrade to waf-1.6.7, work in progress
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 7304
diff changeset
    28
    headers = bld.new_task_gen(features=['ns3header'])
3570
44b0bc6817c6 Stats module and example merged in.
tjkopena@cs.drexel.edu
parents:
diff changeset
    29
    headers.module = 'stats'
44b0bc6817c6 Stats module and example merged in.
tjkopena@cs.drexel.edu
parents:
diff changeset
    30
    headers.source = [
6855
104f16f72979 Modularize stats module and move it to src
Mitch Watrous <watrous@u.washington.edu>
parents: 6823
diff changeset
    31
        'model/data-calculator.h',
104f16f72979 Modularize stats module and move it to src
Mitch Watrous <watrous@u.washington.edu>
parents: 6823
diff changeset
    32
        'model/packet-data-calculators.h',
104f16f72979 Modularize stats module and move it to src
Mitch Watrous <watrous@u.washington.edu>
parents: 6823
diff changeset
    33
        'model/time-data-calculators.h',
104f16f72979 Modularize stats module and move it to src
Mitch Watrous <watrous@u.washington.edu>
parents: 6823
diff changeset
    34
        'model/basic-data-calculators.h',
104f16f72979 Modularize stats module and move it to src
Mitch Watrous <watrous@u.washington.edu>
parents: 6823
diff changeset
    35
        'model/data-output-interface.h',
104f16f72979 Modularize stats module and move it to src
Mitch Watrous <watrous@u.washington.edu>
parents: 6823
diff changeset
    36
        'model/omnet-data-output.h',
104f16f72979 Modularize stats module and move it to src
Mitch Watrous <watrous@u.washington.edu>
parents: 6823
diff changeset
    37
        'model/data-collector.h',
3570
44b0bc6817c6 Stats module and example merged in.
tjkopena@cs.drexel.edu
parents:
diff changeset
    38
        ]
44b0bc6817c6 Stats module and example merged in.
tjkopena@cs.drexel.edu
parents:
diff changeset
    39
4064
10222f483860 Upgrade to new WAF, work in progress
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3625
diff changeset
    40
    if bld.env['SQLITE_STATS']:
6855
104f16f72979 Modularize stats module and move it to src
Mitch Watrous <watrous@u.washington.edu>
parents: 6823
diff changeset
    41
        headers.source.append('model/sqlite-data-output.h')
104f16f72979 Modularize stats module and move it to src
Mitch Watrous <watrous@u.washington.edu>
parents: 6823
diff changeset
    42
        obj.source.append('model/sqlite-data-output.cc')
7525
9a36f1d5d229 Fix modules wscript usage of 'use' parameter
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 7487
diff changeset
    43
        obj.use.append('SQLITE3')
6932
3b497f4f6ad9 Add more modular bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 6855
diff changeset
    44
3b497f4f6ad9 Add more modular bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 6855
diff changeset
    45
    bld.ns3_python_bindings()