Ilya Moiseenko | 1762af7 | 2011-07-18 16:43:10 -0700 | [diff] [blame] | 1 | ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| 2 | |
| 3 | def build(bld): |
Alexander Afanasyev | 43e7025 | 2011-08-08 18:48:18 -0700 | [diff] [blame] | 4 | module = bld.create_ns3_module('NDNabstraction', ['applications', 'core', 'network', 'internet', 'point-to-point']) |
Ilya Moiseenko | 1762af7 | 2011-07-18 16:43:10 -0700 | [diff] [blame] | 5 | module.includes = '.' |
| 6 | module.source = [ |
Alexander Afanasyev | 8c7784a | 2011-08-11 19:05:08 -0700 | [diff] [blame^] | 7 | '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 Afanasyev | 43e7025 | 2011-08-08 18:48:18 -0700 | [diff] [blame] | 14 | |
Ilya Moiseenko | 08a98a4 | 2011-08-02 16:06:51 -0700 | [diff] [blame] | 15 | 'model/ndn_face.cc', |
Alexander Afanasyev | 404c079 | 2011-08-09 17:09:59 -0700 | [diff] [blame] | 16 | 'model/interest-packet.cc', |
Ilya Moiseenko | 08a98a4 | 2011-08-02 16:06:51 -0700 | [diff] [blame] | 17 | 'model/ndn_contentpacket.cc', |
Ilya Moiseenko | 1f60383 | 2011-08-04 19:06:49 -0700 | [diff] [blame] | 18 | 'model/ndn_timeoutheader.cc', |
| 19 | 'model/ndn_nonceheader.cc', |
Alexander Afanasyev | 3a6ea5c | 2011-08-11 18:15:49 -0700 | [diff] [blame] | 20 | 'model/name-components.cc', |
Alexander Afanasyev | 404c079 | 2011-08-09 17:09:59 -0700 | [diff] [blame] | 21 | |
| 22 | 'apps/stupid-interest-generator.cc', |
Ilya Moiseenko | 02fb706 | 2011-08-11 17:18:00 -0700 | [diff] [blame] | 23 | 'apps/stupid-interest-sink.cc', |
Ilya Moiseenko | 1762af7 | 2011-07-18 16:43:10 -0700 | [diff] [blame] | 24 | ] |
| 25 | |
| 26 | module_test = bld.create_ns3_module_test_library('NDNabstraction') |
| 27 | module_test.source = [ |
Ilya Moiseenko | 54a6bba | 2011-08-01 11:01:26 -0700 | [diff] [blame] | 28 | 'test/ndnabstraction-basictest.cc', |
Ilya Moiseenko | 1762af7 | 2011-07-18 16:43:10 -0700 | [diff] [blame] | 29 | ] |
| 30 | |
| 31 | headers = bld.new_task_gen('ns3header') |
| 32 | headers.module = 'NDNabstraction' |
| 33 | headers.source = [ |
Alexander Afanasyev | 43e7025 | 2011-08-08 18:48:18 -0700 | [diff] [blame] | 34 | '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 Afanasyev | 404c079 | 2011-08-09 17:09:59 -0700 | [diff] [blame] | 41 | # 'model/ndnabstraction-header.h', |
Alexander Afanasyev | 43e7025 | 2011-08-08 18:48:18 -0700 | [diff] [blame] | 42 | |
Ilya Moiseenko | 08a98a4 | 2011-08-02 16:06:51 -0700 | [diff] [blame] | 43 | 'model/ndn_face.h', |
Alexander Afanasyev | 404c079 | 2011-08-09 17:09:59 -0700 | [diff] [blame] | 44 | 'model/interest-packet.h', |
Ilya Moiseenko | 08a98a4 | 2011-08-02 16:06:51 -0700 | [diff] [blame] | 45 | 'model/ndn_contentpacket.h', |
Ilya Moiseenko | 1f60383 | 2011-08-04 19:06:49 -0700 | [diff] [blame] | 46 | 'model/ndn_timeoutheader.h', |
| 47 | 'model/ndn_nonceheader.h', |
Alexander Afanasyev | 3a6ea5c | 2011-08-11 18:15:49 -0700 | [diff] [blame] | 48 | 'model/name-components.h', |
| 49 | # 'helper/ndnabstraction-helper.h', |
Ilya Moiseenko | 02fb706 | 2011-08-11 17:18:00 -0700 | [diff] [blame] | 50 | 'helper/ndn_stupidinterestgenerator_helper.h', |
Alexander Afanasyev | 404c079 | 2011-08-09 17:09:59 -0700 | [diff] [blame] | 51 | |
| 52 | 'apps/stupid-interest-generator.h', |
Ilya Moiseenko | 02fb706 | 2011-08-11 17:18:00 -0700 | [diff] [blame] | 53 | 'apps/stupid-interest-sink.h' |
Ilya Moiseenko | 1762af7 | 2011-07-18 16:43:10 -0700 | [diff] [blame] | 54 | ] |
| 55 | |
| 56 | |
Ilya Moiseenko | 54a6bba | 2011-08-01 11:01:26 -0700 | [diff] [blame] | 57 | if bld.env['ENABLE_OPENSSL']: |
Alexander Afanasyev | 404c079 | 2011-08-09 17:09:59 -0700 | [diff] [blame] | 58 | module.uselib = 'OPENSSL' |
Ilya Moiseenko | 54a6bba | 2011-08-01 11:01:26 -0700 | [diff] [blame] | 59 | |
Ilya Moiseenko | 1762af7 | 2011-07-18 16:43:10 -0700 | [diff] [blame] | 60 | if bld.env['ENABLE_EXAMPLES']: |
| 61 | bld.add_subdirs('examples') |
| 62 | |
Ilya Moiseenko | 02fb706 | 2011-08-11 17:18:00 -0700 | [diff] [blame] | 63 | bld.ns3_python_bindings() |
Alexander Afanasyev | 43e7025 | 2011-08-08 18:48:18 -0700 | [diff] [blame] | 64 | #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 | |