blob: 4f53779d2f1aa9f6d354ff7febc583be38514db5 [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',
Ilya Moiseenko08a98a42011-08-02 16:06:51 -070015 'model/ndn_face.cc',
16 'model/ndn_interestpacket.cc',
17 'model/ndn_contentpacket.cc',
Ilya Moiseenko1f603832011-08-04 19:06:49 -070018 'model/ndn_timeoutheader.cc',
19 'model/ndn_nonceheader.cc',
20 'model/ndn_namebuilder.cc',
Ilya Moiseenko42b49242011-08-05 20:23:30 -070021 'model/ndn_stupidinterestgenerator.cc',
Ilya Moiseenko54a6bba2011-08-01 11:01:26 -070022 'helper/ndnabstraction-helper.cc',
Ilya Moiseenko42b49242011-08-05 20:23:30 -070023 'helper/ndn_stupidinterestgenerator_helper.cc',
Ilya Moiseenko1762af72011-07-18 16:43:10 -070024 ]
25
26 module_test = bld.create_ns3_module_test_library('NDNabstraction')
27 module_test.source = [
Ilya Moiseenko54a6bba2011-08-01 11:01:26 -070028 'test/ndnabstraction-basictest.cc',
Ilya Moiseenko1762af72011-07-18 16:43:10 -070029 ]
30
31 headers = bld.new_task_gen('ns3header')
32 headers.module = 'NDNabstraction'
33 headers.source = [
34 'model/ndnabstraction-header.h',
Ilya Moiseenko54a6bba2011-08-01 11:01:26 -070035 'model/ccn_charbuf.h',
36 'model/ccn_name_util.h',
37 'model/ccn_coding.h',
38 'model/ccn_indexbuf.h',
39 'model/ccn_random.h',
40 'model/ccn_ccn.h',
Ilya Moiseenko08a98a42011-08-02 16:06:51 -070041 'model/ndn_face.h',
42 'model/ndn_interestpacket.h',
43 'model/ndn_contentpacket.h',
Ilya Moiseenko1f603832011-08-04 19:06:49 -070044 'model/ndn_timeoutheader.h',
45 'model/ndn_nonceheader.h',
46 'model/ndn_namebuilder.h',
Ilya Moiseenko42b49242011-08-05 20:23:30 -070047 'model/ndn_stupidinterestgenerator.h',
Ilya Moiseenko1762af72011-07-18 16:43:10 -070048 'helper/ndnabstraction-helper.h',
Ilya Moiseenko42b49242011-08-05 20:23:30 -070049 'helper/ndn_stupidinterestgenerator_helper.h',
Ilya Moiseenko1762af72011-07-18 16:43:10 -070050 ]
51
52
Ilya Moiseenko54a6bba2011-08-01 11:01:26 -070053 if bld.env['ENABLE_OPENSSL']:
54 module.uselib = 'OPENSSL'
55
Ilya Moiseenko1762af72011-07-18 16:43:10 -070056 if bld.env['ENABLE_EXAMPLES']:
57 bld.add_subdirs('examples')
58
59 #bld.ns3_python_bindings()