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): |
| 4 | module = bld.create_ns3_module('NDNabstraction', ['internet', 'config-store', 'tools', 'point-to-point', 'wifi', 'mobility', 'applications', 'csma']) |
| 5 | module.includes = '.' |
| 6 | module.source = [ |
Ilya Moiseenko | 54a6bba | 2011-08-01 11:01:26 -0700 | [diff] [blame] | 7 | 'model/ndnabstraction-header.cc', |
| 8 | 'model/ccn_charbuf.cc', |
| 9 | 'model/ccn_name_util.cc', |
| 10 | 'model/ccn_coding.cc', |
| 11 | 'model/ccn_indexbuf.cc', |
| 12 | 'model/ccn_random.cc', |
| 13 | 'model/ccn_buf_decoder.cc', |
| 14 | 'model/ccn_buf_encoder.cc', |
Ilya Moiseenko | 08a98a4 | 2011-08-02 16:06:51 -0700 | [diff] [blame] | 15 | 'model/ndn_face.cc', |
| 16 | 'model/ndn_interestpacket.cc', |
| 17 | 'model/ndn_contentpacket.cc', |
Ilya Moiseenko | 54a6bba | 2011-08-01 11:01:26 -0700 | [diff] [blame] | 18 | 'helper/ndnabstraction-helper.cc', |
Ilya Moiseenko | 1762af7 | 2011-07-18 16:43:10 -0700 | [diff] [blame] | 19 | ] |
| 20 | |
| 21 | module_test = bld.create_ns3_module_test_library('NDNabstraction') |
| 22 | module_test.source = [ |
Ilya Moiseenko | 54a6bba | 2011-08-01 11:01:26 -0700 | [diff] [blame] | 23 | 'test/ndnabstraction-basictest.cc', |
Ilya Moiseenko | 1762af7 | 2011-07-18 16:43:10 -0700 | [diff] [blame] | 24 | ] |
| 25 | |
| 26 | headers = bld.new_task_gen('ns3header') |
| 27 | headers.module = 'NDNabstraction' |
| 28 | headers.source = [ |
| 29 | 'model/ndnabstraction-header.h', |
Ilya Moiseenko | 54a6bba | 2011-08-01 11:01:26 -0700 | [diff] [blame] | 30 | 'model/ccn_charbuf.h', |
| 31 | 'model/ccn_name_util.h', |
| 32 | 'model/ccn_coding.h', |
| 33 | 'model/ccn_indexbuf.h', |
| 34 | 'model/ccn_random.h', |
| 35 | 'model/ccn_ccn.h', |
Ilya Moiseenko | 08a98a4 | 2011-08-02 16:06:51 -0700 | [diff] [blame] | 36 | 'model/ndn_face.h', |
| 37 | 'model/ndn_interestpacket.h', |
| 38 | 'model/ndn_contentpacket.h', |
Ilya Moiseenko | 1762af7 | 2011-07-18 16:43:10 -0700 | [diff] [blame] | 39 | 'helper/ndnabstraction-helper.h', |
| 40 | ] |
| 41 | |
| 42 | |
Ilya Moiseenko | 54a6bba | 2011-08-01 11:01:26 -0700 | [diff] [blame] | 43 | if bld.env['ENABLE_OPENSSL']: |
| 44 | module.uselib = 'OPENSSL' |
| 45 | |
Ilya Moiseenko | 1762af7 | 2011-07-18 16:43:10 -0700 | [diff] [blame] | 46 | if bld.env['ENABLE_EXAMPLES']: |
| 47 | bld.add_subdirs('examples') |
| 48 | |
| 49 | #bld.ns3_python_bindings() |