Files
unison/src/stats/wscript

88 lines
3.1 KiB
Plaintext
Raw Normal View History

2008-08-29 13:22:09 -04:00
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
def configure(conf):
have_sqlite3 = conf.check_cfg(package='sqlite3', uselib_store='SQLITE3',
args=['--cflags', '--libs'],
mandatory=False)
conf.env['SQLITE_STATS'] = have_sqlite3
conf.report_optional_feature("SqliteDataOutput", "SQlite stats data output",
conf.env['SQLITE_STATS'],
"library 'sqlite3' not found")
have_sem = conf.check_nonfatal(header_name='semaphore.h', define_name='HAVE_SEMAPHORE_H')
conf.env['SEMAPHORE_ENABLED'] = have_sem
conf.write_config_header('ns3/stats-config.h', top=True)
2008-08-29 13:22:09 -04:00
def build(bld):
obj = bld.create_ns3_module('stats', ['core'])
2008-08-29 13:22:09 -04:00
obj.source = [
'helper/file-helper.cc',
'helper/gnuplot-helper.cc',
'model/data-calculator.cc',
'model/time-data-calculators.cc',
'model/data-output-interface.cc',
'model/omnet-data-output.cc',
'model/data-collector.cc',
'model/gnuplot.cc',
'model/data-collection-object.cc',
'model/probe.cc',
'model/boolean-probe.cc',
'model/double-probe.cc',
'model/time-probe.cc',
'model/uinteger-8-probe.cc',
'model/uinteger-16-probe.cc',
'model/uinteger-32-probe.cc',
'model/time-series-adaptor.cc',
'model/file-aggregator.cc',
'model/gnuplot-aggregator.cc',
'model/get-wildcard-matches.cc',
2008-08-29 13:22:09 -04:00
]
module_test = bld.create_ns3_module_test_library('stats')
module_test.source = [
'test/basic-data-calculators-test-suite.cc',
'test/average-test-suite.cc',
'test/double-probe-test-suite.cc',
]
headers = bld(features='ns3header')
2008-08-29 13:22:09 -04:00
headers.module = 'stats'
headers.source = [
'helper/file-helper.h',
'helper/gnuplot-helper.h',
'model/data-calculator.h',
'model/time-data-calculators.h',
'model/basic-data-calculators.h',
'model/data-output-interface.h',
'model/omnet-data-output.h',
'model/data-collector.h',
'model/gnuplot.h',
'model/average.h',
'model/data-collection-object.h',
'model/probe.h',
'model/boolean-probe.h',
'model/double-probe.h',
'model/time-probe.h',
'model/uinteger-8-probe.h',
'model/uinteger-16-probe.h',
'model/uinteger-32-probe.h',
'model/time-series-adaptor.h',
'model/file-aggregator.h',
'model/gnuplot-aggregator.h',
'model/get-wildcard-matches.h',
2008-08-29 13:22:09 -04:00
]
2008-12-29 13:28:54 +00:00
if bld.env['SQLITE_STATS']:
headers.source.append('model/sqlite-data-output.h')
obj.source.append('model/sqlite-data-output.cc')
obj.use.append('SQLITE3')
2011-03-22 15:41:38 +00:00
if bld.env['SQLITE_STATS'] and bld.env['SEMAPHORE_ENABLED']:
obj.source.append('model/sqlite-output.cc')
headers.source.append('model/sqlite-output.h')
if (bld.env['ENABLE_EXAMPLES']):
bld.recurse('examples')
2011-03-22 15:41:38 +00:00
bld.ns3_python_bindings()