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 | 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 | 404c079 | 2011-08-09 17:09:59 -0700 | [diff] [blame] | 20 | 'model/name-builder.cc', |
| 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 | 404c079 | 2011-08-09 17:09:59 -0700 | [diff] [blame] | 48 | 'model/name-builder.h', |
Ilya Moiseenko | 02fb706 | 2011-08-11 17:18:00 -0700 | [diff] [blame^] | 49 | 'helper/ndn_stupidinterestgenerator_helper.h', |
Alexander Afanasyev | 404c079 | 2011-08-09 17:09:59 -0700 | [diff] [blame] | 50 | |
| 51 | 'apps/stupid-interest-generator.h', |
Ilya Moiseenko | 02fb706 | 2011-08-11 17:18:00 -0700 | [diff] [blame^] | 52 | 'apps/stupid-interest-sink.h' |
Ilya Moiseenko | 1762af7 | 2011-07-18 16:43:10 -0700 | [diff] [blame] | 53 | ] |
| 54 | |
| 55 | |
Ilya Moiseenko | 54a6bba | 2011-08-01 11:01:26 -0700 | [diff] [blame] | 56 | if bld.env['ENABLE_OPENSSL']: |
Alexander Afanasyev | 404c079 | 2011-08-09 17:09:59 -0700 | [diff] [blame] | 57 | module.uselib = 'OPENSSL' |
Ilya Moiseenko | 54a6bba | 2011-08-01 11:01:26 -0700 | [diff] [blame] | 58 | |
Ilya Moiseenko | 1762af7 | 2011-07-18 16:43:10 -0700 | [diff] [blame] | 59 | if bld.env['ENABLE_EXAMPLES']: |
| 60 | bld.add_subdirs('examples') |
| 61 | |
Ilya Moiseenko | 02fb706 | 2011-08-11 17:18:00 -0700 | [diff] [blame^] | 62 | bld.ns3_python_bindings() |
Alexander Afanasyev | 43e7025 | 2011-08-08 18:48:18 -0700 | [diff] [blame] | 63 | #bld.env['CXXFLAGS']=[filter(lambda x: x not in bld.env, sublist) for sublist in [['-Wall'], ['-Werror'], ['-Wextra']]] |
| 64 | # bld.env['CXXFLAGS']=[] |
| 65 | # bld.env['CFLAGS']=[] |
| 66 | |
| 67 | |