blob: 796c6ddbb17f5c88b05292096c8ccfb32a171e5e [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 Afanasyev8c7784a2011-08-11 19:05:08 -07007 'model/ccn/ccn_charbuf.cc',
8 'model/ccn/ccn_name_util.cc',
9 'model/ccn/ccn_coding.cc',
10 'model/ccn/ccn_indexbuf.cc',
11 'model/ccn/ccn_random.cc',
12 'model/ccn/ccn_buf_decoder.cc',
13 'model/ccn/ccn_buf_encoder.cc',
Alexander Afanasyev43e70252011-08-08 18:48:18 -070014
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 Afanasyev3a6ea5c2011-08-11 18:15:49 -070020 'model/name-components.cc',
Alexander Afanasyev404c0792011-08-09 17:09:59 -070021
22 'apps/stupid-interest-generator.cc',
Ilya Moiseenko02fb7062011-08-11 17:18:00 -070023 'apps/stupid-interest-sink.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 = [
Alexander Afanasyev43e70252011-08-08 18:48:18 -070034 'model/ccn/ccn.h',
35 'model/ccn/ccn_charbuf.h',
36 'model/ccn/ccn_coding.h',
37 'model/ccn/ccn_name_util.h',
38 'model/ccn/ccn_indexbuf.h',
39 'model/ccn/ccn_random.h',
40
Alexander Afanasyev404c0792011-08-09 17:09:59 -070041 # 'model/ndnabstraction-header.h',
Alexander Afanasyev43e70252011-08-08 18:48:18 -070042
Ilya Moiseenko08a98a42011-08-02 16:06:51 -070043 'model/ndn_face.h',
Alexander Afanasyev404c0792011-08-09 17:09:59 -070044 'model/interest-packet.h',
Ilya Moiseenko08a98a42011-08-02 16:06:51 -070045 'model/ndn_contentpacket.h',
Ilya Moiseenko1f603832011-08-04 19:06:49 -070046 'model/ndn_timeoutheader.h',
47 'model/ndn_nonceheader.h',
Alexander Afanasyev3a6ea5c2011-08-11 18:15:49 -070048 'model/name-components.h',
49 # 'helper/ndnabstraction-helper.h',
Ilya Moiseenko02fb7062011-08-11 17:18:00 -070050 'helper/ndn_stupidinterestgenerator_helper.h',
Alexander Afanasyev404c0792011-08-09 17:09:59 -070051
52 'apps/stupid-interest-generator.h',
Ilya Moiseenko02fb7062011-08-11 17:18:00 -070053 'apps/stupid-interest-sink.h'
Ilya Moiseenko1762af72011-07-18 16:43:10 -070054 ]
55
56
Ilya Moiseenko54a6bba2011-08-01 11:01:26 -070057 if bld.env['ENABLE_OPENSSL']:
Alexander Afanasyev404c0792011-08-09 17:09:59 -070058 module.uselib = 'OPENSSL'
Ilya Moiseenko54a6bba2011-08-01 11:01:26 -070059
Ilya Moiseenko1762af72011-07-18 16:43:10 -070060 if bld.env['ENABLE_EXAMPLES']:
61 bld.add_subdirs('examples')
62
Ilya Moiseenko02fb7062011-08-11 17:18:00 -070063 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