blob: 2d3630c6a66d3c3918307528a540670b600b3c9c [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 Moiseenko08a98a42011-08-02 16:06:51 -070015 'model/ndn_face.cc',
Alexander Afanasyev404c0792011-08-09 17:09:59 -070016 'model/interest-packet.cc',
Ilya Moiseenko08a98a42011-08-02 16:06:51 -070017 'model/ndn_contentpacket.cc',
Ilya Moiseenko1f603832011-08-04 19:06:49 -070018 'model/ndn_timeoutheader.cc',
19 'model/ndn_nonceheader.cc',
Alexander Afanasyev404c0792011-08-09 17:09:59 -070020 'model/name-builder.cc',
21
22 'apps/stupid-interest-generator.cc',
Ilya Moiseenko1762af72011-07-18 16:43:10 -070023 ]
24
25 module_test = bld.create_ns3_module_test_library('NDNabstraction')
26 module_test.source = [
Ilya Moiseenko54a6bba2011-08-01 11:01:26 -070027 'test/ndnabstraction-basictest.cc',
Ilya Moiseenko1762af72011-07-18 16:43:10 -070028 ]
29
30 headers = bld.new_task_gen('ns3header')
31 headers.module = 'NDNabstraction'
32 headers.source = [
Alexander Afanasyev43e70252011-08-08 18:48:18 -070033 'model/ccn/ccn.h',
34 'model/ccn/ccn_charbuf.h',
35 'model/ccn/ccn_coding.h',
36 'model/ccn/ccn_name_util.h',
37 'model/ccn/ccn_indexbuf.h',
38 'model/ccn/ccn_random.h',
39
Alexander Afanasyev404c0792011-08-09 17:09:59 -070040 # 'model/ndnabstraction-header.h',
Alexander Afanasyev43e70252011-08-08 18:48:18 -070041
Ilya Moiseenko08a98a42011-08-02 16:06:51 -070042 'model/ndn_face.h',
Alexander Afanasyev404c0792011-08-09 17:09:59 -070043 'model/interest-packet.h',
Ilya Moiseenko08a98a42011-08-02 16:06:51 -070044 'model/ndn_contentpacket.h',
Ilya Moiseenko1f603832011-08-04 19:06:49 -070045 'model/ndn_timeoutheader.h',
46 'model/ndn_nonceheader.h',
Alexander Afanasyev404c0792011-08-09 17:09:59 -070047 'model/name-builder.h',
48 # 'helper/ndnabstraction-helper.h',
49 # 'helper/ndn_stupidinterestgenerator_helper.h',
50
51 'apps/stupid-interest-generator.h',
Ilya Moiseenko1762af72011-07-18 16:43:10 -070052 ]
53
54
Ilya Moiseenko54a6bba2011-08-01 11:01:26 -070055 if bld.env['ENABLE_OPENSSL']:
Alexander Afanasyev404c0792011-08-09 17:09:59 -070056 module.uselib = 'OPENSSL'
Ilya Moiseenko54a6bba2011-08-01 11:01:26 -070057
Ilya Moiseenko1762af72011-07-18 16:43:10 -070058 if bld.env['ENABLE_EXAMPLES']:
59 bld.add_subdirs('examples')
60
61 #bld.ns3_python_bindings()
Alexander Afanasyev43e70252011-08-08 18:48:18 -070062 #bld.env['CXXFLAGS']=[filter(lambda x: x not in bld.env, sublist) for sublist in [['-Wall'], ['-Werror'], ['-Wextra']]]
63 # bld.env['CXXFLAGS']=[]
64 # bld.env['CFLAGS']=[]
65
66