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 | 43e7025 | 2011-08-08 18:48:18 -0700 | [diff] [blame] | 7 | '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 Moiseenko | 54a6bba | 2011-08-01 11:01:26 -0700 | [diff] [blame] | 15 | 'model/ndnabstraction-header.cc', |
Alexander Afanasyev | 43e7025 | 2011-08-08 18:48:18 -0700 | [diff] [blame] | 16 | |
Ilya Moiseenko | 08a98a4 | 2011-08-02 16:06:51 -0700 | [diff] [blame] | 17 | 'model/ndn_face.cc', |
| 18 | 'model/ndn_interestpacket.cc', |
| 19 | 'model/ndn_contentpacket.cc', |
Ilya Moiseenko | 1f60383 | 2011-08-04 19:06:49 -0700 | [diff] [blame] | 20 | 'model/ndn_timeoutheader.cc', |
| 21 | 'model/ndn_nonceheader.cc', |
| 22 | 'model/ndn_namebuilder.cc', |
Ilya Moiseenko | 42b4924 | 2011-08-05 20:23:30 -0700 | [diff] [blame] | 23 | 'model/ndn_stupidinterestgenerator.cc', |
Ilya Moiseenko | 54a6bba | 2011-08-01 11:01:26 -0700 | [diff] [blame] | 24 | 'helper/ndnabstraction-helper.cc', |
Ilya Moiseenko | 42b4924 | 2011-08-05 20:23:30 -0700 | [diff] [blame] | 25 | 'helper/ndn_stupidinterestgenerator_helper.cc', |
Ilya Moiseenko | 1762af7 | 2011-07-18 16:43:10 -0700 | [diff] [blame] | 26 | ] |
| 27 | |
| 28 | module_test = bld.create_ns3_module_test_library('NDNabstraction') |
| 29 | module_test.source = [ |
Ilya Moiseenko | 54a6bba | 2011-08-01 11:01:26 -0700 | [diff] [blame] | 30 | 'test/ndnabstraction-basictest.cc', |
Ilya Moiseenko | 1762af7 | 2011-07-18 16:43:10 -0700 | [diff] [blame] | 31 | ] |
| 32 | |
| 33 | headers = bld.new_task_gen('ns3header') |
| 34 | headers.module = 'NDNabstraction' |
| 35 | headers.source = [ |
Alexander Afanasyev | 43e7025 | 2011-08-08 18:48:18 -0700 | [diff] [blame] | 36 | '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 Moiseenko | 1762af7 | 2011-07-18 16:43:10 -0700 | [diff] [blame] | 43 | 'model/ndnabstraction-header.h', |
Alexander Afanasyev | 43e7025 | 2011-08-08 18:48:18 -0700 | [diff] [blame] | 44 | |
Ilya Moiseenko | 08a98a4 | 2011-08-02 16:06:51 -0700 | [diff] [blame] | 45 | 'model/ndn_face.h', |
| 46 | 'model/ndn_interestpacket.h', |
| 47 | 'model/ndn_contentpacket.h', |
Ilya Moiseenko | 1f60383 | 2011-08-04 19:06:49 -0700 | [diff] [blame] | 48 | 'model/ndn_timeoutheader.h', |
| 49 | 'model/ndn_nonceheader.h', |
| 50 | 'model/ndn_namebuilder.h', |
Ilya Moiseenko | 42b4924 | 2011-08-05 20:23:30 -0700 | [diff] [blame] | 51 | 'model/ndn_stupidinterestgenerator.h', |
Ilya Moiseenko | 1762af7 | 2011-07-18 16:43:10 -0700 | [diff] [blame] | 52 | 'helper/ndnabstraction-helper.h', |
Ilya Moiseenko | 42b4924 | 2011-08-05 20:23:30 -0700 | [diff] [blame] | 53 | 'helper/ndn_stupidinterestgenerator_helper.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']: |
| 58 | module.uselib = 'OPENSSL' |
| 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 | |
| 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 | |