blob: f7be7cb3b1c8182fe70d6dfadd2d949095f0a992 [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):
Alexander Afanasyev43e70252011-08-08 18:48:18 -07004 module = bld.create_ns3_module('NDNabstraction', ['applications', 'core', 'network', 'internet', 'point-to-point'])
Ilya Moiseenko1762af72011-07-18 16:43:10 -07005 module.includes = '.'
6 module.source = [
Alexander Afanasyev43e70252011-08-08 18:48:18 -07007 'model/ccn/ccn_charbuf.c',
8 'model/ccn/ccn_name_util.c',
9 'model/ccn/ccn_coding.c',
10 'model/ccn/ccn_indexbuf.c',
11 'model/ccn/ccn_random.c',
12 'model/ccn/ccn_buf_decoder.c',
13 'model/ccn/ccn_buf_encoder.c',
14
Ilya Moiseenko54a6bba2011-08-01 11:01:26 -070015 'model/ndnabstraction-header.cc',
Alexander Afanasyev43e70252011-08-08 18:48:18 -070016
Ilya Moiseenko08a98a42011-08-02 16:06:51 -070017 'model/ndn_face.cc',
18 'model/ndn_interestpacket.cc',
19 'model/ndn_contentpacket.cc',
Ilya Moiseenko1f603832011-08-04 19:06:49 -070020 'model/ndn_timeoutheader.cc',
21 'model/ndn_nonceheader.cc',
22 'model/ndn_namebuilder.cc',
Ilya Moiseenko42b49242011-08-05 20:23:30 -070023 'model/ndn_stupidinterestgenerator.cc',
Ilya Moiseenko54a6bba2011-08-01 11:01:26 -070024 'helper/ndnabstraction-helper.cc',
Ilya Moiseenko42b49242011-08-05 20:23:30 -070025 'helper/ndn_stupidinterestgenerator_helper.cc',
Ilya Moiseenko1762af72011-07-18 16:43:10 -070026 ]
27
28 module_test = bld.create_ns3_module_test_library('NDNabstraction')
29 module_test.source = [
Ilya Moiseenko54a6bba2011-08-01 11:01:26 -070030 'test/ndnabstraction-basictest.cc',
Ilya Moiseenko1762af72011-07-18 16:43:10 -070031 ]
32
33 headers = bld.new_task_gen('ns3header')
34 headers.module = 'NDNabstraction'
35 headers.source = [
Alexander Afanasyev43e70252011-08-08 18:48:18 -070036 'model/ccn/ccn.h',
37 'model/ccn/ccn_charbuf.h',
38 'model/ccn/ccn_coding.h',
39 'model/ccn/ccn_name_util.h',
40 'model/ccn/ccn_indexbuf.h',
41 'model/ccn/ccn_random.h',
42
Ilya Moiseenko1762af72011-07-18 16:43:10 -070043 'model/ndnabstraction-header.h',
Alexander Afanasyev43e70252011-08-08 18:48:18 -070044
Ilya Moiseenko08a98a42011-08-02 16:06:51 -070045 'model/ndn_face.h',
46 'model/ndn_interestpacket.h',
47 'model/ndn_contentpacket.h',
Ilya Moiseenko1f603832011-08-04 19:06:49 -070048 'model/ndn_timeoutheader.h',
49 'model/ndn_nonceheader.h',
50 'model/ndn_namebuilder.h',
Ilya Moiseenko42b49242011-08-05 20:23:30 -070051 'model/ndn_stupidinterestgenerator.h',
Ilya Moiseenko1762af72011-07-18 16:43:10 -070052 'helper/ndnabstraction-helper.h',
Ilya Moiseenko42b49242011-08-05 20:23:30 -070053 'helper/ndn_stupidinterestgenerator_helper.h',
Ilya Moiseenko1762af72011-07-18 16:43:10 -070054 ]
55
56
Ilya Moiseenko54a6bba2011-08-01 11:01:26 -070057 if bld.env['ENABLE_OPENSSL']:
58 module.uselib = 'OPENSSL'
59
Ilya Moiseenko1762af72011-07-18 16:43:10 -070060 if bld.env['ENABLE_EXAMPLES']:
61 bld.add_subdirs('examples')
62
63 #bld.ns3_python_bindings()
Alexander Afanasyev43e70252011-08-08 18:48:18 -070064 #bld.env['CXXFLAGS']=[filter(lambda x: x not in bld.env, sublist) for sublist in [['-Wall'], ['-Werror'], ['-Wextra']]]
65 # bld.env['CXXFLAGS']=[]
66 # bld.env['CFLAGS']=[]
67
68