blob: 6b033ee58fa2d5a12f1bf8cf0046fedaabbd29b7 [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',
Ilya Moiseenko6b583af2011-08-12 19:01:43 -070021 'model/ndn_contentstore.cc',
Alexander Afanasyev404c0792011-08-09 17:09:59 -070022
23 'apps/stupid-interest-generator.cc',
Ilya Moiseenko02fb7062011-08-11 17:18:00 -070024 'apps/stupid-interest-sink.cc',
Ilya Moiseenko1762af72011-07-18 16:43:10 -070025 ]
26
27 module_test = bld.create_ns3_module_test_library('NDNabstraction')
28 module_test.source = [
Ilya Moiseenko54a6bba2011-08-01 11:01:26 -070029 'test/ndnabstraction-basictest.cc',
Ilya Moiseenko1762af72011-07-18 16:43:10 -070030 ]
31
32 headers = bld.new_task_gen('ns3header')
33 headers.module = 'NDNabstraction'
34 headers.source = [
Alexander Afanasyev43e70252011-08-08 18:48:18 -070035 'model/ccn/ccn.h',
36 'model/ccn/ccn_charbuf.h',
37 'model/ccn/ccn_coding.h',
38 'model/ccn/ccn_name_util.h',
39 'model/ccn/ccn_indexbuf.h',
40 'model/ccn/ccn_random.h',
41
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 Afanasyev3a6ea5c2011-08-11 18:15:49 -070047 'model/name-components.h',
Ilya Moiseenko6b583af2011-08-12 19:01:43 -070048 #'model/ndn_hashhelper.h',
49 'model/ndn_contentstore.h',
50 'model/uthash.h',
Alexander Afanasyev3a6ea5c2011-08-11 18:15:49 -070051 # 'helper/ndnabstraction-helper.h',
Ilya Moiseenko02fb7062011-08-11 17:18:00 -070052 'helper/ndn_stupidinterestgenerator_helper.h',
Alexander Afanasyev404c0792011-08-09 17:09:59 -070053
54 'apps/stupid-interest-generator.h',
Ilya Moiseenko02fb7062011-08-11 17:18:00 -070055 'apps/stupid-interest-sink.h'
Ilya Moiseenko1762af72011-07-18 16:43:10 -070056 ]
57
58
Ilya Moiseenko54a6bba2011-08-01 11:01:26 -070059 if bld.env['ENABLE_OPENSSL']:
Alexander Afanasyev404c0792011-08-09 17:09:59 -070060 module.uselib = 'OPENSSL'
Ilya Moiseenko54a6bba2011-08-01 11:01:26 -070061
Ilya Moiseenko1762af72011-07-18 16:43:10 -070062 if bld.env['ENABLE_EXAMPLES']:
63 bld.add_subdirs('examples')
64
Ilya Moiseenko02fb7062011-08-11 17:18:00 -070065 bld.ns3_python_bindings()
Alexander Afanasyev43e70252011-08-08 18:48:18 -070066 #bld.env['CXXFLAGS']=[filter(lambda x: x not in bld.env, sublist) for sublist in [['-Wall'], ['-Werror'], ['-Wextra']]]
67 # bld.env['CXXFLAGS']=[]
68 # bld.env['CFLAGS']=[]
69
70