equal
deleted
inserted
replaced
1 ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
1 ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
2 |
2 |
3 def configure(conf): |
3 def configure(conf): |
4 e = conf.create_library_configurator() |
4 conf.env['SQLITE_STATS'] = conf.check(lib='sqlite3', define_name='SQLITE3', uselib='SQLITE3') |
5 e.mandatory = False |
|
6 e.name = 'sqlite3' |
|
7 e.define = 'SQLITE3' |
|
8 e.uselib = 'SQLITE3' |
|
9 conf.env['SQLITE_STATS'] = e.run() |
|
10 conf.report_optional_feature("SqliteDataOutput", "SQlite stats data output", |
5 conf.report_optional_feature("SqliteDataOutput", "SQlite stats data output", |
11 conf.env['SQLITE_STATS'], |
6 conf.env['SQLITE_STATS'], |
12 "library 'sqlite3' not found") |
7 "library 'sqlite3' not found") |
13 |
8 |
14 |
9 |
20 'time-data-calculators.cc', |
15 'time-data-calculators.cc', |
21 'data-output-interface.cc', |
16 'data-output-interface.cc', |
22 'omnet-data-output.cc', |
17 'omnet-data-output.cc', |
23 'data-collector.cc', |
18 'data-collector.cc', |
24 ] |
19 ] |
25 headers = bld.create_obj('ns3header') |
20 headers = bld.new_task_gen('ns3header') |
26 headers.module = 'stats' |
21 headers.module = 'stats' |
27 headers.source = [ |
22 headers.source = [ |
28 'data-calculator.h', |
23 'data-calculator.h', |
29 'packet-data-calculators.h', |
24 'packet-data-calculators.h', |
30 'time-data-calculators.h', |
25 'time-data-calculators.h', |
32 'data-output-interface.h', |
27 'data-output-interface.h', |
33 'omnet-data-output.h', |
28 'omnet-data-output.h', |
34 'data-collector.h', |
29 'data-collector.h', |
35 ] |
30 ] |
36 |
31 |
37 if bld.env()['SQLITE_STATS']: |
32 if bld.env['SQLITE_STATS']: |
38 headers.source.append('sqlite-data-output.h') |
33 headers.source.append('sqlite-data-output.h') |
39 obj.source.append('sqlite-data-output.cc') |
34 obj.source.append('sqlite-data-output.cc') |
40 obj.uselib = 'SQLITE3' |
35 obj.uselib = 'SQLITE3' |