blob: 10229536eddfe8ecee85e30b476e5c6aeeeaa356 [file] [log] [blame]
Ilya Moiseenko1762af72011-07-18 16:43:10 -07001## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2
3def build(bld):
4 module = bld.create_ns3_module('NDNabstraction', ['internet', 'config-store', 'tools', 'point-to-point', 'wifi', 'mobility', 'applications', 'csma'])
5 module.includes = '.'
6 module.source = [
Ilya Moiseenko54a6bba2011-08-01 11:01:26 -07007 'model/ndnabstraction-header.cc',
8 'model/ccn_charbuf.cc',
9 'model/ccn_name_util.cc',
10 'model/ccn_coding.cc',
11 'model/ccn_indexbuf.cc',
12 'model/ccn_random.cc',
13 'model/ccn_buf_decoder.cc',
14 'model/ccn_buf_encoder.cc',
15 'helper/ndnabstraction-helper.cc',
Ilya Moiseenko1762af72011-07-18 16:43:10 -070016 ]
17
18 module_test = bld.create_ns3_module_test_library('NDNabstraction')
19 module_test.source = [
Ilya Moiseenko54a6bba2011-08-01 11:01:26 -070020 'test/ndnabstraction-basictest.cc',
Ilya Moiseenko1762af72011-07-18 16:43:10 -070021 ]
22
23 headers = bld.new_task_gen('ns3header')
24 headers.module = 'NDNabstraction'
25 headers.source = [
26 'model/ndnabstraction-header.h',
Ilya Moiseenko54a6bba2011-08-01 11:01:26 -070027 'model/ccn_charbuf.h',
28 'model/ccn_name_util.h',
29 'model/ccn_coding.h',
30 'model/ccn_indexbuf.h',
31 'model/ccn_random.h',
32 'model/ccn_ccn.h',
Ilya Moiseenko1762af72011-07-18 16:43:10 -070033 'helper/ndnabstraction-helper.h',
34 ]
35
36
Ilya Moiseenko54a6bba2011-08-01 11:01:26 -070037 if bld.env['ENABLE_OPENSSL']:
38 module.uselib = 'OPENSSL'
39
Ilya Moiseenko1762af72011-07-18 16:43:10 -070040 if bld.env['ENABLE_EXAMPLES']:
41 bld.add_subdirs('examples')
42
43 #bld.ns3_python_bindings()