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', |
Alexander Afanasyev | 8a677dd | 2011-08-12 13:08:15 -0700 | [diff] [blame^] | 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 | |
Alexander Afanasyev | 3a6ea5c | 2011-08-11 18:15:49 -0700 | [diff] [blame] | 15 | 'model/name-components.cc', |
Alexander Afanasyev | 8a677dd | 2011-08-12 13:08:15 -0700 | [diff] [blame^] | 16 | 'model/interest-header.cc', |
| 17 | 'model/content-object-header.cc', |
Alexander Afanasyev | 404c079 | 2011-08-09 17:09:59 -0700 | [diff] [blame] | 18 | |
Alexander Afanasyev | 8a677dd | 2011-08-12 13:08:15 -0700 | [diff] [blame^] | 19 | 'model/stupid-interest-generator.cc', |
| 20 | 'model/stupid-interest-sink.cc', |
Ilya Moiseenko | 1762af7 | 2011-07-18 16:43:10 -0700 | [diff] [blame] | 21 | ] |
| 22 | |
| 23 | module_test = bld.create_ns3_module_test_library('NDNabstraction') |
| 24 | module_test.source = [ |
Ilya Moiseenko | 54a6bba | 2011-08-01 11:01:26 -0700 | [diff] [blame] | 25 | 'test/ndnabstraction-basictest.cc', |
Ilya Moiseenko | 1762af7 | 2011-07-18 16:43:10 -0700 | [diff] [blame] | 26 | ] |
| 27 | |
| 28 | headers = bld.new_task_gen('ns3header') |
| 29 | headers.module = 'NDNabstraction' |
| 30 | headers.source = [ |
Alexander Afanasyev | 43e7025 | 2011-08-08 18:48:18 -0700 | [diff] [blame] | 31 | 'model/ccn/ccn.h', |
Alexander Afanasyev | 8a677dd | 2011-08-12 13:08:15 -0700 | [diff] [blame^] | 32 | 'model/ccn/ccn_charbuf.h', |
| 33 | 'model/ccn/ccn_coding.h', |
| 34 | 'model/ccn/ccn_name_util.h', |
| 35 | 'model/ccn/ccn_indexbuf.h', |
| 36 | 'model/ccn/ccn_random.h', |
Alexander Afanasyev | 43e7025 | 2011-08-08 18:48:18 -0700 | [diff] [blame] | 37 | |
Alexander Afanasyev | 8a677dd | 2011-08-12 13:08:15 -0700 | [diff] [blame^] | 38 | # 'model/ndnabstraction-header.h', |
| 39 | |
Alexander Afanasyev | 3a6ea5c | 2011-08-11 18:15:49 -0700 | [diff] [blame] | 40 | 'model/name-components.h', |
Alexander Afanasyev | 8a677dd | 2011-08-12 13:08:15 -0700 | [diff] [blame^] | 41 | 'model/interest-header.h', |
| 42 | 'model/content-object-header.h', |
| 43 | |
Alexander Afanasyev | 3a6ea5c | 2011-08-11 18:15:49 -0700 | [diff] [blame] | 44 | # 'helper/ndnabstraction-helper.h', |
Ilya Moiseenko | 02fb706 | 2011-08-11 17:18:00 -0700 | [diff] [blame] | 45 | 'helper/ndn_stupidinterestgenerator_helper.h', |
Alexander Afanasyev | 404c079 | 2011-08-09 17:09:59 -0700 | [diff] [blame] | 46 | |
Alexander Afanasyev | 8a677dd | 2011-08-12 13:08:15 -0700 | [diff] [blame^] | 47 | 'model/stupid-interest-generator.h', |
| 48 | 'model/stupid-interest-sink.h' |
Ilya Moiseenko | 1762af7 | 2011-07-18 16:43:10 -0700 | [diff] [blame] | 49 | ] |
| 50 | |
| 51 | |
Ilya Moiseenko | 54a6bba | 2011-08-01 11:01:26 -0700 | [diff] [blame] | 52 | if bld.env['ENABLE_OPENSSL']: |
Alexander Afanasyev | 404c079 | 2011-08-09 17:09:59 -0700 | [diff] [blame] | 53 | module.uselib = 'OPENSSL' |
Ilya Moiseenko | 54a6bba | 2011-08-01 11:01:26 -0700 | [diff] [blame] | 54 | |
Ilya Moiseenko | 1762af7 | 2011-07-18 16:43:10 -0700 | [diff] [blame] | 55 | if bld.env['ENABLE_EXAMPLES']: |
| 56 | bld.add_subdirs('examples') |
| 57 | |
Ilya Moiseenko | 02fb706 | 2011-08-11 17:18:00 -0700 | [diff] [blame] | 58 | bld.ns3_python_bindings() |
Alexander Afanasyev | 43e7025 | 2011-08-08 18:48:18 -0700 | [diff] [blame] | 59 | #bld.env['CXXFLAGS']=[filter(lambda x: x not in bld.env, sublist) for sublist in [['-Wall'], ['-Werror'], ['-Wextra']]] |
| 60 | # bld.env['CXXFLAGS']=[] |
| 61 | # bld.env['CFLAGS']=[] |
| 62 | |
| 63 | |